Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
themeDJango

TouchCastPlayerAPI.Event.subscribe(TouchCastPlayerAPI.events.EMBED_PLAYER_ADDED_TO_DOM, callback);

...

Code Block
languagejs
themeDJango

{
	type:"PLAYER_EMBED_PLAYER_ADDED_TO_DOM",
   	data:{
		videoUrl:"//touchcast.com/files/44df4sdfs55erw444wefw1", // the url of the touchcast video
    	playerId:"player_01" // the unique player id that was set when the player was embedded
	}
}

...

Code Block
languagejs
themeDJango

TouchCastPlayerAPI.Event.subscribe(TouchCastPlayerAPI.events.EMBED_PLAYER_FULLY_READY, callback);

...

Code Block
languagejs
themeDJango

{
	type:"PLAYER_EMBED_PLAYER_FULLY_READY",
   	data:{
		videoUrl:"//touchcast.com/files/44df4sdfs55erw444wefw1", // the url of the touchcast video
    	playerId:"player_01" // the unique player id that was set when the player was embedded
	}
}

...

Code Block
languagejs
themeDJango

TouchCastPlayerAPI.Event.subscribe(TouchCastPlayerAPI.events.VIDEO_PLAYED, callback);

...

Code Block
languagejs
themeDJango

{
	type:"PLAYER_VIDEO_PLAYED",
   	data:{
		videoUrl:"//touchcast.com/files/44df4sdfs55erw444wefw1", // the url of the touchcast video
    	playerId:"player_01" // the unique player id that was set when the player was embedded
	}
}

...

Code Block
languagejs
themeDJango

TouchCastPlayerAPI.Event.subscribe(TouchCastPlayerAPI.events.VIDEO_PAUSED, callback);

...

Code Block
languagejs
themeDJango

{
	type:"PLAYER_VIDEO_PAUSED",
   	data:{
		videoUrl:"//touchcast.com/files/44df4sdfs55erw444wefw1", // the url of the touchcast video
    	playerId:"player_01" // the unique player id that was set when the player was embedded
	}
}

...

Code Block
languagejs
themeDJango

TouchCastPlayerAPI.Event.subscribe(TouchCastPlayerAPI.events.VIDEO_ENDED, callback);

...

Code Block
languagejs
themeDJango

{
	type:"PLAYER_VIDEO_ENDED",
   	data:{
		videoUrl:"//touchcast.com/files/44df4sdfs55erw444wefw1", // the url of the touchcast video
    	playerId:"player_01" // the unique player id that was set when the player was embedded
	}
}

...

Code Block
languagejs
themeDJango

TouchCastPlayerAPI.Event.subscribe(TouchCastPlayerAPI.events.TIME_UPDATE, callback);

...

Code Block
languagejs
themeDJango

{
	type:"PLAYER_TIME_UPDATE",
   	data:{
		videoUrl:"//touchcast.com/files/44df4sdfs55erw444wefw1", // the url of the touchcast video
    	playerId:"player_01" // the unique player id that was set when the player was embedded
   		time:"1.38746" // the current timecode of the player in seconds
	}
}