diff interfaces/blank.js @ 1360:a9eb4f6443d8

Interfaces have startPlayback and stopPlayback methods to clean up code management. Looping playbacks now have a 2s cross-fade.
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Tue, 26 Jan 2016 13:52:56 +0000
parents 397e96ee781a
children df2d916fd9cf c0022a09c4f6
line wrap: on
line diff
--- a/interfaces/blank.js	Tue Jan 26 11:32:11 2016 +0000
+++ b/interfaces/blank.js	Tue Jan 26 13:52:56 2016 +0000
@@ -29,6 +29,14 @@
 	{
 		// progress is a value from 0 to 100 indicating the current download state of media files
 	};
+    this.startPlayback = function()
+    {
+        // Called when playback has begun
+    };
+    this.stopPlayback = function()
+    {
+        // Called when playback has stopped. This gets called even if playback never started!
+    };
 	this.getValue = function()
 	{
 		// Return the current value of the object. If there is no value, return 0