PhistucK, you are right.  Ok, so this is a POPUP extension type.  Here
the complete HTML code in the popup.html file, which is the only html
file for this extension:

<object id="nimbb" classid="clsid:D27CDB6E-
AE6D-11cf-96B8-444553540000" width="320" height="240" codebase=
"http://fpdownload.macromedia.com/get/flashplayer/current/
swflash.cab">
<param name="movie" value="http://player.nimbb.com/nimbb.swf?
mode=record&disableshare=1" />
<param name="allowScriptAccess" value="always" />
<embed name="nimbb" src="http://player.nimbb.com/nimbb.swf?
mode=record&disableshare=1" width="320" height="240"
allowScriptAccess="always" pluginspage="http://www.adobe.com/go/
getflashplayer" />
</object>

Now, the actual code for listening to the events have been removed
from the live extension, but here's a copy of the script that we add
to the HTML file:

<script language="JavaScript" type="text/javascript">
<!--

// Global variable to hold player's reference.
var _Nimbb;

// Global variable to hold the guid of the recorded video.
var _Guid = "";

// Event: Nimbb Player has been initialized and is ready.
function Nimbb_initCompleted(idPlayer)
{
  console.log("init completed");

  // Get a reference to the player since it was successfully created.
  _Nimbb = document[idPlayer];
}

// Event: the video was saved.
function Nimbb_videoSaved(idPlayer)
{
  _Guid = _Nimbb.getGuid();

  console.log(_Guid);

}

// -->
</script>

So, generated events call the functions starting by "Nimbb_" that are
automatically called by the player (flash app).

--

You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=.


Reply via email to