Variables | |
| event | captureCompleted |
| Capture to FLV Complete. | |
| event | clicked |
| Mouse clicked. | |
| event | doubleClicked |
| Mouse double clicked. | |
| event | rightClicked |
| Mouse right clicked. | |
| event | fileEncoded |
| Encode completed. | |
| event | filePaused |
| Paused Playback. | |
| event | filePlayed |
| Playback complete. | |
| event | filesDropped |
| User Drag and Drop. | |
| event | fmsConnectionDown |
| FMS Disconnected. | |
| event | fmsConnectionUp |
| FMS Connected. | |
| event | uploadStart |
| Upload starting. | |
| event | uploadComplete |
| Upload complete. | |
| event | uploadFailed |
| Upload failed. | |
The following example HTML should be used as a starting point for writing javascript code intended to receive events from the publisher.
For the purposes of this example, assume flixe was used for the name and id parameters specified within the object tag used to install the Flix Publisher plug-in within the page.
<SCRIPT FOR="flixe" EVENT="captureCompleted">captureCompleted();</SCRIPT> <SCRIPT FOR="flixe" EVENT="uploadStart">uploadStart();</SCRIPT> <SCRIPT FOR="flixe" EVENT="uploadComplete">uploadComplete();</SCRIPT> <SCRIPT FOR="flixe" EVENT="uploadFailed">uploadFailed();</SCRIPT> <SCRIPT FOR="flixe" EVENT="filePlayed">filePlayed();</SCRIPT> <SCRIPT FOR="flixe" EVENT="filePaused">filePaused();</SCRIPT> <SCRIPT FOR="flixe" EVENT="fileEncoded">fileEncoded();</SCRIPT> <SCRIPT FOR="flixe" EVENT="filesDropped">filesDropped();</SCRIPT> <SCRIPT FOR="flixe" EVENT="clicked">clicked();</SCRIPT> <SCRIPT FOR="flixe" EVENT="rightClicked">rightClicked();</SCRIPT> <SCRIPT FOR="flixe" EVENT="fmsConnectionDown">fmsConnectionDown();</SCRIPT> <SCRIPT FOR="flixe" EVENT="fmsConnectionUp">fmsConnectionUp();</SCRIPT>
For each event above, follow this example using the captureCompleted event:
function captureCompleted() { // add your event handler code here }
Javascript functions must be created for each event that you wish to receive. Each function must be named exactly as the event is named. For example, for the filesDropped event:
function filesDropped() { // add your event handler code here }
| event captureCompleted |
The captureCompleted event is fired when capture stops.
| event clicked |
| event doubleClicked |
The clicked event is fired when a user double-clicks the publisher.
| event rightClicked |
The rightClicked event is fired when a user right-clicks the publisher.
| event fileEncoded |
The fileEncoded event is fired when an encode completes.
| event filePaused |
The filePaused event is fired when playback is paused internally by the publisher because PlayPosition is greater than EncodeTimeEnd.
| event filePlayed |
The filePlayed event is fired when playback stops.
| event filesDropped |
The filesDropped event is fired when a user drags and drops a file on the publisher plug-in.
| event fmsConnectionDown |
The fmsConnectionDown event is fired immediately after the connection to FMS goes down.
| event fmsConnectionUp |
The fmsConnectionUp event is fired immediately after the connection to FMS connection is established
| event uploadStart |
The uploadStart event is fired immediately before the upload starts.
| Mac | Initial Release |
| Windows | Version 3.0.6.4 |
| event uploadComplete |
| event uploadFailed |