-
1. Re: How do I command a embedded vimeo video to stop playing when the user hides the iframe it is inside
Nancy O. Jan 24, 2011 10:10 AM (in response to luadke)Iframes are for rare occasions only. You shouldn't build your entire site around them. Instead of iframes, you should look at DW Templates (.dwt files). By using DWTemplates, you can build HTML pages that share a common design/layout.
Another huge advantage to Dreamweaver Templates is that when you want to modify the common elements of your pages, all you need to do is make changes to the template file and save it. Child pages created off that template are automatically updated by Dreamweaver.
http://www.smartwebby.com/web_site_design/dreamweaver_template.asp#1
Another option and probably the most convenient is the use of Server-Side Includes. The advantage of SSIs over DWTemplates is that changes occur on the web server, so you don't need to re-publish your entire site each time you modify a common SSI file. This is a huge timesaver.
http://www.smartwebby.com/web_site_design/server_side_includes.asp
More on SSIs:
http://forums.adobe.com/message/2112460#2112460
Finally, related to your Vimeo question, use a Player that launches in a Modal Window or Lightbox. This way, your site visitors can only play one video at a time.
Good luck,
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
2. Re: How do I command a embedded vimeo video to stop playing when the user hides the iframe it is inside
luadke Jan 24, 2011 11:16 AM (in response to Nancy O.)Thanks Nancy,
I am using a .dwt to control the pages in the iframe already, how were you suggesting using a template in order to stop videos clashing? (or were you refering to my other post?)
I'll have a look at SSI, but I'm pretty sure I don't have the knowledge yet to run the same jquery effects and have SSI. Is it simple to do?
In terms of light box etc... I would really like the content to slide in from screen right and then just be ready to place. I know I can use something like shadowbox but I find it makes a more clunky experience. Any other solutions to this problem?
Many thanks
-
3. Re: How do I command a embedded vimeo video to stop playing when the user hides the iframe it is inside
the_shocker Jan 24, 2011 11:33 AM (in response to luadke)I showed you this before but in case you forgot:
http://flowplayer.org/demos/installation/multiple-players.htm
oh right... you're asking for a workaround but want to continue using vimeo. Have you asked your vimeo-specific question in the vimeo api discussion forum?
A quick visit to their forum I saw the following discussion on their first page. It looks like it might help you out.
http://vimeo.com/forums/topic:33499
Good luck.
-
4. Re: How do I command a embedded vimeo video to stop playing when the user hides the iframe it is inside
luadke Jan 24, 2011 11:36 AM (in response to the_shocker)Thanks so much, I think the answer is to use froogaloop - https://github.com/vimeo/froogaloop
I'll try it!
-
5. Re: How do I command a embedded vimeo video to stop playing when the user hides the iframe it is inside
luadke Jan 25, 2011 2:53 AM (in response to the_shocker)I'm back - sorry.
So I had a look at froogaloop and have link my page to the .js. I know I am supossed to use api_pause():void . But I have no idea where and how. I also understand that I need to identify each of the players for this to work.
Can anyone point me further with how to sort this?
I'm guessing that I need to associate api_pause():void with the user clicking on the menu (or anywhere on the page - I don't care about that)
Thanks,
L
-
6. Re: How do I command a embedded vimeo video to stop playing when the user hides the iframe it is inside
luadke Jan 25, 2011 3:02 AM (in response to luadke)Is there a different way I can deal with this problem. For example can I make it so that instead of simply 'hiding' the content/div/iframe I make the jquery close the it?
-
7. Re: How do I command a embedded vimeo video to stop playing when the user hides the iframe it is inside
luadke Jan 25, 2011 3:42 AM (in response to luadke)the video will stop playing in the background when I use .remove() or .empty() instead of .hide()
But obviously once it has been 'emptied' or 'removed' it can no longer be loaded again.
To show it again is there a way I can re-load the content back into the page?
Thanks




