Skip to content

Selecting Audio language auto switches the text track(using selectAudioLanguage, selectTextTrack API) #1299

Closed
@shanmugapriyaEK

Description

NOTE: For bugs, if you delete this template, we will send it again and ask you to fill it out.

Have you read the FAQ and checked for duplicate open issues?:yes

What version of Shaka Player are you using?:2.3.3

Can you reproduce the issue with our latest release version?:yes

Can you reproduce the issue with the latest code from master?:yes

Are you using the demo app or your own custom app?:both

If custom app, can you reproduce the issue using our demo app?:yes

What browser and OS are you using?:Chrome MAV

What are the manifest and license server URIs?:Demo asset- 'Angel One (multicodec, multilingual)

What did you do? Using selectTextTrack (with all the tracks listed), setting selectAudioLanguage auto switches the text track.
Reproduce in sample app by doing

  1. Text track does not list all the texttracks. Hence made changes to list all the tracks without any language or role
  2. Switched audio language using selectAudioLanguage resulted in track change
  3. Observed that in streaming_engine.js assertions fails.
    if (!mediaState && stream.type == ContentType.TEXT &&
    this.config_.ignoreTextStreamFailures) {//this was set to false
    this.loadNewTextStream(stream);
    return;
    }
    goog.asserts.assert(mediaState, 'switch: expected mediaState to exist');

What did you expect to happen? It should not switch text track

What actually happened? changes text track

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions