Youtube Player in Shockwave Sprite

I'm trying to embed FLV videos from YouTube into a Flash cast
member and sprite. YouTube has an ActionScript 2 API for their
player and I'm using Director 11 and Flash CS 3.
http://code.google.com/apis/youtube/flash_api_reference.html
I need to pull them from YouTube, I can't download them to
disk and then use them.
I can embed a movie with a normal FLVplayer component and get
it to play video from the net. Lingo really isn't doing anything
here. The ActionScript looks like this (CODE SNIPPET 1):
But using the YouTube player I need to use their API, so the
code looks like this (CODE SNIPPET 2).
When I test the movie in Shockwave it loads the player and
ytplayer.isPlayerLoaded returns true, but the video does not play.
Does anyone have any ideas what the problem might be? When I
simply publish from Flash it all works. I think I'm close
...

Got it working:
http://www.ourwebhome.com/dig/you/yt1.htm
I used Shane's excellent AS2 API from:
http://www.lostinactionscript.com/blog/index.php/2007/10/13/flash-you-tube-api/
The only thing I had to add was some code to initialize the
sprite:
property spriteNum
on beginSprite
fs = sprite(spriteNum)
fs.actionsEnabled = TRUE
fs.buttonsEnabled = TRUE
fs.eventPassMode = #passAlways
end

