SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Addict
    Join Date
    Apr 2003
    Location
    canada
    Posts
    213
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Having a link appear after a video has played

    Quick question. I've seen a technique where say part way through a video a button will appear underneath the video can anyone point me in the right direction to find a script that will do this.

    Thanks
    Your Websites Your Way!!
    www.clhdesigns.com

  2. #2
    SitePoint Enthusiast Anthony.Barnes's Avatar
    Join Date
    Aug 2011
    Location
    Canberra, Australia
    Posts
    80
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you can live with the limited browser support you can use the HTML 5 video element javascript to respond to the timed playback. Video is the <video> element:

    Code:
    // .. wrap this in a setInterval() to keep polling
    if (video.currentTime) {
    
    }
    Or, if browser support is going to be an issue you would need to deploy a flash player and have that communicate directly with the javascript on your page. You would probably need to custom build a player, or alter an existing open source one for this (or get lucky and find something pre-built that already does it) and use actionscript object to trigger javascript commands to the container.

    I don't have any links for you though I'm afraid, I don't know of anything off the top of my head that would let you deploy and customise this.

  3. #3
    Under Construction silver trophybronze trophy AussieJohn's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    776
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    I use JW Player a lot for sites that require a video player that is customisable.

    If you take a look at its JavaScript API (Events section) you'll see they have an event called "onTime()" which does pretty much exactly what you want from the sounds of it. There is also an "onComplete()" that will fire when the video finishes playing.

    JW Player is open source, but requires a license for commercial implementations.
    var details = {
    . . web: "afterlight.com.au",
    . . photos: "jvdl.id.au",
    . . psa: "usethelatestversion.com"
    }

  4. #4
    SitePoint Member
    Join Date
    May 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Video encoding platform services will allow the content owner to add in a link or CTA after the video has been streamed in its entirety...


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
  •