
AS3 coding - embed youtube inside flash
- or -
Post a project like this5098
£75(approx. $101)
- Posted:
- Proposals: 1
- Remote
- #154625
- Awarded
Description
Experience Level: Intermediate
I have managed to embed a youtube video in Flash, using the YouTube ActionScript 3.0 Player API https://developers.google.com/youtube/flash_api_reference.
It's working fine but I need some additional functionality. I have multiple videos on a frame, so the first thing I want to do is
If VIDEO 1 is playing and I click VIDEO 2, I want VIDEO 1 to stop.
I want any video that is playing to stop when I leave the frame.
In regards to the latter, I'm aware I could create a button for navigation and add player.stopVideo(); function to it BUT it gets more complicated because the SWF is inside one of the (horrible) flipping book apps, so the navigation is controlled by the flipping book app, not the actual SWF that contains the videos.
I am also aware of the 'onStateChange' event, which I think should work but I;m not sure how to use it.
It's working fine but I need some additional functionality. I have multiple videos on a frame, so the first thing I want to do is
If VIDEO 1 is playing and I click VIDEO 2, I want VIDEO 1 to stop.
I want any video that is playing to stop when I leave the frame.
In regards to the latter, I'm aware I could create a button for navigation and add player.stopVideo(); function to it BUT it gets more complicated because the SWF is inside one of the (horrible) flipping book apps, so the navigation is controlled by the flipping book app, not the actual SWF that contains the videos.
I am also aware of the 'onStateChange' event, which I think should work but I;m not sure how to use it.
Andrew S.
100% (6)Projects Completed
7
Freelancers worked with
7
Projects awarded
30%
Last project
17 Apr 2019
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies