Embedded YouTube video's keep playing audio after leaving page

Hi guys,
My problem is that when I leave the page of my website playing a YouTube video, it just keeps on playing the audio. I will put a copy of my code in this message, maybe I just need to tweek it a little.
Somebody please help, this is very important for my website, thanks.
So here is the code I use:
Security.allowDomain("www.youtube.com");
var player:Object;
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.INIT, onLoaderInit);
loader.load(new URLRequest("http://www.youtube.com/v/h814ob7nCxo?version=3"));
function onLoaderInit(event:Event):void {
    addChild(loader);
    loader.content.addEventListener("onReady", onPlayerReady);
    loader.content.addEventListener("onError", onPlayerError);
    loader.content.addEventListener("onStateChange", onPlayerStateChange);
    loader.content.addEventListener("onPlaybackQualityChange",
        onVideoPlaybackQualityChange);
function onPlayerReady(event:Event):void {
    trace("player ready:", Object(event).data);
    player = loader.content;
    player.setSize(480, 360);
function onPlayerError(event:Event):void {
    trace("player error:", Object(event).data);
function onPlayerStateChange(event:Event):void {
    trace("player state:", Object(event).data);
function onVideoPlaybackQualityChange(event:Event):void {
    trace("video quality:", Object(event).data);

You added a couple of spaces to the Youtube code.
Change:
& border=1
to:
&border=1
in two places so that it matches the code from the Youtube embed code. Or copy the code from Youtube again. The result:
<td width="45%" align="left"><object width="305" height="214"><param name="movie" value="http://www.youtube.com/v/4_hzyUKzRII&hl=en&fs=1&color1=0x2b405b&color2=0x6b8ab6&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/4_hzyUKzRII&hl=en&fs=1&color1=0x2b405b&color2=0x6b8ab6&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="305" height="214"></embed></object></td>
It works in my test.
Mark A. Boyd
Keep-On-Learnin' :-)
If you are reading this via email, be aware that it may not be an accurate representation of my message. Login to read the actual message and/or to reply.

Similar Messages

  • Embedded YouTube videos do not play on my Mac Mini

    Embedded YouTube videos don't play in non-YouTube web pages.  I can click the link in the top of the video to be taken directly to YouTube, and I can watch the video there, but when I click the big Play button in the middle of the video window, I just get a black rectangle.
    I tried uninstalling Flash player as suggested in another thread, rebooted my machine, and reinstalled Flash player, but that did not fix the problem.  This is a non-Flash player problem that Apple should look into.  I have not tried this on other browsers to see if I have the same problem there or not, as I do not use other browsers besides Firefox.  I would rather not have to use another browser just so that I can watch embedded YouTube videos.  I would prefer if Apple (or another knowledgeable user) can post the solution to the problem.  Thanks!

    In Firefox, click Tools>Add-ons. Make sure the Shockwave Flash plugin is enabled and "Always activated".
    If that fails, see: How to perform a "clean install" of Flash Player in Mac OS X  in the Adobe Forums. That will clear out the pluigins and allow a fresh install with the new plugin.

  • Embedded Youtube Video's not Playing in Web Viewer

    I have several YouTube videos embedded in my folios. They all play fine when being viewed in the app, but if the folio is shared (by any channel) and viewed in the web viewer these videos won't play. Instead the user is greeted by this error:
    Not found
    Invalid character in path
    I know that other apps using embedded youtube videos are playing just fine in the web viewer (I check out Wired) so I'm curious why mine are broken.
    Any thoughts?

    This streaming YouTube example works fine in DPS Tips web viewer:
    http://contentviewer.adobe.com/s/DPS%20Tips/7f80a0ffed3a4ff08734bc905aac4a29/Advanced_Over lays/29_Video_Stream.html
    Here's the embed code I used:
    <iframe width="640" height="360" src="http://www.youtube.com/embed/QV1UZ-88HeE?rel=0" frameborder="0" ></iframe>
    Are you using the same embed code format for your overlay?

  • Embedded Youtube video is not playing in PDF while it is playing in Adobe Content Viewer - Indesign CC

    Hi,
    as a newby to DPS with Indesign CC, I'm currently working on a catalog that contains internal jumlinks and embedded youtube video's.
    All works fine in preview (Folio Overlay > Preview on desktop).
    Then I export to Adobe PDF (Interactive).
    When I open the PDF the internal links work just fint.
    But the Youtube video is not popping up.
    To embed the video I've inserted this code: <iframe width="640" height="360" src="https://www.youtube.com/embed/6EXxtnTOnqA?feature=player_detailpage" frameborder="0" ></iframe>
    And I've selected 'autoplay' in the Folio Overlays
    So what am I missing here?
    Thanks for you help,
    Dimitri

    Hi Bob,
    Like I said I'm a Newby, I even don't really understand what you mean with this.
    I'm working in de Digital Publishing toolset (I thought that was DPS).
    I use Folio Overlays over the embedded youtube code, with autoplay on.
    Than I export to PDF interactive, but neither Adobe reader, nor Preview is showing the vid.

  • Embedded youtube videos do not play. I have tried all available solutions. They played before with no problem.

    This problem has been brought up and I tried every possible solution...uninstalled and re-installed...updated, etc. The video shows the opening frame, but when I try to play, I get the same error message "am error occured, please try again later" The video plays fine in IE.
    The website with the video does not make any difference. They do not play anywhere using Firefox. Below is one URL example.

    "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"<br />
    "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Next Generation Java Plug-in 1.6.0_15 for Mozilla browsers
    Update the [[Java]] plugin to the latest version.
    *http://java.sun.com/javase/downloads/index.jsp (Java Platform: Download JRE)

  • Flash Player w/embedded YouTube videos in PPT 2010

    Embedded YouTube video won't play in PPT2010; error message says newer version Flash player needed (newest alreadt installed).

    Yes, I have the latest version installed.  I finally discovered yesterday that evidently YouTube has made a change to their coding in the past week, and there is now a double entry of code that I must delete before the embedding works correctly ... at least until there is a fix.  Thanks.

  • Youtube video is blank,but audio played well. other browser such as chrome got no problem with it. FF Developer Edition.

    - youtube video just blank, but audio is there. tried both embedded in facebook or other website, and at youtube.com. both same result.
    - facebook video played just fine
    - other browser played just fine.. no problem at all..
    - i'm on firefox developer edition
    - tried installing latest flash update, still the same result.

    This problem can be resolved by disabling hardware acceleration in your Flash Player settings. (See [[Flash Plugin - Keep it up to date and troubleshoot problems|this article]] for more information on using the Flash plugin in Firefox).
    To disable hardware acceleration in Flash Player:
    #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.
    Does this solve the problem? Let us know.

  • Embedded youtube videos will no longer play in Powerpoint 2010

    Since upgrading to Flashplayer 11, I can no longer play embedded youtube videos in powerpoint 2010.  I get the error message that I have to upgrade Flashplayer.  I have performed several clean installs, yet I continue to get the same error message stating that I have to upgrade Flashplayer.  How do I correct this?

    i know right here is one fix if u got 2010 powerpoint  youtube did some changes thats not compatable with it . 1 way around it that might work for you is within the use old embeded code  were it says version=3 change it # into 2 insted of 3. do this in both appeareances.
    example   <object width="1280" height="720"><param name="movie" value="http://www.youtube.com/v/1rcqwRgVvvw?version=3&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/1rcqwRgVvvw?version=3&amp;hl=en_US" type="application/x-shockwave-flash" width="1280" height="720" allowscriptaccess="always" allowfullscreen="true"></embed></object>
    change the #3 to the #2 thats it. then paste it in your powerpoint insert video from web.

  • Youtube videos don't play after upgrading from 3.x to 4.0.1.

    Youtube videos no longer play after upgrading from Firefox 3.x to the new 4.0.1.
    The youtube page loads completely but the video never starts.
    Firefox displays the page like its done downloading the video, but no video.
    It displays as "done" loading the page with no activity in the page tab or bottom bar... but the video screen is black. Everything but the video loads.

    Hi There
    I seem to have experienced the same problem, after applying the APEX 4.0.2 patch, my theme produced errors on the new type of date picker. I use the Bravo theme.
    I am now trying to purchase the Delta theme, but unfortunately I see today on the Apex-Themes website that the themes are not available to purchase anymore.
    Did you manage to resolve your issue? And do you maybe by any chance know where I can get hold of the Delta theme now?
    Regards
    Marissa

  • Firefox no longer plays embedded YouTube videos - message "An error occured, please try later"

    I've updated FireFox, cleared cache etc., but continue to experience this issue on several different sites where I have embedded YouTube videos. This issue has only just started happening - all was well a few days ago. They play fine with Chrome and Safari and I can also play the un-embeded version on YouTube in Firefox.

    Yes, unfortunately, another user reported this a few days ago on his website.
    Currently the only workaround is to click the YouTube button in the player to launch the video in a new window, and then manually edit the -nocookie out of the address and press Enter to load it on the real YouTube site.
    Hopefully someone at Google/YouTube will figure out why this suddenly broke and fix it.
    The other thread: [https://support.mozilla.org/questions/1050925 youtube-nocookie domain has problems in Firefox, but not in Google Chrome]

  • Firefox 3.6.3 wont play embedded youtube videos. It comes up with "an error occured please try again later. this happens all the time

    Firefox 3.6.3 wont play embedded youtube videos. It comes up with "an error occurred please try again later. this happens all the time. If you click to go to youtube the clip plays.
    == This happened ==
    Every time Firefox opened

    I was having the same issue up until I found a solution myself a few minutes ago. If you have "Accept Third Party Cookies" un-checked it will not allow the embedded "Third party" youtube videos to load. You can either Check the box to allow third party cookies or add an exception to allow youtube.com WITHOUT the www. You just want it to be Youtube.Com.
    To do so just go to Tools: Options: Privacy: Exceptions: Type in Youtube.com and click Allow. Then click Close and OK. It should start working immediately.

  • Safari stop playing embedded youtube videos

    Hi
    I am having trouble with Safari 4.0.5 (6531.22.7) which suddenly refuse to play embedded youtube videos. Safari show the video in a web page but when played the youtube default play display "an error occurred, please try again." and Safari display in the status bar "one error in opening the page, for more information, choose Window->Activity". Now when I look in the activity window it show "forbidden" beside the video file.
    Strangely I can play the same video from the youtube main page without any errors.
    I have already done the following:
    - checked permissions with Disk Utility.
    - Reset Safari
    - Empty caches
    - Removed com.apple.Safari.plist
    - Uninstalled, re-Installed Flash plug-in
    but the problem still persist. Help in resolving will be highly appreciated.

    HI and Welcome to Apple Discussions...
    YouTube streams content using the Flash plugin ... Flash Player support on 64-bit operating systems
    Since you are running Snow Leopard, *try running Safari is opening in 32-bit mode, not 64*. Right or control click the Safari icon in the Applications folder, then click: Get Info In the Get Info window click the black disclosure triangle next to General so it faces down. Select 32 bit mode. Also, (in that same window) *make sure Safari is NOT running in Rosetta.*
    

Web pages now include a small icon or 'favicon' which is visible in the address bar and next to bookmarks. These icons take up disk space and slow Safari down. It is possible to erase the icons from your computer and start fresh. *To delete Safari's icon cache using the Finder, open your user folder, navigate to ~/Library/Safari/ and move this file "webpageIcons.db to the Trash.*
    bpageIcons.db to the Trash.*
    Carolyn

  • Why wont embedded youtube videos play on ipad

    why wont embedded youtube videos play on ipad

    Hi..
    Try troubleshooting the Flash plugin which is required for most YouTube cotent as well as other sites.
    Quit Safari.
    Open System Preferences > Flash Player then select the Storage tab. Click: Delete All
    Now uninstall the Flash plugin then reinstall new >  Troubleshoot Flash Player | Mac OS
    Very important to uninstall first.
    Launch Safari From your Safari menu bar click Safari > Empty Cache
    Now try a video.
    BTW... if you have the ClickToFlash extension installed, that can prevent Flash based video from streaming. It can also be installed as a plugin in /Library/Internet-Plug-Ins.
    And check to see if Safari is running in 32 bit mode. Right or control click the Safari icon in your Applications folder then click Get Info. If the box next to:  Open in 32 bit mode  is selected, deselect, quit then relaunch Safari.

  • Youtube videos will not play on Ipod touch 5 after ios update

    YouTube videos will not play on my IPod touch 5 after I updated the operating software. Any suggestions on how to fix? I uninstalled and reinstalled the YouTube app.

    What exactly happens when you try?
    Apps crashing
    See:
    iOS: An app you installed unexpectedly quits, stops responding, or won’t open
    Contact the developer(Google)/go to their support site
    Restore from backup. See:
    iOS: How to back up

  • Embedded youtube videos from accordion panel

    I'm trying to get embedded youtube videos to pop in from accordion panel
    the accordion panel would have the 'titles' with descriptions displayed when clicked on, and there in the description would be a link to make the embedded youtube clip appear beside the panel.
    go to each accordion panel selection and get a different embedded video to play.
    anybody know if that can be done and how ?

    Thank you for the suggestion,
    I already did try that, but didn't work.
    However after watching your swf, I figured out I must have had the wrong 'aspects' active when I was putting my embedded code in, so the results were all over the place.
    So I tried it again by your steps, and it does work, -- thankyou !  -- except for one thing.
    If the watcher does not finish or stop or pause one video before playing another, both videos are playing, even though one of them is 'hidden' in the closed panel, which is ok if there's no audio, however if they both have audio, the audio track of both play back.
    Darn, I don't think most people would realize if they don't finish a video before watching another, they have to manually stop the currently playing video before playing another.
    Even if I was to include instructions to say so.  :-(

Maybe you are looking for

  • Can I keep a published/shared calendar current when using two synced macs?

    I have two macs, home and office, thinking about a laptop for travel as well, plus iPhone. I sync all the calendars with .mac which works nicely, then publish and share. But I am not publishing the .mac version, I am publishing the version on one of

  • Does anyone know any tips for editing video to display on an LED digital billboard?

    I was just given a MOV file of a TV commercial they want to display on a digital billboard. It needs to be converted to AVI format. They said when they tried to translate it to AVI, it looked terrible and they couldn't tell what it was. They thought

  • New logic board and now won't link to airport express

    hi I have a macbook which I bought in january, after 2 weeks I had various kernal panics and apple replaced the logic board. I picked it up yesterday and was using it at work on a wireless network all day, then I came home and tried to connect to my

  • Problem in creating a lookup in oim.

    when i am trying to create a lookup in jsp, it is directly printing on jsp page. the code is: row.add(TableCellFactory.createText("<input type=\"text\" name=\"selectedValuesToMove" + objectInstanceKey + "maxlength=\"50\" tabindex=\"\" "+ i + "\" valu

  • Folder Renaming Bug

    Hello, We have two (2 x 3 GHz Dual-Core Intel Xeon) machines running 10.4.9, networked with a server running Microsoft Windows Server 2003 5.2.3709 Service Pack 1 Build 3790. The Macs are set up as Admin, Managed Mobile user accounts. All work is sto