How do I know that the video is playing again?
Closed this issue · 2 comments
albacodina commented
I need to know an event or parameter that indicates the play button was clicked again.
I am developing a functionality in my platform that plays a video before playing a paella video but when the paella video finishes, I want to click the play button and play again the introduction video and the paella video.
I have used paella.events.endVideo and inside paella.events.play but the problem is that when I use paella.events.play the intro video plays every time I click on the button.
Does anyone know how I can do this? Or is there any playlist functionality?
Thanks.
karendolan commented
Hi,
I’m not a Paella player architect, but look at the usage of the “firstPlay” attribute in the PlayButtonOnScreen.
You can set a flag like that in your plugin to *true* on event paella.events.endVideo, then set it back to *false* after the next play event, after launching the intro video. On each play event, your code can reference its flag to see if it should load the intro or not.
Best of Luck,
Karen
… On Jul 30, 2021, at 9:53 AM, albacodina ***@***.***> wrote:
I need to know an event or parameter that indicates the play button was clicked again.
I am developing a functionality in my platform that plays a video before playing a paella video but when the paella video finishes, I want to click the play button and play again the introduction video and the paella video.
I have used paella.events.endVideo and inside paella.events.play but the problem is that when I use paella.events.play the intro video plays every time I click on the button.
Does anyone know how I can do this? Or is there any playlist functionality?
Thanks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_polimediaupv_paella_issues_751&d=DwMCaQ&c=WO-RGvefibhHBZq3fL85hQ&r=L0bixvq38FCo0Uh-GIxdgPLzP79y-k7aPB_dB642sVk&m=bFr_rqaJ2kRMKCMPiy_nkzI4SbSuvYS3hP-MBAqjjkA&s=URF3Q3ARmgtSnueyL4ON5AXBpSisIWTJaQbnbaUmoBQ&e=>, or unsubscribe <https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AAKFEEGTBAYQEALLM6UXSUDT2KVHHANCNFSM5BISLA5A&d=DwMCaQ&c=WO-RGvefibhHBZq3fL85hQ&r=L0bixvq38FCo0Uh-GIxdgPLzP79y-k7aPB_dB642sVk&m=bFr_rqaJ2kRMKCMPiy_nkzI4SbSuvYS3hP-MBAqjjkA&s=-w3GcAcE7oe6yFqiYcN2hqm-_h951tk_dzDuqz1oOas&e=>.
albacodina commented
Thank you! I tried your option and it works the way I wanted.