videojs / video.js

Video.js - open source HTML5 video player
https://videojs.com
Other
37.87k stars 7.43k forks source link

It plays locally, but not over the network #7586

Open alekssamos opened 2 years ago

alekssamos commented 2 years ago

There is such a URL: http://zabava-htlive.cdn.ngenix.net/hls/CH_DOMASHNIY/bw2000000/variant.m3u8?version=2 If you create an HTML JS page with this player and open it on a local machine using the file protocol, then everything works. file:///E:/vp.htm?http%3A%2F%2Fzabava-htlive.cdn.ngenix.net%2Fhls%2FCH_DOMASHNIY%2Fbw2000000%2Fvariant.m3u8%3Fversion%3D2 If the same page is uploaded to the server and opened via http, it is no longer there. http://alekssamosbt.ru/vp.htm?http%3A%2F%2Fzabava-htlive.cdn.ngenix.net%2Fhls%2FCH_DOMASHNIY%2Fbw2000000%2Fvariant.m3u8%3Fversion%3D2 Console:

VIDEOJS: WARN: Segment with index 3 from playlist 0-https://zabava-block-htvod.cdn.ngenix.net/rtk_block.m3u8 has a duration of 869.9946666666667 when the reported duration is 10 and the target duration is 10. For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1 video.min.js:12:1533

And nothing plays. Why then there are no problems locally, the broadcast is playing well?

welcome[bot] commented 2 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 2 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:

mister-ben commented 2 years ago

I see a video that is playing, but it is a static image with a message that the content is blocked. The server is redirecting as prevention of unauthorised use.