mangui / flashls

HLS Flash Plugin/Player (Chromeless,OSMF,FlowPlayer,mediaelement.js,video.js,Clappr)
http://www.flashls.org
Mozilla Public License 2.0
751 stars 264 forks source link

Video is buffering (or freezes) after Audio Track change #597

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hi, I use latest flashHls release. After 3 or 4 Audio track changes my video starts to buffer or just freezes. I see timer goes ahead and .ts and audio files are getting downloaded.and I can see following message in the browser 's console: "INFO:return null (demux audio not selected)" and after that I see video just buffers or freezes;

I have added following method to HLS.as to set the audio track. public function _setAudioTrack(locale : String) : void { var i:int=0; for each (var altAudioTrack:AltAudioTrack in this.altAudioTracks){ if((altAudioTrack.lang == locale) && (altAudioTrack.url != null)){ _audioTrackController.audioTrack=i; var ev : HLSEvent = new HLSEvent(HLSEvent.AUDIO_TRACK_SWITCH); ev.audioTrack = i; dispatchEvent(ev); } i++; } if (!isNaN(this.position)) { this.stream.seek(this.position); } this.startLoad(); };

Please let me know if I have to do something more. When I used Neil's fork it worked for MultiAudio, (Audio Track Change) but I want to use the official release of flashhls for my implementation.

In few seconds after loading the video it is possible to select and switch to different Audio tracks and there is no buffering. But when I let a selected Audio track to play for a longer time as 1 min and then when I do Audio track change I see the buffering. I see xhr request to get the data are sent out and data is coming in, but player has already given-up to read/load this data.

Any direction here will be very helpful. @mangui @jlacivita @kfeinUI @neilrackett

Thanks, Hamid Porasl

ghost commented 6 years ago

I used Neil fork and it works fine