This topic is locked
[SOLVED]

 FLOWPLAYER API?

2/14/2011 4:45:18 PM
PHPRunner General questions
G
gluckett author

Hi, I really love the FLOWPLAYER for uploading FLV files in PHPRUNNER 5.3. It is great.
I was wondering how to get at the API?
for example, I want to get the current TIME of the player when it stops and starts for example:

onStart: function() {

alert(this.getTime());

}


How do I put in the event API?
thanks

gordon

Sergey Kornilov admin 2/16/2011

Gordon,
to be honest - I don't have any experience customizing Flowplayer.
I guess you either need to modify generated PHP code (the part where we create flowplayer conrol) or use 'View as' type 'Custom' and create flowplayer object manually adding necessary event handlers. Second method seems more straightforward.

G
gluckett author 2/17/2011



Gordon,
to be honest - I don't have any experience customizing Flowplayer.
I guess you either need to modify generated PHP code (the part where we create flowplayer conrol) or use 'View as' type 'Custom' and create flowplayer object manually adding necessary event handlers. Second method seems more straightforward.


Thanks - I know I have to duplicate the flv definition to get at the API.
For example the

<a href=download....>



then you have to add the javascript...



<script language="JavaScript">flowplayer("player", "http://releases.flowplayer.org/swf/flowplayer-3.2.5.swf";, {

// this will enable pseudostreaming support

plugins: {

pseudo: { url: 'flowplayer.pseudostreaming-3.2.5.swf' }

},

// don't start automcatically

clip: {

// make this clip use pseudostreaming plugin with "provider" property

provider: 'pseudo',

autoPlay: false,

autoBuffering: false,

onStart: function() {

top.pause=0;

alert('paused');

}

url: /Videos/{$theNAMEOFTHEVIDEOCOLUMN}

}});</script>


but for the life of me I can't seem to get the events to work..I think there might be a verision or syncing problem.