Class PlaybackMechanism
Class Summary
PlaybackMechanism()
holds an ordered-array of all possible playback mechanisms supported
Method Summary
Field Detail
{Object}
type
all possible playback mechanism types (currently FLASH and HTML5)
{Array[Object]}
solutions
array of playback mechanisms, ordered by priority to use as a solution. Currently FLASH is the primary playback mechanism. If the primary solution is deemed unacceptable for given platform, that first solution is removed and the next solution becomes first and primary.
Method Detail
-
{string|null} getCurrentSolution()returns current primary playback mechanism
- Returns:
- {string|null} returns null of no playback mechanisms exist
-
{boolean} isValid(mechanism)returns whether passed mechanism is a valid PlaybackMechanism
- Parameters:
- {string} mechanism the playback mechanism to validate
- Returns:
- {boolean}
-
{boolean} removeCurrentSolution()removes current primary playback solution
- Returns:
- {boolean} success returns true for successful removal, false if nothing left to remove (no more solutions exist)
-
{boolean} setSolutions()sets an array of playback solutions
- Returns:
- {boolean} success