Stopping embedded video from loading multiple times

Hi,
just started using Edge Animate. I have some experience with Flash and After Effect so the layout is pretty familiar to me. I have no background in coding so I am very happy that it generates codes for me.
My goal is to make a simple html5 site with links / embedded videos to my contents (500 and vimeo). I copied some codes used for Youtube embedding, sub'd the url with vimeo url, and it worked fine. I used a "play video" button on the main page to trigger loading the video page (see my code below).
It worked great the first time I clicked the button and went to the video page. However, upon returning to the main page, and click the "play video" button again, a duplicate copy of the video is loaded right below the video loaded upon first click. This occurs for as many times as I click the play video button.
Anyone knows how to fix this?
Thanks
Pako
sym.play("VideoPage");
var youtubevid = $("<iframe/>");
sym.$("vcontainer").append(youtubevid);
youtubevid.attr('type','text/html');
youtubevid.attr('width','500');
youtubevid.attr('height','375');
youtubevid.attr('src','vimeo code');
youtubevid.attr('frameborder','0');      
youtubevid.attr('allowfullscreen','0');  

Adjust the line
     sym.$("vcontainer").append(youtubevid);
to this
    sym.$("vcontainer").empty().append(youtubevid);
The addition of the empty() method is to make sure it clears out the container on successive clicks.
hth
Darrell

