MetaLabs-inc / react-native-vimeo-iframe

MIT License
44 stars 36 forks source link

Is it possible to start a video programatically? #37

Closed MoSattler closed 2 years ago

MoSattler commented 2 years ago

Is there a way to start a video programatically? I tried to access the player with getVimeoPlayer, but it doesn't seem to work.

Marcoo09 commented 2 years ago

Hi @MoSattler, currently you can put an auto play flag on the params prop: &autoplay=1

image

What you can do is play with this prop on you app and when you want to trigger the play of the player change the params sent to the video.

MoSattler commented 2 years ago

@Marcoo09 Wouldn't that reload the whole web view?

7assenTlili commented 1 year ago

@Marcoo09 changing the params prop to have '&autoplay=1' throws the following warning: Changes to property mediaPlaybackRequiresUserAction do nothing after initial render