Similar Messages

  • What's the Difference Between Flash Player and Shockwave?

    Hi,
    I was wondering what's the difference between Flash Player
    and Shockwave? And how do you know which one isn't working? I
    downloaded and installed Flash Player successfully but it did say
    that the plug ins might be in another file and may not work
    properly. There is one game that will work, but most everything
    else doesn't. I don't get pictures (like adverts, ect.) in my
    email. What is the problem?

    I have found this site helpful. Adobe has a "Test Adobe
    Shockwave & Flash Players" site. Here is the address:
    http://www.adobe.com/shockwave/welcome/

  • Include an interactive Youtube player in Edge Animate - Not working properly!

    Hi folks!
    I am working on a new project which is based on a interactive web video.
    In the Edge Animate proyect I have implemented a Youtube fullscreen player which has interactivity. On the one side, in the Edge project I have included a JS which contains the definition of the Youtube player API and all its functions in order to enable the interactivity. On the other side, in the HTML which creates Edge Animate I have included the div for the player and some buttons to play and stop the Youtube video.
    When I launch the website using Edge Animate everything works fine, but when I open the HTML file without Edge Animate, the Youtube player is not being defined (the player div is empty). I think the problem may be related to the external JS file in the Edge project.
    I don't recognise why this external JS with the Youtube functions only load when it is launched from the Edge Animation app.
    My aim is to load this project as a OAM file at the end in Wordpress with the Youtube player and its interactivity included.
    Need help for this issue! Does some know how to fix it?
    Conclusion:
    Fullscreen animation with Youtube Player as background with some buttons in the HTML project file to play and stop the youtube video. Youtube API functions inside an external JS file and included in the Edge Animate project. Only works when the animation is launched with Edge Animate. If the HTML file is open directly, Youtube player is empty.
    PD: I have attached some images in order to offer a clearer vision of this problem.

    Actually yes...!
    Failed to load resource: net::ERR_FILE_NOT_FOUND file://www.youtube.com/player_api
    But why only when opening the HTML directly...?
    There is another error...maybe this is the problem source:
    Uncaught SecurityError: Blocked a frame with origin "https://www.youtube.com" from accessing a frame with origin "http://localhost:54321". The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "http". Protocols must match.

  • Flash Player or Shockwave Crashing Windows7 x64

    Hi ,
    I bought just 1 week ago a new hardware for my gaming pc.. the rig is the one described
    Specs
    CPU
    Intel  i5-750 4cores 2.66 GHz
    Ram
    PNY XLR8 4GB DDR3-1600 Ram Kit (PC3-12800,  8-8-8-24, KCDIM4GBN/12800/3-XL)
    Display
    ATI SAPPHIRE 5850
    Motherboard
    Intel® 5 Series Chipset Board DH55TC
    As im a hardware technician i ve updated everything from bios, audio drivers , display etc....
    After a long searching i found out that flash (player or shockwave) seems to cause the problem... what i mean is that whenever i visit certain sites, or watching videos from web players the pc is starting to freeze,  crash , lag etc... if i leave it for a long time... the OS is totally crashed, and i need to reboot the pc after that, if i close the browser in the middle of the freezing ( the respond times of clicks etc is so damn slow...) if i manage to close everything related to adobe flash - firefox etc - and i open a game for example the pc is behaving like a charm....
    My question is... is anybody else having this problem ?
    And if u have it, what did you do or what do you suggest me to do in order to get this lame lag fixed ?

    Hi, Since your OS is a 64bit, and Adobe Flash Player does not support the 64bit, you need to use the 32bit browser which is the default in Win7.
    Go to C:\Windows\SysWOW64\Macromed\Flash  Right click on the Flash folder and post back all files listed. The IE files will have the version number. The NPSWF files will not, right click on each one and then Properties to obtain the version info. I need all of the files listed with that info.
    Using IE, go to your ALL add ons and find Shockwave Flash Object...ActiveX Control...Flash10e.ocx (vs 10.0.45.2) and make sure that is listed and Enabled.
    Using FF, find the plug-in SWF and make sure it is version 10.0.45.2 and Enabled as well.
    Please list your Anti-Virus/Spyware/Firewall info, with a version number for the AV.
    Do you have ad-block in Firefox? If so Disable it for now.
    Do you use any pop up blocking software?
    Using IE, go to Tools>Internet Options>Security Tab and make sure security is set to Medium for the Internet Zone.
    Thanks,
    eidnolb

  • [Android] [Stagewebview] Video: Force youtube-player, prevent OS-Player

    Hey there,
    Im using stagewebview to embed a youtube-video (tried both, iframe and old embed).
    1) On most older devices, the youtube-flash player is shown "as is", the original swf-player including all the controls etc.
    2) On most newer devices, this stupid Android-Os-Player takes over and replaces the youtube-player, often causing some unpredictable side effects.
    How can i force stagewebview to always use option 1, the youtube-player (flash is installed anyway on most devices) ?
    My client does not care about performance, a consistent look/behavior is more important.
    Are there any html-attributes or stageWebView settings i can use to accomplish that task ?
    Thanks.
    V.

    Here is more info.
    It shows a black box on my samsung tab 10.1, and if you tapp on it really fast you can get it to go into fullscreen mode where it place the youtube video. Any one have any ideas on how to get it to work in non full screen.
    webView = new StageWebView();
    webView.stage = this.stage;
    webView.viewPort = new Rectangle( 0, 100, screenWidth, 779  );
    htmlString = '<iframe class="youtube-player" type="text/html" width="640" height="385" src="http://www.youtube.com/embed/YOsrVaLbKCY" frameborder="0"></iframe>';
    webView.loadString( htmlString );
    please Help!

  • Embedding Youtube player

    Hi All,
    I want to have the youtube player within my flex app. At the moment I use the swfloader which loads my movie.
    This is ok. But I have 2 questions.
    By default the fullscreen button isn't available within this player.
    1. How can I add this fullscreen button?
    And I get some error when loading another video. Read some articles that the swfloader have to unload the first video, but am not succeeded in doing this.
    2. Can someone provide an example?
    (or if there is a better way to embed the youtube player, please let me know!)
    Thansk in advance!

    OK, now I have the fullscreen button (added "?fs=1" to the videoId).
    A click on this button won't do the trick but I have found a workaround. Added an transparant button above the Fullscreen button in the player, catch the click and perform a custom function.
    In this function I define a Rectangle and do a: stage.displayState = "fullScreen".
    But, almost there, I'm getting annoying scrollbars within my fullscreen modus!
    The cause of this is that the fullscreen modus want to show all elements at the stage.  But that is not what I want because I only want to show the region within my Rectangle.
    Is there a way to remove the scrollbars from the fullscreen modus, and only show the part within the Rectangle?

  • Ssible to get Adobe flash player or shockwave

    Is it possible to get Adobe flash player or shockwave added to the iphone. I cant seen to get them do download.
    Thanks

    dinoright,
    The iPhone support MPEG-4 encoding with H.264. More details for web developer's are here:
    https://developer.apple.com/webapps/designingcontent.php (Free ADC registration is required)
    MPEG-4 is actually a pretty versatile standard, and with a reference movie you can have multiple movies available for varying quality. The details are discussed in the drop down sections of the above link, but you can have 1 link on your website point to a low bandwidth version for cellular users, a higher bandwidth version for iPhone or iPod Touch on WiFi, and then a third version in HD for people at their computers.
    Hope this helps,
    Nathan C.

  • I have an iPad 2 running iOS 5. My YouTube player doesn't play HD videos. How do play it ?

    I have an iPad 2 running iOS 5.0.1. My YouTube player doesn't play HD videos. How do u make it work ?

    . I have this problem too.  Did you ever find a solution?  I'm going to the Genius bar tommorrow to get some answers

  • Youtube player

    I was wondering why only certain videos are available on the iPhone's youtube player as compared to my PowerBook?
    Thanks

    macjmillsx,
    When YouTube support was announced for the iPhone, it was also announced that youTube will be converting the videos to H.264, and approx 10,000 of them would be ready at the time of the iPhone release with more added each week.
    This link has the original announcement:
    http://www.apple.com/pr/library/2007/06/20youtube.html
    The videos are being encoded to H.264 that can scale depending on the bandwidth available to stream them. For more information on H.264 please see this link:
    http://www.apple.com/quicktime/technologies/h264/
    Hope this helps,
    Nathan C.

  • C6 Youtube player doesn't work

    I just bought a C6 and at the beginning the youtube player worked perfectly.
    But now it wont start anymore, its not possible to see videos neither on the player nor downloading them

    >on the screen appears sentence "Youtube XL no longer supported" and that's all.
    +Devices affected: Toshiba, Sharp & Pioneer (Select models), PS3 (Limited regions), Wii (Limited regions)+
    Google stopped the support of YouTube XL at June 9, 2013
    Instead of Google Youtube XL you can use the link youtube.com/tv to enjoy Youtube on the TV
    Additionally you could use the YouTube Leanback Lite: http://www.youtube.com/leanbacklite
    +_Source:_+
    [YouTube XL no longer supported|https://support.google.com/youtube/answer/3123170?hl=en]
    and here another thread about the same theme:
    http://forums.computers.toshiba-europe.com/forums/thread.jspa?threadID=72572

  • Slight letterboxing in youtube player from SD video

    I have uploaded a video to youtube and in the youtube player I get a slight letterbox. Looking at other SD videos on youtube I don't notice this.
    Video was shot on a Samsung F40 BN SD, My settings in PE11 was NTSC Flash memory  standard 48khz. I uploaded in PE11 using youtube
    H.264   640x480.

    Try creating a new project. On the New Project option screen, click Settings and select the settings for a Flip Mino (standard definition). Then, back at the New Projec screen, select the option to Force Settings on Project.
    Those project settings should better fit your video.
    Then,  to output a video for YouTube, use Publish & Share/Computer/AVCHD and select the Vimeo SD preset.

  • Adobe Flash Player and Shockwave crashing has disabled my computer

    I have downloaded a second flash player and it is still the same. Firefox has been crashing daily for a few weeks. I noticed that your adblocker plus was updated 6/4. Since then I have almost no use of firefox, because the Adobe flash player 13.0.r0 and Shockwave crash notices are constantly popping up. Could that update have something to do with why the flash players are not working? Below are an example of the crash details.
    Thanks for the help. I prefer your browser, but this has made it non-functioning.
    In trying to fix it, a window came up that asked would I like to change it back to a previous working image, which was Windows XP. Although this computer is Windows 7, I clicked the box yes, and said I wanted it to work like Windows XP. I see in your Operating System below, that it reads Windows Xp, but this computer is actually Windows 7. I can't find that menu to change unclick and change it back, so that it is working as Windows 7.
    Problem Event Name: APPCRASH
    Application Name: FlashPlayerPlugin_13_0_0_214.exe
    Application Version: 13.0.0.214
    Application Timestamp: 5359c61d
    Fault Module Name: StackHash_27eb
    Fault Module Version: 0.0.0.0
    Fault Module Timestamp: 00000000
    Exception Code: c0000005
    Exception Offset: 6c2b92cd
    OS Version: 6.1.7601.2.1.0.256.48
    Locale ID: 1033
    Additional Information 1: 27eb
    Additional Information 2: 27eb358fe674a6f15dafe56d42bb9bf3
    Additional Information 3: 2f06
    Additional Information 4: 2f06c18113e6d7c00e6b91fa1fde84b6
    Read our privacy statement online:
    http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
    If the online privacy statement is not available, please read our privacy statement offline:
    C:\Windows\system32\en-US\erofflps.txt

    AdBlock Plus isn't maintained or connected to Mozilla as they didn't develop it. ABP and Flash don't interfere with each other except on same cases that ABP blocks Flash content.
    You can Try disabling Hardware Acceleration. <br>
    #Go to this [http://helpx.adobe.com/flash-player/kb/video-playback-issues.html#main_Solve_video_playback_issues Adobe Flash Player Help page].
    #Right-click on the Flash Player logo on that page.
    #Click on '''Settings''' in the context menu. The Adobe Flash Player Settings screen will open.
    # Click on the icon at the bottom-left of the Adobe Flash Player Settings window to open the Display panel. <br/> <br/>[[Image:fpSettings1.PNG]] <br/>
    # Remove the check mark from '''Enable hardware acceleration'''.
    # Click '''Close''' to close the Adobe Flash Player Settings Window.
    # Restart Firefox.
    This [http://www.macromedia.com/support/documentation/en/flashplayer/help/help01.html Flash Player Help - Display Settings page] has more information on Flash Player hardware acceleration, if you're interested.
    If that doesn't work try Try to disable Protected Mode in Flash 11.3 and above by adding the line ProtectedMode=0 to the Flash "mms.cfg" file located in one of these locations: [46]
    (Windows 32bit) C:\Windows\System32\Macromed\Flash
    (Windows 64bit) C:\Windows\SysWOW64\Macromed\Flash
    For example, on a Windows 7 64-bit system, open the C:\Windows\SysWOW64\Macromed\Flash folder, copy the file "mms.cfg" to the desktop, open it in Notepad, add a new line <code>ProtectedMode=0 </code> and then close Notepad, saving your changes. Next, go back to the C:\Windows\SysWOW64\Macromed\Flash folder, rename the original file to "mms.cfgBAK" (to save it as a backup) and then drag and drop in the modified "mms.cfg" file from the desktop. [47] [48] [49]
    Note: To re-enable Flash Protected Mode, either restore a backup of the original mms.cfg file, if you saved one, or else re-edit the mms.cfg file to remove the <code>ProtectedMode=0 l</code> line you added. Updating Flash Player or installing a newer version does not automatically re-enable Protected Mode
    Flash has been a pain since day 1 and Mozilla is currently working to replace Flash with Shumway. Unfortunately it's in the Nightly channel, doesn't come activated automatically and it isn't quite ready for normal usage. I just tested Nightly yesterday with Shumway and it wouldn't play.

  • Youtube player in the middle of the page

    Since I updated to firefox 5 the youtube video player is in the middle of the page with gray areas on the sides, it doesn't matter if I expand the view or or change resolution, I think the problem is firefox because this doesn't happen with chrome or IE. How can I fix this?, thank you.

    Here a snapshot of what I mean.

  • I just switched from an HP laptop to a MacAir. I am trying to view videos from within my power points. These were played on Adobe player and shockwave player. Is it safe to install that on a Mac? If not how can I play these?

    I just switched from an HP laptop to a MacAir laptop. I had previously developed a number of powerpoints in which i have video links that require adobe shockwave player. I can no longer play them on the MacAir. Is it safe to download the Adobe player? If not how can I play these videos now?

    Adobe players are safe.  Go to adobe.com and their site should detect the latest version for your hardware.

  • Flash player and shockwave player "not installed"

    I recently downloaded the most current shockwave player and
    flash player, but when I go to a website that requires the program
    it tells me that I need to install the shockwave player/flash
    player. I download each again and have even shut down and rebooted
    to see if that helps but it doesn't, it keeps telling me that the
    shockwave player/flash player is not installed and that I need to
    install it again. Can anyone help me find out if there are any
    settings that might need to be changed on my computer to let them
    run? Customer support was no help what so ever and just told me to
    reinstall.
    Operating System: Windows XP
    Browser: Microsoft IE version 7
    Thank you very much

    I am having the exact same problem. All are Windows XP SP2
    machines. Funny thing is, it seems only to be occurring on a
    certain 'block' of newer computers. anything more than about 8-10
    months old, and the app runs fine. Brand new machines <1 month
    old are fine. I have a number of machines in that 1-8 month-old
    range that are exhibiting the problem. I found this
    here
    but it does not seem to work. Anyone else with this issue?

Maybe you are looking for

  • Firefox stops responding during Gmail and Google, why?

    The last few weeks, Firefox 4.1.0, on my XP SP3 system, stops responding while I am sending Gmail, frequently, stopping the transmission. Today, for the first time, it stopped responding while I was searching on Google. The LAST thing I want to do is

  • Clueless returnee

    I am resuming Java programming after an absence of a couple of years. I started by installing JBuilder 3.0 and SDK 1.3.1 and trying to modify a program I wrote in 1999. It runs fine in the JBuilder IDE. I used the JBuilder deployment tool to create a

  • IMac G5 - Pixelated Finder screen

    Hi guys, Wondered if anyone can shed any light on this. I keep getting a pixelated finder screen - not all over but as if the screen hasn't rendered properly. It happens infrequently when I boot up in the morning & it also occured when the computer w

  • I want to run dual monitors with my hp compaq dc5800 small from e7400 @ 2.8ghz

    I want to run dual monitors with my hp compaq dc5800 Small From e7400 @ 2.8ghz.  Will it work and what video card do you recomend?

  • Max buffer size for HDS streams

    How does OSMF (v2.0) compute the max buffer length for HDS streams (pre-recorded)? I have  mediaPlayer.bufferTime = 5 seconds, but I see that even on very good b/w connections, the buffer length does not exceed 7.5 secs. Is there a way to increase th