Results 1 to 3 of 3

Thread: Looking for a video embed code please read for details

  1. #1
    Join Date
    Mar 2016
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Looking for a video embed code please read for details

    Sorry but I don't know the exact name of what I am looking for so I will attempt to explain. I don't know if I will need to do this with HTML, CSS or Javascript.

    I have a Wordpress site and I embed videos for people to watch. These are third party videos not the standard youtube or vimeo. I embed multiple mirrors per video in case one breaks. The problem is that I have been loading all the iframes on the same page at the same time and this slows down the page loading and seems rather inefficient to me.

    What I would like to do is have the page load only one (the first) video mirror, and then have a list of links below the video to load the other mirrors as alternates if the first one is broken. Either open the second mirror below the first or reload the page completely with the new mirror as the main video. Either way will work. Simply showing or loading one mirror at a time. Can anyone help me do this withing the Wordpress framework? If there is a plugin already out there please let me know.

    Thanks

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Depending on how this 3rd party video service is setup, you might be able to use a target attribute on a hyperlink and the name attribute on the iframe ("opening target links in a named iframe"). Here's a small demo http://jsfiddle.net/HnXFj/2/

    You could also look for a script to "change iframe src by clicking on link" (try Googling this phrase)

    Without knowing anything about the video service though, it's hard to offer any more help.

    As for asking if there is already a Wordpress plugin out there, we're not really the people to ask - the Wordpress community will be able to give more advice.

    Please also bear in mind that while we can offer general advice on script usage and setup in a standalone web page, it's unlikely that we can tell you how to modify and install anything on your Wordpress theme - you would need to know how to do that already (such as modifying template code or working with a 3rd party script/plugin that allows you to add custom code blocks)
    Last edited by Beverleyh; 03-20-2016 at 12:04 PM. Reason: Typo
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  3. #3
    Join Date
    Mar 2016
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you for your help Beverly. I googled the phrase you mentioned and I was able to find exactly what I needed. Pretty much like your example. Any HTML works perfectly inside of Wordpress so I don't have to use any fancy plugins to do what I need. Thanks again.

Similar Threads

  1. Replies: 0
    Last Post: 07-19-2012, 10:13 AM
  2. How to embed video to a page?
    By jayakrishnan in forum PHP
    Replies: 3
    Last Post: 01-22-2009, 10:53 PM
  3. Replies: 1
    Last Post: 08-06-2008, 03:28 PM
  4. Embed video player
    By bbilal in forum JavaScript
    Replies: 2
    Last Post: 10-12-2007, 07:37 PM
  5. Please read details - email
    By techno_race in forum The lounge
    Replies: 7
    Last Post: 03-04-2007, 04:23 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •