Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. link to specific point in the vimeo video

link to specific point in the vimeo video

Scheduled Pinned Locked Moved Web Development
javascriptcomdockertools
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cp andy
    wrote on last edited by
    #1

    Hello, Following code helps in navigating to particular point in vimeo videos (by adding #t=0m0s to querystring). It is working absolutely fine on firefox but not on other browsers. Can anyone point why and point me to right direction. Thanks

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>

    <iframe src="https://player.vimeo.com/video/191602887" width="629" height="356" id="vimeo-player-1" name="vimeo"></iframe>

    iframe{
    display: none;
    width:629px;
    height:356px;
    margin:0 0 10px;
    }

    <iframe src="" id="frame"></iframe>
    

    [0.51]

    [1.38]

    <script>
    function insert(time) {
    var myFrame = $('#vimeo-player-1');
    var url = $(myFrame).attr('src') + '#t=' + time;
    holder = document.getElementById('iframe-holder'),
    frame = holder.getElementsByTagName('iframe')[0];
    frame.style.display = "block";
    frame.src = url;
    document.getElementById('container').insertBefore(holder, null);
    $("#vimeo-player-1").hide();
    if(myFrame.location!=url&&url!=location.href)
    myFrame.location.replace(url);
    }
    </script>

    Thanks

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups