Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ghost opened this issue Apr 9, 2018 · 1 comment
Closed

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

ghost opened this issue Apr 9, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 9, 2018

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 ghost changed the title Video buffering after Audio Track change Video is buffering (or freezes) after Audio Track change Apr 9, 2018
@ghost ghost closed this as completed Apr 25, 2018
@ghost
Copy link
Author

ghost commented Apr 25, 2018

I used Neil fork and it works fine

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants