api.video-reactnative-player icon indicating copy to clipboard operation
api.video-reactnative-player copied to clipboard

[Bug]: React Native Won't Play Private Videos

Open charlestbell opened this issue 1 year ago • 0 comments

Version

"@api.video/react-native-player": "^1.0.1",

Environment that reproduces the issue

Using the react native package. Trying to play private videos = doesn't work.

Oddly, the React player supports this. It accepts an object called video

<ApiVideoPlayer 
  video={{id: "vi5fv44Hol1jFrCovyktAJS9", token: "myToken"}}
/>

https://github.com/apivideo/api.video-react-player

But the React Native player only takes an id token

<ApiVideoPlayer
videoId="myVideoId"
 />

I've tried passing a video object with a token to it, but nothing happens.

Is it reproducible in the example application?

Yes

Reproduction steps

Try to play a private video in React Native.

Expected result

It plays

Actual result

No video displayed.

Additional context

No response

Relevant logs output

No response

charlestbell avatar Jul 17 '23 14:07 charlestbell