Active
Project:
Flowplayer API
Version:
6.x-0.2
Component:
Documentation
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Nov 2009 at 08:20 UTC
Updated:
15 Nov 2009 at 20:29 UTC
Hello,
I've tried without success to register the onFullscreen and onFullscreenExit functions via this module. I thing I am allmost there, but I've no luck after hours of experimenting. An advice would be really welcome.
In JavaScript I've these two functions:
onFullscreen:function(){this.getPlugin("content").css({body:{fontSize:50},height:200});},
onFullscreenExit:function(){this.getPlugin("content").css({body:{fontSize:16},height:65});}
I've tried lots of combinations, like this:
<?php
flowplayer_add('#player', array(
'onFullscreen' => 'this.getPlugin("content").css({body:{fontSize:50},height:200})',
'onFullscreenExit' => 'this.getPlugin("content").css({body:{fontSize:16},height:65})',
'clip' => array(
'autoPlay' => false,
'autoBuffering' => true,
...
but none of them works, it is still interpreted as a string. Since I'm not a JavaScript programmer, could you please provide me an working example.
Comments
Comment #1
robloachSomething like this?
myplayer.js
Comment #2
drapal commentedThank you very much for your suggestion, but it seems to me, that it doesn't work. The .js file is included, in the jQuery.extend I can see "onFullscreen": "onFullscreen", but the player isn't even displayed.