shaka-project / shaka-player

JavaScript player library / DASH & HLS client / MSE-EME player
Apache License 2.0
7.2k stars 1.34k forks source link

Tizen 6.5: when playing HLS, video stuck while switch between stereo and surround audio #7595

Open Itsysho opened 3 days ago

Itsysho commented 3 days ago

Have you read the FAQ and checked for duplicate open issues? Yes.

If the problem is related to FairPlay, have you read the tutorial?

Not related, the video doesn't protection.

What version of Shaka Player are you using?

4.11.4

Can you reproduce the issue with our latest release version? I'm not in the lab with Tizen 6.5 TV, will try it when I can.

Can you reproduce the issue with the latest code from main? Same as above.

Are you using the demo app or your own custom app? My custom app

If custom app, can you reproduce the issue using our demo app? Also reproduced in my custom app, I tried to fix by

player.selectAudioLanguage(
      activeTrack.language,
      undefined,
      activeTrack.channelsCount,
    )

or

player.selectVariantsByLabel(activeTrack.label)

It could be fix with workaround

player.selectAudioLanguage(activeTrack.language)
player.configure("preferredAudioChannelCount", targetLanguage.channelsCount)
player.reload()

What browser and OS are you using? Tizen 8.0 / Chromium 108 It also happen Tizen 6.5 / Chromium 85 and Tizen 7.0 / Chromium.

userAgent: Mozilla/5.0 (SMART-TV; Linux; Tizen 8.0) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/7.0 Chrome/108.0.5359.1 TV Safari/537.36

For embedded devices (smart TVs, etc.), what model and firmware version are you using?

What are the manifest and license server URIs?

#EXT-X-MEDIA:TYPE=AUDIO,URI="",GROUP-ID="audio-AACL-127",LANGUAGE="ja",NAME="Japanese",DEFAULT=YES,AUTOSELECT=YES,CHANNELS="2"
#EXT-X-MEDIA:TYPE=AUDIO,URI="",GROUP-ID="audio-AC-3-384",LANGUAGE="und",NAME="Undetermined",DEFAULT=YES,AUTOSELECT=YES,CHANNELS="6"

What configuration are you using? What is the output of player.getNonDefaultConfiguration()?

{
  "manifest": {
    "retryParameters": {
      "maxAttempts": 6
    },
    "dash": {
      "ignoreSuggestedPresentationDelay": true
    }
  },
  "streaming": {
    "safeSeekOffset": 0,
    "autoLowLatencyMode": true,
    "preferNativeHls": true
  }
}

What did you do? On a device that supports surround sound:

What did you expect to happen?

What actually happened?

Are you planning send a PR to fix it? Yes, let's find the cause.

avelad commented 3 days ago

What value of mediaSource.codecSwitchingStrategy are you using? Maybe RELOAD?

tykus160 commented 2 days ago

@avelad on Tizen 6 shaka uses reload by default. This is probably caused by #7555