Pergunta

I am using default core player to play self-hosted videos. By putting the [video] shortcode, I am generating the video rendering code in the front end.

For event binding I am using the Mediaelement's events as described here:

$('video').bind('loadeddata', function(e) { 
    alert('loaded');
});
$('video').bind('playing', function(e) { 
    alert('playing');
});
$('video').bind('pause', function(e) { 
    alert('pause');
});
$('video').bind('ended', function(e) { 
    alert('ended');
});

This is working perfectly in Internet Explorer and Firefox. But in case of , it's not working.

Please provide any solution.

Foi útil?

Solução

It is the weird behavior of Safari Browser as explained by Johndyer in issue number #536 quoting below:

This is a really frustrating part of in that it only happens when isn't installed. In that case, Safari still acts like it understands HTML5, but it fails in strange ways that I haven't been able to detect. So just install QuickTime adn you'll be all set.

Its is working fine with Quicktime installation.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top