Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: hls video player panel #83807

Open
jinleileiking opened this issue Mar 4, 2024 · 2 comments
Open

feat: hls video player panel #83807

jinleileiking opened this issue Mar 4, 2024 · 2 comments

Comments

@jinleileiking
Copy link

Why is this needed:

We need to play m3u8 on a panel

What would you like to be added:

We need to play m3u8 on a panel

Who is this feature for?

companies about video software.

https://grafana.com/grafana/plugins/innius-video-panel/ does not support hls

I copied https://github.com/cxnturi0n/grafana-livecamera-rtmp-hls-dash/blob/main/hls.html to html plugin, but It not work

@jinleileiking
Copy link
Author

I try video.js:

<!DOCTYPE html>
<html>
<head>
  <link href="https://vjs.zencdn.net/8.10.0/video-js.css" rel="stylesheet" />

  <!-- If you'd like to support IE8 (for Video.js versions prior to v7) -->
  <!-- <script src="https://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script> -->
</head>

<body>
  <video
    id="my-video"
    class="video-js"
    controls
    preload="auto"
    width="640"
    height="264"
    data-setup="{}"
  >
    <source src="http://stream.visionular.com/YTg0NjQ1ZWNhZmYxN2VmNjU5OTMyMjU0NmE3YzFkMzk.m3u8" type="application/x-mpegURL" />
  </video>

  <script src="https://vjs.zencdn.net/8.10.0/video.min.js"></script>
</body>
</html>
``

console:

<img width="1728" alt="image" src="https://github.com/grafana/grafana/assets/93968/2f508206-9588-4226-b22d-1e66fcf33ac7">

@jinleileiking
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants