html5 - Streaming m3u8 with video.js -


I am trying to stream this URL:

  & lt; Audio id = "streaming" class = "video-js vjs-default-skin" control & gt; & Lt; Source src = "http://stream331.overseebrasil.com.br/live_previd_155/_definst_/live_previd_155/playlist.m3u8" Type = 'audio / mp34; Codecs = mp4a.40.2 '/ & gt; & Lt; / Audio & gt;  

Safari / Mac and Safari / iOS works fine, but this code does not run in Chrome and Firefox.

I removed the codec's information from the type attribute and nothing happens. Firefox says:

  The specified "type" attribute of "audio / mp4; codecs = mp4a.40.2" is not supported. Load of media resources http://stream331.overseebrasil.com.br/live_previd_155/_definst_/live_previd_155/playlist.m3u8 Failed failed candidates failed to load resources. Media load paused  

I have also tried to change the type attribute based on the mime page () Any thoughts about this issue?

Cross-browser HLS support is being worked on a separate plug-in, working in the Safari Because the browser originally supports HLS playback, but none of the other because video.JS fallback is not there.

Trying to exclude the plugin is quite easy, but if you need to upload the CDN version of Video.js above.

  & lt; Script src = "/ path / to / video.js" & gt; & Lt; / Script & gt; & Lt; Script src = "/ path / to / videojs-hls.min.js" & gt; & Lt; / Script & gt; & Lt; Script & gt; Var player = video ('video'); Player.hls ('http://example.com/video.m3u8'); & Lt; / Script & gt;  

Then you can behave as a player in the form of usual, player.play () , etc.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -