Youtube component

In firebase I put 20 youtube videos id and now in app , when a button click play any video in that and again when click It should play any video

How to do like this please help

1 Like

What have you tried so far ?

When screen initialise call all the firebase youtube id into a global variable

Whenever user click on button , by using random value from the list block make the youtube to play

send blocks image I cant understand

Can you show your firebase structure?