Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Web Design (WordPress, Joomla, etc.) Transition from Video to Image

  • Transition from Video to Image

    Posted by Stan Ilchev on June 11, 2012 at 4:26 am

    Hi Guys,

    Hope someone can help me out.

    What I’m trying to do is have a video play on my website (.mp4 file) and then after the video is finished playing it transitions into an image that stays on the screen forever or until page is refreshed. I assume it must be some kind of playlist-but I’m not sure exactly how to configure that.

    Any help and suggestions are greatly appreciated.

    Thanks

    Stan

    Curtis Thompson replied 14 years, 1 month ago 2 Members · 1 Reply
  • 1 Reply
  • Curtis Thompson

    June 11, 2012 at 4:55 pm

    hello…

    what embedded player are you using? or do you just have it as an embed tag? in html5 (so not supported by older browsers), there is the onended media event that you can use like this:

    var player = document.getElementById(‘vidLayer’);
    player.onended = function() {
    /** change the player div content or turn on a layer above it */
    }

    that in theory would work, but again only for html5 compatible browsers…otherwise, you’d have to work within a bit of player code that supported that sort of thing…

    hope that helps!

    sitruc

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy