benjipott / videojs-hlsjs

Hls.js plugin for videojs
Other
79 stars 31 forks source link

video js is aborting playback while playing m3u8 playlist in chrome where as in other browsers it plays fine #11

Open jequin opened 8 years ago

jequin commented 8 years ago

i have set up videojs player along with hls.js but my problem still persists which is the stream is still unable to play. I have included all the dependancies as per required. Still i am including some piece of my code My html

<!-- My video tag for playback -->
<video id="example-video"> 
<source = "http%3A%2F%2Fhitsradio.videocdn.scaleengine.net%2Fhitsradio-vod%2Fplay%2Fsestore8%2Fhitsradio%2F10%20%20years%20-%20Beautiful.mp4%2Fplaylist.m3u8" type = "application/vnd.apple.mpegurl">
</video>

My js

<script src="node_modules/video.js/dist/video.js"></script>
<script src="node_modules/hls.js/dist/hls.js"></script>
<script src="lib/videojs-hlsjs.js"></script>
<script>
myPlayer = videojs('example-video');
myPlayer.play();
</script>

I have tried with videojs-contrib-hls, But the issue is still stubborn. You can check the issue in this screenshot below here is the screenshot for error http://prntscr.com/a3f6sk

Upon checking chrome://media-internals/ I got debug like the following

render_id: 16
player_id: 69
pipeline_state: kStopped
event: WEBMEDIAPLAYER_CREATED
url: blob:http%3A//199.217.118.201%3A3000/de8d5e9f-b1e1-4f68-8d1d-cee283a218d4
info: Audio codec: mp4a.40.2. Sampling frequency: 22050Hz. Sampling frequency(Extension): 0Hz. Channel layout: 2.
found_audio_stream: true
audio_codec_name: aac
duration: 222.678956
audio_dds: false
audio_decoder: FFmpegAudioDecoder
debug: Implicit HE-AAC signalling is being used. Please use mp4a.40.5 instead of mp4a.40.2 in the mimetype.
error: audio decode error during playing
pipeline_error: pipeline: decode error

Note: You may get CORS issue while playing the stream i provided as it is only allowed for my origin.

rohityadav876 commented 7 years ago

I am also Getting the same issue with this.