Similar Messages

  • I have Hughesnet with limited bandwidth and even with adblock plus websites start flash videos now - how can I stop the videos from loading when the web page loads

    Hughesnet only allows us to use an allotted amount of download. If I use tabs on Firefox, some pages start their bandwidth eating flash yada yada and waste my allotment. I'd like to have Firefox default to NOT loading flash unless I do something to say OK. Adblock plus helps eliminate flash ads, but not page content that is in flash.

    https://addons.mozilla.org/en-US/firefox/addon/flashblock/

  • Stop Video from loading automatically...

    Hi Everyone,
    I have a VideoDisplay control that I want to play some video,
    however I want to control when the video to be played should load.
    At the moment, video is automatically loaded even though autoplay
    has been set to false. Stopping the video from playing doesn't seem
    to stop it from loading. Can I stop the video from loading at all?
    Thanks for your help,
    - Tony

    Clark_Kent101 wrote:
    > Hi Everyone,
    >
    > I have a VideoDisplay control that I want to play some
    video, however I want
    > to control when the video to be played should load. At
    the moment, video is
    > automatically loaded even though autoplay has been set
    to false. Stopping the
    > video from playing doesn't seem to stop it from loading.
    Can I stop the video
    > from loading at all?
    >
    > Thanks for your help,
    >
    > - Tony
    >
    Have you tried Enabled="false"
    Mark

  • How do I stop a flash video (swf) from loading every time I go to a new page

    I have a universal flash video on the top of all my pages on
    my site and I would like to know how to stop it from loading every
    time i open a new page in my site.
    thx very much

    You will have to use frames for that. Ew.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Zachary11" <[email protected]> wrote in
    message
    news:f43u4i$pgl$[email protected]..
    >I have a universal flash video on the top of all my pages
    on my site and I
    >would like to know how to stop it from loading every time
    i open a new page
    >in my site.
    >
    > thx very much
    >
    >

  • Every time I start Firefox, the upgrade/signup page is displayed in one tabe while google, my start;up page s displayed in another. How can I stop the firefox page from loading every time?

    Every time I start Firefox, the upgrade/signup page is displayed in one tab while google, my start-up page is displayed in another. How can I stop the firefox page from loading every time?

    See these articles for some suggestions:
    * https://support.mozilla.com/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox
    * https://support.mozilla.com/kb/How+to+set+the+home+page - Firefox supports multiple home pages separated by '|' symbols
    * http://kb.mozillazine.org/Preferences_not_saved

  • Embedded videos from various websites no longer load

    embedded videos from various websites no longer load. i just get a black mini screen with no controls. they do load when using other browsers and this only started within the last few days

    i just tried safe mode and that makes no difference. the videos that do not load are ones embedded in websites such as the huffingtonpost etc. the website loads as normal. when i click on an article with a video the article appears but the area where the video usually appears is just a black box. typically that box contains a "promo shot" and video operating controls. recently this area is just black. this happens on numerous news type websites. when i use safari as my browser everything works fine

  • How do you stop game center from loading, How do you stop game center from loading

    iPhone 4 _ iOS7
    I have never used Game Center. However, most times when I open a solitaire game that I purchased on iTunes having 0 to do with Game Center, Game Center (obnoxiously) loads and asks that I join or login or whatever. Altough I hit cancel, that is not sufficient. I have found no means in Tools to disable Game Center.
    Is there no way to stop Game Center from loading??? (behavior same in both OS 6 & 7)
    Mark

    The me.com website is not designed for or intended to be accessed by iOS devices. Apple provides support in iOS or seperate Apps for accessing all aspects of MobileMe except for the Accounts section.
    Use MobielMe as intended and you'll have no problems.
    See: http://support.apple.com/kb/ts1673
    Even if you use a different browser to get access to me.com on iOS, you'll find most of it is unusable.
    Other websites that present you with the mobile version have been programmed to do so by their developers. They specifically look for users accessing from 'mobile' devices and switch to the mobile site. Many such sites provide a link to go back to the 'full' site, if not, there's not a lot you can do except use a browser that can pretend not to be a mobile browser.

  • How to stop a page from loading?

    Does anyone know if there's a way to stop a webpage from loading (i.e. before it finishes)..? This page, for example:
    http://sportsillustrated.cnn.com/baseball/mlb/gameflash/2011/06/04/36460_recap.h tml
    When I click on the "X" (or type Cmd+period) i want to cease ALL communication with whatever website is in the address bar. I don't want periodic updates, i dont' want animated ads to finish loading, i don't want my screen rearranged.... nothing. I WANT TO TERMINATE ALL CONTACT WITH THAT WEBSITE until such time that i might click on "reload".  And i should be able to do this without having to yank out my ethernet cable.
    This may be a more general problem that applies to Firefox as well. 

    Huh, i didn't realize the escape key did something different than Cmd+period. It seems to work but i'll have to try it with some of the peskier websites.... Thanks.

  • Embedded videos from Viddler unable to play

    I have been having this problem for quite some time now and it finally bugged me enough to post about it. Anyway, on the Gawker Media sites (specifically Deadspin for this example) embedded videos from Viddler show a "Video not found" error message. However, if you get the link from the video and watch it directly it works fine. Also if you go to viddler.com and watch any video, they work fine. It appears as though something is messed up in how Firefox handles the embedding of the videos. Not sure if it is an HTML5 thing, a Gecko thing, or what but it works fine in G0ogle Chrome.
    Here is a link of an example of what I am talking about:
    http://deadspin.com/5833185/espn-is-airing-a-tv-commercial-for-grantland
    and if you get the link for the video and go to it directly it works fine:
    http://cdn.static.viddler.com/flash/as3/full-publisher.swf?ref=&key=8ed093e8
    The actual link was:
    http://www.viddler.com/embed/8ed093e8/
    but I had to change it to
    http://www.viddler.com/player/8ed093e8/
    based on advice from:
    http://www.viddler.com/forums/bugs/7491/
    I am running Firefox v7.b1 and I tried it both with and without my add-ons enabled. My Flash and all other plugins are up to date. I had the exact same problem with Firefox v6 as well. Please fix this issue. Thanks

    Based on rschmitty's reply, I attempted a clean install. This seems to fix everything. Not sure where, when, or how something got screwed up, but this is a fairly simple fix. It even continued to work after installing all my add-ons.
    After a little research I did find a couple things that can cause this to mess up. Viddler is very picky about their hotlinking and tries to control who links to their videos. Thus if you go to about:config and change the network.http.sendRefererHeader (http://kb.mozillazine.org/Network.http.sendRefererHeader) to anything other than the default of '2' that messes up any video links from Viddler, not just the links on Gawker Media websites. This change is often required by websites like http://crazedlist.org/ or any other mass craigslist searching sites. Just remember that if you change the network.http.sendRefererHeader option, you must change it back for videos to work.
    Another thing that can screw with the Viddler video linking are add-ons which basically do the same thing as modifying the network.http.sendRefererHeader option. One such add-on is [https://addons.mozilla.org/en-US/firefox/addon/refcontrol/ RefControl], which if you change from anything but the default will cause the 'Video Not Found' error. If you use add-ons like RefControl be sure to add viddler.com to your whitelist/normal referer list so that this doesn't happen.
    This is not an exhaustive list of things which can cause this problem, but it appears that anything like the two above examples which mess with the http referer header will cause it. Maybe reinstalling is not necessary if you simply check anything that may be modifying this option.

  • How do I make a thumbnail that has a gallery inside? And how can I make this gallery have embeded videos from vimeo + Images?

    Hello,
    I'm pretty new to Muse so I don't know a lot about it, but I researched a lot and didn't find an answer to this question.
    I'm trying to make a portfolio website. The website will be a 12 thumbnails. But each thumbnail is one project, not an image.
    When you click one of the thumbnails, I want it to be a lightbox that will show embeded videos from vimeo mixed with images.
    Ex: A coca-cola projet.
    Main page has a thumbnail of a coca cola image. When you click on it, it opens a lightbox with a coca-cola film, when i click to the right arrow, it shows a cocacola poster, then another poster, then another video. (but they are all part of this gallery, that is inside the thumbnail.
    Can you guys help me?
    Thanks!!!

    I don't understand why my thumbnails don't work.
    I dragged a composition lightbox inside another one. But I still have the first lightbox there and can't delete.
    When I try my wabsite i see this:
    But then I click the thumbnail and I see this:
    And when I click one of those 3 I see this:
    Like it is making a double lightbox.
    but it doesn't show the images, it's like the first lightbox is on top of the second one.
    How I deal with this?  =/

  • How do you stop mobile sites from loading in safari automatically on my iPad? I can't log into mobile me because of this.

    How do you stop mobile sites from loading in safari automatically on my iPad? I can't log into mobile me because of this.

    The me.com website is not designed for or intended to be accessed by iOS devices. Apple provides support in iOS or seperate Apps for accessing all aspects of MobileMe except for the Accounts section.
    Use MobielMe as intended and you'll have no problems.
    See: http://support.apple.com/kb/ts1673
    Even if you use a different browser to get access to me.com on iOS, you'll find most of it is unusable.
    Other websites that present you with the mobile version have been programmed to do so by their developers. They specifically look for users accessing from 'mobile' devices and switch to the mobile site. Many such sites provide a link to go back to the 'full' site, if not, there's not a lot you can do except use a browser that can pretend not to be a mobile browser.

  • How do you stop top sites from loading in safari

    I have tried for days to stop "Top Sites" from loading in Safari 7.0
    In my ~Library I have locked the:
    Safari db
    metadata db
    etc.
    There is no way I can find to stop these crap top sites from loading!!!!!!!!!:(
    Anyone found a way to fix this?

    Never mind, I found out how to do it. However, you can't get rid of all the sites because in Safari 7.0, in the Preferences>General Tab, you can only change Top Sites to a minimum of six. So, you can't entirely get rid of them.

  • IPad stop playing videos from sites

    Today my iPad stopped playing videos from site. IT WORKED YESTERDAY so iPad CAN play it. When Im trying to play video there is a crossed triangle so I can't press it. Please help!

    Its not theirs (player) they posts videos from vk.com . On this site it's ok to run video but on all of the others which have videos from vk it's not working.

  • Embedded video not loading?

    I seem to be having a problem with embedded video not loading.
    For example:  In Youtube if a video is embedded in a larger screen (example: http://www.youtube.com/channel/UCY30JRSgfhYXA6i6xX1erWg) it will not load but if I load the video in its own page (example: http://www.youtube.com/watch?feature=player_profilepage&v=bLT0z60vBl4) it will work perfectly fine.
    The issue comes when there are videos that don't have the option to load in a full screen (example: http://www.cbc.ca/thenational/watch/).
    I have the latest version, have hardware acceleration unchecked, this happens with all browsers (IE, FF, Chrome), have deleted cookies... what else can I do?

    this happens with all browsers (IE, FF, Chrome)
    Then it HAS to be something outside of Flash Player and the browsers, because:
    IE usues a proprietary plug-in - ActiveX, which is ONLY for IE amd functions independently of the others
    Firefox uses the standard plug-in, which neither IE nor Chrome use, unless you specifically disable Chrome's proprietary plug-in
    Chrome uses its own proprietary plug-in called "PepperFlash" which not only functions independently of the other two, it's a different format (PPAPI vs NPAPI)
    The odds that all three different plug-ins (in two different formats, no less) have the exact same problem with one situation (viewing embedded YouTube video in another page)... are astronomical.

  • Stopping Genius Data from loading

    I don't view Genius lists so how do I stop the data from loading?

    Good Morning Vietnam!
    OK soldier, give me 20 (push-ups) & read the following:
    http://support.apple.com/kb/PH12142
    Do you have a problem with that?
    Well, I do... it's dated Nov. 5, 2013. iTunes was updated to 11.2.2 after that date wasn't it? Like in June, 2014, correct? Fuhgeddaboutit!
    So I marked it as not being helpful - whatever.
    ARE WE HAVING FUN YET?   Fasten your safety harness, cause we have some real exciting, mundane stuff comin' right at cha next.
    Next I need to know if you are the only user with Admin privs for the iTunes Account; iTunes can be finicky when there several users and more than one and only one has Admin privs. You can share media but if someone whose name we won't mention thinks that they can be an Admin too, you'll have to straighten that out behind closed doors.   I know, I know... this is probably is not the case. This is just boilerplate stuff we have to get out of the way... just because.
    Next we have the 'safe boot' approach. That's when you shut down completely and then start the machine up while holding down the shift key until you finally get to Safe Mode (it takes longer to start up doing this because the system is clearing certain caches & making sure some other things are ok). But once you get there, it usually indicates that (in red letters) right on your sign-in screen.
    So after you sign in, you simply try to open iTunes. No wait! LOL! There is no sound in Safe Mode but what we are doing by starting up iTunes - in addition to the aforementioned, is trying to rule-out any conflicts with any 3rd part software that may be interfering with iTunes.But the good news is that if iTunes starts which it probably will - albeit w/ no sound, then at least you know what the problem isn't.
    FYI, that's how a differential diagnosis is done. Just ask this guy:
    Go ahead say it... "Murph... cut to the chase will ya?!
    To be honest, if none of this helps, you're best bet is checking out the iTunes threads... especially if Chris CA is around cause he's the top gun (for iTunes) & pose the question via a new thread like, "Why won't Genius go away?" He solves problems like this - bada bing bada boom.
    Catch ya later, curly; thanks for the thank yous.

Maybe you are looking for

  • Is Airport Extreme a Worthwhile Upgrade Over 1st Generation Airport Express?

    My two year old Airport Express still works fine.  WIFI seems good.  Wireless connection to Imac computer seems pretty fast.  Is it worth getting the Airport Extreme?  Will connection speeds increase or video streaming?

  • Installed iTunes 7, iPhoto not syncing

    Same problem with iTunes 7.... Since I installed it, my iPhoto library seems to have stopped sharing the photos and I can't sync them with my iPod or even share them through my home network. I use a 3rd party program called connect360 which let's me

  • EMac Freezes while running Diskwarrior!  What Did I Do Wrong?

    I just purchased Diskwarrior upon the suggestion of several people here, and decided to try it out. I booted up from the DiskWarrior CD, and followed instructions. It said HD was ready to rebuild and I clicked on that. It went for awhile and then jus

  • What's up with "determining gapless playback" ?

    When I import songs into iTunes it says it's "determining gapless playback" and it takes a really long time! (I have a couple thousand of songs in my iTunes library and I'll have over 10,000 before I'm done with all this importing). What is it doing

  • Query quote help-Please ignore this thread

    Dear all, Please ignore this thread. Thanks for understanding Kai Edited by: KaiS on Nov 12, 2009 9:33 AM