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 8564659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:14:55+00:00 2026-06-11T17:14:55+00:00

I have a video embed using the following code: <video controls=’false’ preload=’true’ onplay=’doPlayEvent()’ onpause=’doPauseEvent()’

  • 0

I have a video embed using the following code:

<video controls='false' preload='true' 
        onplay='doPlayEvent()' 
        onpause='doPauseEvent()'
        onended='doEndEvent()';
        src='/the_video.mp4' 
        id='VideoID'>
    <source type='video/mp4' src='/the_video.mp4'></source>
    <source type='video/ogg' src='/the_video.ogg'></source>
    <source type='video/webm' src='/the_video.webm'></source>
</video>

Some strange behavior is that FireFox is playing the flash fallback AND more importantly the onplay, pause and ended events are not firing in FF or IE8 (I assume anything using flash).

Does anyone know what I’m missing to enable the events in flash?

  • 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-06-11T17:14:56+00:00Added an answer on June 11, 2026 at 5:14 pm

    For the onplay, onpause etc, to work in the flash fallback you need to add the event listeners into the JavaScript where you create the MediaElement e.g.

    mediaElement = new MediaElementPlayer('video',{
        //options etc
    
        // method that fires when the Flash or Silverlight object is ready
        success: function (mediaElement, domObject) {   
    
           // add event listeners
           mediaElement.addEventListener('timeupdate', function(e) {
               onVideoTimeUpdate(e);
           }, false);
    
           mediaElement.addEventListener('pause', function(e) {
               onVideoPaused(e);
           }, false);
    
           mediaElement.addEventListener('play', function(e) {
               onVideoPlayed(e);
           }, false);
    
           //etc
       }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a PHP function to take a video embed code that has
I have a script that gets embed code for me.I am using php simple
I have taken the following iframe code for the youtube video from the youtube
I want to play you tube video using uiwebview and I have used following
I have the latest FF and I am trying to embed a video using
I have a media field through which I both embed video files from Youtube
I have a phonegap application targeting iPad that needs to embed a video on
We have a video (13 minutes long) which we would like to control using
In my forum I have a BB code to display youtube videos. following options
I've embedded a YouTube video onto a site (built in drupal) using the embed

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.