Implementation for showing wait-/ready-indications:
media-modules may signal that they are
preparing
a resource, and then that
they are ready
via mmir.MediaManager#_preparing
and
mmir.MediaManager#_ready
.- See:
-
- mmir.MediaManager#readyWaitImpl
- mmir.env.media.WaitReadyIndicatorImpl
Example
var myWaitReadyImpl = {
preparing: function(n){
console.log('preparing: '+m);
},
ready: function(n){
console.log('ready: '+m);
}
}
mmir.media.readyWaitImpl = myWaitReadyImpl;
Methods
-
preparing(moduleName)
-
Indicates that the media plugin
pluginName
is preparing something and that the user should wait.For example, an implementation could show a wait dialog / overlay when this function is called.
Name Type Description moduleName
String the module name from which the function was invoked -
ready(moduleName)
-
Indicates that the media plugin
pluginName
is now ready and that the user can begin interacting.For example, an implementation could hide a wait dialog / overlay when this function is called (that was previously shown with
preparing
).Name Type Description moduleName
String the module name from which the function was invoked