videojs / http-streaming

HLS, DASH, and future HTTP streaming protocols library for video.js
https://videojs-http-streaming.netlify.app/
Other
2.52k stars 424 forks source link

play HLS m3u8 not working #1140

Closed WeBBLiu closed 3 years ago

WeBBLiu commented 3 years ago

Please do not delete the template, by filling out the required information we can investigate your issue more quickly.

Before opening an issue see if your problem can be resolved with the troubleshooting guide.

Description

Can't play hls source .m3u8 files


<link href="//vjs.zencdn.net/7.10.2/video-js.min.css" rel="stylesheet">
<script src="//vjs.zencdn.net/7.10.2/video.min.js"></script>
<!--2.8.2-->
<script src="videojs-http-streaming.min.js"></script> 
<video id="html5_video"  
        class="html5_video video-js vjs-default-skin vjs-big-play-centered vjs-16-9 vjs-fill" 
        preload 
        autoplay 
        playsinline
        controls
    >
      <source src="https://vod.streamingfast.net/hls-vod/video/OT3A0384.m3u8" 
        type="application/x-mpegURL">
    </video>
<script>
var player = videojs('html5_video');

</script>

Sources

https://live.streamingfast.net/osmflivech1.m3u8

Error output

Console.log : video.min.js:12 VIDEOJS: WARN: A plugin named "reloadSourceOnError" already exists. You may want to avoid re-registering plugins!

videojs-http-streaming version

//2.8.2 ### videojs version Any version ### Browsers Chrome , Edge, Firefox ### Platforms Win7 , Win10 ### Other Plugins none ### Other JavaScript none
welcome[bot] commented 3 years ago

👋 Thanks for opening your first issue here! 👋

If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines.

video-archivist-bot commented 3 years ago

Hey! We've detected some video files in a comment on this issue. If you'd like to permanently archive these videos and tie them to this project, a maintainer of the project can reply to this issue with the following commands:

gkatsev commented 3 years ago

Seems to be playing fine for me via https://videojs-http-streaming.netlify.app/. Can you try your stream there? Can you provide more info on when and how you're seeing an issue?

FYI, you don't need to include VHS separately, it's included in Video.js.