Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6370965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:59:56+00:00 2026-05-25T00:59:56+00:00

I want to display different context-sensitive content during a video playing on a website.

  • 0

I want to display different context-sensitive content during a video playing on a website. I am using HTML5 video and need a JavaScript API to handle eventing. I will need to control the video player as well as react to different time intervals in the video.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T00:59:57+00:00Added an answer on May 25, 2026 at 12:59 am

    Popcorn.js is an open source JavaScript library for programming rich interactive experiences with HTML5 Video and Audio elements and provides a very simply API to “display different context-sensitive content during a video playing on a website”.

    Take a look at the demo gallery here: http://popcornjs.org/demos

    Here is a tutorial, build with Popcorn.js, that shows how to create a simple Popcorn.js program: http://popcornjs.org/popcorn-101

    The docs can be found here: http://popcornjs.org/api (this is still in progress)

    The following example uses the Popcorn Footnote plugin to display a simple message under the video at specific time in during the playback:

    <!DOCTYPE html> 
    <html> 
    <head> 
      <title>Popcorn Simple Example</title> 
      <script src="http://code.jquery.com/jquery.min.js"></script> 
      <script src="http://popcornjs.org/code/dist/popcorn-complete.min.js"></script> 
    
      <script> 
      $(document).bind( "ready", function(){
          // Create a popcporn instance by calling Popcorn("#id-of-my-video")
        var pop = Popcorn("#video");
    
    
        // add a footnote at 2 seconds
        pop.footnote({
              start: 2,
              end: 6,
              text: "This footnote is the stepping stone of progress!",
              target: "footnote-container"
            });
    
        // play the video right away
        pop.play();
    
      });
      </script> 
    </head> 
    <body> 
      <video height="180" width="300" id="video" controls> 
      <source src="http://videos.mozilla.org/serv/webmademovies/popcornplug.mp4"></source> 
      <source src="http://videos.mozilla.org/serv/webmademovies/popcornplug.ogv"></source> 
      <source src="http://videos.mozilla.org/serv/webmademovies/popcornplug.webm"></source> 
      </video> 
    
    
    <div id="footnote-container"></div> 
    </body> 
    </html> 
    

    Working example here: http://jsfiddle.net/rwaldron/6PEU8/

    A recent demo shows how you could use an audio element as a slideshow controller, here: http://jsfiddle.net/rwaldron/DjmLM/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to display different UITableViewCell s depending on what content is available .
I want to display different images using gridview in android? Xml file: <?xml version=1.0
I want to display different types of objects in the same ajax called controller
I have some user-submitted variables that I want to display in a different part
I want to popuate a listbox with objects of different types. I display the
I want to display the TIME field from my mysql table on my website,
i want to display some information in a listview using the GridView. i have
I want to display the contents of a web page in a different format
I have created a Page Tab Facebook App where I want to display different
I want to create an Expanders that will display different configurations.. like color settings

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.