apivideo / api.video-reactnative-player

React Native video player
https://api.video
MIT License
17 stars 2 forks source link

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

Closed charlestbell closed 3 months ago

charlestbell commented 1 year ago

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 commented 3 months ago

This was later patched