[jme] call method from external button

[jme] call method from external button

Hi,

I need to apuse the video player from an external button ".btn2"
but nothing seems to work.
$(document).ready(function() {
$('video').jmeEmbed();
            //set video external control           
            $('.btn2').bind('click', function(){
            $('video, audio').not(e.target).pause();// this wont work
                $('video').pause();// neither does this
                //$('video').jmeReady(function(){
                    //this reffers to the video-element
                    //$('video').pause();// or even this
                //});
            });
});

I cant seem to get the example on your site to work either (using firefox 3.6)
http://www.protofunc.com/jme/documentation/documentation-api.html

Am I missing something? Thanks for any help.






















    • Topic Participants

    • david