功能建议:开机自动启动到托盘和关闭后缩小到托盘
Opened this issue · 5 comments
类似everything
类似everything
Ivysrono, Hello!
Sorry for getting in touch on this issue that has nothing to do with this issue. I've been using "HLS.js Playback - Allow the browser to play HLS video urls (m3u8) 'natively'" for firefox for some time now. He's really great. I don't have a background in programming, but I'm curious and I put the code of the "Latest Release - https://video-dev.github.io/hls.js/demo" on my website; it happens that because of its extension, in firefox, I can open the link: "https://api.new.livestream.com/accounts/22300522/events/6680139/live.m3u8", but not because of the "Demo" code. Could you help me to include " the line(s) that can open this "m3u8 from livestream"? Thank you very much!
This is the code I'm using on my website:
<title>Hls.js demo - basic usage</title> <script src="[../dist/hls.js](view-source:https://hls-js.netlify.app/dist/hls.js)"></script>Hls.js demo - basic usage
<script> var video = document.getElementById('video'); if (Hls.isSupported()) { var hls = new Hls({ debug: true, }); hls.loadSource('https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8'); hls.attachMedia(video); hls.on(Hls.Events.MEDIA_ATTACHED, function () { video.muted = true; video.play(); }); } // hls.js is not supported on platforms that do not have Media Source Extensions (MSE) enabled. // When the browser has built-in HLS support (check using `canPlayType`), we can provide an HLS manifest (i.e. .m3u8 URL) directly to the video element through the `src` property. // This is using the built-in support of the plain video element, without using hls.js. else if (video.canPlayType('application/vnd.apple.mpegurl')) { video.src = 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8'; video.addEventListener('canplay', function () { video.play(); }); } </script>@eduardonm You can try Viewhance which native supports DASH, HLS, MSS streaming (if the browser can support it).
Hello again, thanks for your attention!
Its extension "HLS.js Playback" is great, the idea is to use it directly in the code of the site that will play the m3u8.(https://api.new.livestream.com/accounts/22300522/events /6680139/ live.m3u8"). Is there such a possibility, if so, which files should I use in the server directory?
300: jar:http://my.site.com.br/hlsjsplayback/
200: filename content-length last-modified file-type
201: LICENSE 1152 Fri,%2030%20Nov%201979%2003:00:00%20GMT FILE
201: META-INF/ 0 Tue,%2001%20Jan%201980%2003:00:00%20GMT DIRECTORY
201: README.md 882 Fri,%2030%20Nov%201979%2003:00:00%20GMT FILE
201: embedded_videos.js 1186 Fri,%2030%20Nov%201979%2003:00:00%20GMT FILE
201: event.js 925 Fri,%2030%20Nov%201979%2003:00:00%20GMT FILE
201: hls.min.js 311972 Fri,%2030%20Nov%201979%2003:00:00%20GMT FILE
01: icons/ 0 Tue,%2001%20Jan%201980%2003:00:00%20GMT DIRECTORY
201: img/ 0 Tue,%2001%20Jan%201980%2003:00:00%20GMT DIRECTORY
201: manifest.json 770 Fri,%2030%20Nov%201979%2003:00:00%20GMT FILE
201: options.html 729 Fri,%2030%20Nov%201979%2003:00:00%20GMT FILE
201: options.js 923 Fri,%2030%20Nov%201979%2003:00:00%20GMT FILE
201: player.css 3098 Fri,%2030%20Nov%201979%2003:00:00%20GMT FILE
201: player.html 257 Fri,%2030%20Nov%201979%2003:00:00%20GMT FILE
201: player.js 2434 Fri,%2030%20Nov%201979%2003:00:00%20GMT FILE
201: popup.html 1026 Fri,%2030%20Nov%201979%2003:00:00%20GMT FILE
201: popup.js 959 Fri,%2030%20Nov%201979%2003:00:00%20GMT FILE
I imagine the address embed into the iframe to play the m3u8 would be:
<iframe width="100%" height="480" src="https://my.site.com.br/hlsjsplayback/player.html#https://api.new.livestream.com/accounts/22300522/events/6680139/live.m3u8" frameborder="0" allow="autoplay" allowfullscreen></iframe>I don't know.