YouTube autoplay in flash
Hi. I've added a youtube movie in a flash file, which works just fine. But I'll like it to autoplay, and I've added ?autoplay=1 at the end of the url, but it don't start automatic. If I copy the url to a browser, the autoplay works just fine.
Any ideas? I'm looking forward to hearing from you.
Best regards,
David
Hello Nipun.
Can I ask for help again. Still the same script.
The issues is that the youtube buttons in the bottom is not showing, play/pause, sound, fullscreen and so on, even though I uset the youtube.com/v/ link.
Can you also answer that for me? Thank you very much in advance. This is how the script looks now.
Security.allowDomain("www.youtube.com");
Security.allowDomain("http://s.ytimg.com");
var videoPlayer:Object;
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.INIT, onLoaderInit);
loader.load(new URLRequest("http://www.youtube.com/apiplayer?version=3"));
function onLoaderInit(event:Event):void {
addChild(loader);
loader.content.addEventListener ("onReady", onPlayerReady);
function onPlayerReady(event:Event):void {
videoPlayer = loader.content;
videoPlayer.setSize(300, 170); //PUT THE DIMENSIONS OF YOUR VIDEO IN THIS LINE
videoPlayer.cueVideoByUrl("https://www.youtube.com/v/bYmqwzlmh2Q", 0);//PUT YOUR VIDEO URL IN THIS LINE
videoPlayer.playVideo();
Similar Messages
-
Youtube video requiring Flash Player
Some of Youtube video requires Flash Player. I installed it successfully, but I still encounter the same error message. It appears that I have not installed ActiveX control. How do I install it. BTW, is the ActiveX control the issue here or somethingelse is going on?
Hi,
Please check the below mentioned knowledge base article and follow the instructions
http://helpx.adobe.com/flash-player/kb/installation-problems-flash-player-windows.html -
How to add youtube video to flash
I am still new to AS. Looking for a detailed tutorial/explanation on adding/embeding a youtube video to flash.
If anybody has a descent example that would work too. Also i would like the youtube video to play in the flash file.http://code.google.com/apis/youtube/flash_api_reference.html
Quote from google api ref:
Getting Started
You can use a chromeless player or an embedded player in your application. Both players support the same functions. However, the embedded player displays standard controls, including a play/pause button, a progress bar, a volume control, and more. The chromeless player, on the other hand, does not display any controls, so you will need to develop your own custom player controls in Flash.
Loading the chromeless player
If your application is using a chromeless player, use the following URL to load the player in your application:
http://www.youtube.com/apiplayer?version=3
Loading the embedded player
If your application is using an embedded player, use the following URL to load the player in your application. In the URL, replace the string VIDEO_ID with the 11-character YouTube video ID of the video that the player will show.
http://www.youtube.com/v/VIDEO_ID?version=3
The
Player API demo lets you compare the two player
http://code.google.com/apis/youtube/youtube_player_demo.html
http://www.youtube.com/v/VIDEO_ID?version=3
Heres some really quick code. You'll have to play with it but this will get you well under way:
var myVideo:Loader = new Loader();
Security.allowDomain("www.youtube.com");
myVideo.contentLoaderInfo.addEventListener(Event.COMPLETE, showVideo);
//myVideo.load(new URLRequest("http://www.youtube.com/apiplayer?version=3"));
myVideo.load(new URLRequest("http://www.youtube.com/v/6U-sTcbZuq0&feature=rec-LGOUT-farside_rn-4r-1-HM" + "?version=3"));
function showVideo(e:Event):void
myVideo.x = stage.stageWidth * .5;
myVideo.y = stage.stageWidth * .5;
stage.addChild(myVideo);
If you have any questions please let me know. Otherwise, please mark the question as answered Thanks,
Jesse -
Youtube Autoplay not working in the background!
Why isn't autoplay of youtube videos not running in the background of Safari? It works fine in Firefox or Chrome, but in Safari, everytime a video is done, I have to make the youtube tab active for it to start playing the next video in the playlist. I'm pretty sure this is a bug in Safari and has not been fixed for a long long time.. Is there a way to get this working? Any extensions? Please help.
Hi, I have encountered the same problem when the youtube page is running on a background tab in safari. However, I find a alternative way to deal with this bug. I just draw that youtube tab out of safari to make it running in a seperate safari window without any other tabs in this window. In this way, it can autoplay the next video when it running background.
Hope this also works for you. -
Embedding YouTube video In Flash
Hi guys,
Could someone please advise me how to embed a YouTube video file in particular place of my Flash project, should I do this in action panel or in final html file.
Here is exactly what I'd like to do: On this website www.aye-aye-media.com under 'Film' panel I have some movie samples, and after clicking buttons on right side I'd like to play embedded YouTube clips instead of flv.samples uploaded to my ftp. as it takes too long for customers to download them
Thank you in advance
DomThanks Christopher,
I was thinking about it, meanwhile I'm still trying to do it the way I suggested. I'm able to embed the clip but just not in the right place, just don't know where to paste the code, I thought perhaps there is a command in ActionScript to sort this out
Cheers -
Embedding YouTube file in flash project
Hi guys,
Could someone please advise me how to embed a YouTube video file in particular place of my Flash project, should I do this in action panel or in final html file.
Here is exactly what I'd like to do: On this website www.aye-aye-media.com under 'Film' panel I have some movie samples, and after clicking buttons on right side I'd like to play embedded YouTube clips instead of flv.samples uploaded to my ftp. as it takes too long for customers to download them
Thank you in advance
Domok, so, is it too difficult or too easy to do what I want?
-
How to embed youtube movie in flash website using xml pages?
hi to every one
I m quite new to flash website designing. so I've downloaded a free flash website template, that is using xml pages in it. & I m using adobe flash cs4. now I wants to embed youtube movie in one of its .xml page & I wants that it shows that movie when i open that xml page in adobe flash cs4. even I've pasted youtube embeded code in one of that xml page but it does not works. so please please please resole my problem as soon as possible.
thousands of thanks to all of those who helped me....
Regards
Faiz Fareed.Maybe you can try You Tube Api for flash
http://code.google.com/apis/youtube/flash_api_reference.html -
Embedding youtube video in flash with as2 - problem with black bars
I have successfully embedded the youtube video in my flash code with:
//create area to put youtube video on screen
this.createEmptyMovieClip("reason1_video", 10000);
reason1_video._xscale = 60;
reason1_video._yscale = 60;
this.reason1_video.loadMovie("http://www.youtube.com/v/PUt7Kw9Q_Qc?hd=1");
However, the video plays with black bars on top and bottom even though it plays without those directly from youtube:
http://www.youtube.com/parallelic#p/c/258EA3637F3467BD/7/PUt7Kw9Q_Qc
Even if I take off the scaling, it still has the black bars. How do I get rid of them?So basicly your putting a video in to your flash project
-
Ever since I downloaded the latest Flash version...Version:
9,0,115,0 I cannot upload videos to YouTube. When I get to the
upload page and click UPLOAD it just sits on connecting forever.
And if I let it sit there for an hour or so it will eventually say
there is a problem with the Flash Player. Any idea on how to solve
this?Hi!
I'm able to see version (9.xxxxxx...something - the newest -
today updated).
Have horror with flash-based chat. I read in one topic here
in IE problem is not! But i somehow can't login to this service
with IE I had. Now I'm trying to download newer version and will be
checking with it. Futhermore after this check I'll try how it looks
in Fedora (if You Adobe support it - have no idea of this!)
Not only I have this problem. I try on some polish forums and
users write they are experiencing sample problems.
My YouTube problem isn't with uploading (once I tried I felt
too). It freezes on some place and not move even a little. I really
can't remember what happen in a day, when it started but I fell it
takes too long to be a problem with YouTube.
People say it's Flash.
P.S. sorry for my english -
Watching youtube w/o flash
I want to keep my new MBP flash free. Can't do many things of course (still have my old MBP), but I hope at least to be able to watch youtube videos.
When I go to youtube, the first thing I see is - as expected - that I do need flash. When I click on a video, I get same message.
However, some you tube videos play fine, just like all youtube videos in Safari on my iPhone.
Q: Is there an option on the youtube site (html5?) and how do I set it for all videos?
Thanks in advanceSee > http://www.youtube.com/html5 Note that not all videos support HTML5
-
How can i watch youtube videos no flash
how can i watch youtube videos without installing flash on my imac
You can try using HTML5 potentially https://www.youtube.com/html5.
-
Youtube video's - flash update issue
I got an issue on youtube since the last flash update. Suddenly i only get shaking videos and i can't seem to find a solution. I tried uninstalling the flash update and installing an older version of flash, but it doesn't seem to fix it... Any help would be much appreciated!
Thx1. System Preferences > Flash Player > Advanced > Delete All
Press the "Delete All" button
2. Safari > Preferences > Privacy
Press the button “ Remove All Website Data”. -
Cannot view any Videos on Youtube after installing flash 10
Hi there.
I had my day off today and have been viewing videos on youtube all day. I had adobe pop up to say that I should upgrade to the newer flash version and I did this. Afterwards I went back to youtube to continue watching the videos and now I get an error message "An error occurred, please try again later."
I have followed all the advice I could find. I uninstalled all adobe programs and rebooted the comp then installed again and I still get the same thing. I downloaded the offline uninstaller and ran it 5 or 6 times then reboot and installed and again same thing.
I am using Vista and I have never had any problems with viewing videos. I use Firefox as my browser, but Internet Explorer is experiencing the same difficulty for me when I checked it.
Please help me out. Tried to figure it out on my own but I'm stuck.
Thanks!Sounds like the problem I was having. Places like YouTube kept asking to upgrade to a new version (which I did) and to check that I had Javascript enabled (which it was). I tried installing new versions of FlashPlayer on several occasions and they seemed to work, but FlashPlayer 10 was clearly not working.
I found a support page http://kb2.adobe.com/cps/494/cpsid_49419.html that directed me to use the standalone uninstaller, then use a Microsoft SubInAcl Registry tool to fix some pemissions in the registry. Then I installed a new version of FlashPlayer and everthing has been working well since. I have no idea hour the registry permissions got messed up in the first place. -
Adding youtube movie to flash?
Hello,
I'm trying to make a flash website and was wondering if it's possible to link to external movie such as youtube like in html.
If anyone have any idea how to do it, please let me know.
Thanks.You can give a direct link to the YouTube URL, as you probably know, or you can download the YouTube .flv or mpeg4 and link to that. Or use vixy.com or other converter to download the YouTube video as .mov, then put it through the encoder (no significant degradation), and present it as an flv.
-
YouTube and Adobe Flash Player 13
Within the last day, I have not been able to watch YouTube videos (on any browser). When I click to watch a video, the circles will spin on a black screen as if it wants to load, but nothing happens. I had the same issue back in March but was able to fix it by reverting back to an older version of Adobe Flash player. This time around, though, I haven't had that success.
I have taken the following steps:
Cleared cookies and cache
Made sure browsers and plug-ins were up-to-date
Uninstalled and re-installed Adobe Flash Player
Uninstalled the new version and reverted back to an old version
I am currently running Adobe Flash Player 13.0.0.214 and Firefox is my default browser. (I do have Google Chrome and Internet Explorer that are not working either.) Any other suggestions on what I need to do in order to view videos?ATTENTION MAC CUSTOMERS - Flash Player 13 "Plugin Failure" Solution
Same problem here, I degraded to Flash player 12 now so I hope it will keep working for now
Maybe you are looking for
-
This is what I get whenever I try to update my OS X to 10.8.5 I have MacBook Pro 15" With OS X 10.7 I bought OS X 10.8 from day one and I was updating everything were normal until today ? what should I do ? How to fix this ?
-
The roll over feature doesn't work for customizing, is there a way I can fix this
I always have to change my browsers theme to see what it looks like, instead of just roll over. Is there a way to fix this?
-
Check my iphone 5 its unlock or not
check my iphone 5 its unlock or not
-
I have restored my ipod now how do i get the apps i had before
okay so i have just restored my ipod and it was backed up on i cloud, now how am i supposed to get everything i had before on my ipod now?
-
On boot, or at any time, when dbus starts, I receive the following error message Failed to start message bus: The pid file "/var/run/dbus.pid" exists, if the message bus is not running, remove this file If I delete this file and then manually start