Page History: StateMachine 1.0 : Home
Compare Page Revisions
Page Revision: 2010/02/05 15:30
Company Webcast's StateMachine is a Javascript library that provides access to meta data, binaries and streams directly from web browsers. It exposes an event based model to communicate "state" at any point in time during a webcast, whether that webcast is live or on-demand.
That sounds more complicated than it really is... let's look at some sample code.
< script src="http://services.companywebcast.com/StateMachine/0.9/js/Cwc.StateMachine.js" type="text/javascript">
< script type="text/javascript">
window.onload = function() {
Cwc.PlayerService.WebcastGet("apeldoorn/20090702_4/nl", null,
function(e) {
if (e.Success) {
var myWebcast = e.Data;
alert(myWebcast.Title);
}
});
}