TheWidlarzGroup/react-native-video

Refresh expired bearer token in drm access

Open

#2884 aperta il 5 ott 2022

Vedi su GitHub
 (12 commenti) (1 reazione) (0 assegnatari)Kotlin (3027 fork)batch import
6.x.xPlatform: AndroidPlatform: iOSdemo requestedfeaturehelp wanted

Metriche repository

Star
 (7677 star)
Metriche merge PR
 (Merge medio 34g 22h) (1 PR mergiata in 30 g)

Descrizione

Current behavior

I need to refresh my url (streaming video) periodically since it has a token that expires after some time. I have already managed this flow (I ask the new url before it expires) but screen appears blank for about a second after url refreshing, probably caused by source reloading. I also tried putting the token in the source header, but nothing.

Reproduction steps

  1. Change source (same url with different token) while it plays

Expected behavior

The source must be changed without the user noticing the transition.

Platform

  • Android TV
  • tvOS

Version

5.2.0

Thanks to everyone!

Guida contributor