SesameVault
Sign In or register
Forums for SesameVault.com
    • Discussions
    • Categories
      • Help / Tutorials
      • Talk to the Team
      • Developing with SesameVault
      • General Discussion
    • Search

Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.

Developing with SesameVault

player js onend function

1 to 3 of 3

  1.  
    • CommentAuthorluca.narbone
    • CommentTimeOct 29th 2009
     
    Hi all, I have to call a function after the video playback ends and I'm trying to use the callback function onend as written on the documentation.

    But it's not working!

    I'm getting a reference to the player object through the onload callback function and it works when I invoke mute() function but not when onend function should be called.

    Here is the javascript code:

    SVPlayer.onload('f4b22674-bfd7-11de-9a8b-00163e681479',function(player){
    player.mute();
    player.onend = function() {alert('video finito!');};
    });

    Thanks for your help!!
    • CommentAuthorMichael Rabinovich
    • CommentTimeOct 29th 2009
     
    Hello,
    Its working for me with my test. I want to rule out that its not the specific video or something else unexpected. Can you try it with passing the 0 as the index as the second parameter? I know the docs say its optional, but just give it a try anyway.

    Also, can you paste the full code of your page here? This would help me greatly. I mean the code for the whole page, with the player embed in there as well.

    Looking forward to helping you solve this.
    • CommentAuthorluca.narbone
    • CommentTimeOct 29th 2009
     
    Thank you for your answer!

    I finally decided to switch to a custom player I've already used in another project, so I changed my code completely and solved the problem.

    Thanks again!

1 to 3 of 3

  1.  
Add your comments
    To post as a guest enter the code belor. Or sign in or register.


  • Format comments as
 

Back to Discussions