comparison interfaces/blank.js @ 489:159b87e5de67 Dev_main

Interfaces have startPlayback and stopPlayback methods to clean up code management. Looping playbacks now have a 2s cross-fade.
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Tue, 26 Jan 2016 13:52:56 +0000
parents 3a9b869ba7f8
children df2d916fd9cf c0022a09c4f6
comparison
equal deleted inserted replaced
488:423aee84fd8a 489:159b87e5de67
27 }; 27 };
28 this.updateLoading = function(progress) 28 this.updateLoading = function(progress)
29 { 29 {
30 // progress is a value from 0 to 100 indicating the current download state of media files 30 // progress is a value from 0 to 100 indicating the current download state of media files
31 }; 31 };
32 this.startPlayback = function()
33 {
34 // Called when playback has begun
35 };
36 this.stopPlayback = function()
37 {
38 // Called when playback has stopped. This gets called even if playback never started!
39 };
32 this.getValue = function() 40 this.getValue = function()
33 { 41 {
34 // Return the current value of the object. If there is no value, return 0 42 // Return the current value of the object. If there is no value, return 0
35 }; 43 };
36 this.getPresentedId = function() 44 this.getPresentedId = function()