jquery - Listen for my Flash event in Javascript -
i'm trying build basic video player playlist using ovp player. far have figured out how feed in new video source using externalinterface, can not figure out how listen flash event "event_end_of_item".
how listen flash events in javascript (and jquery)?
ovp has lot of events defined, don't know how listen them. example, here event_end_of_item:
public function endofitem():void { sendevent(event_end_of_item); }
the ovp documentation non-existent , support forum bad.
in model.as file find add line in other imports (at start of file):
import flash.external.*;
then in end event, add line:
externalinterface.call("stopedplaying");
so event this:
public function endofitem():void { sendevent(event_end_of_item); // inform javascript flv has stopped playing externalinterface.call("stoppedplaying"); }
then in html document, add between script tags:
function stoppedplaying() { // when flv starts playing };
Comments
Post a Comment