diff --git a/_posts/2015-09-01-player.html b/_posts/2015-09-01-player.html index 2f2467f..be708e5 100644 --- a/_posts/2015-09-01-player.html +++ b/_posts/2015-09-01-player.html @@ -160,7 +160,16 @@

cc (closed caption)

Example
viewer.callMethod('cc', 1); //enable the closed caption with index 1
 viewer.callMethod('cc', -1); //disables the closed caption
- + +

multi audio

+

Sets the audio language of the stream. Requires one argument:

+ + +
Example
+
viewer.callMethod('audio', 1); //select audio track with index 1
+

getProperty

Read a property of the embed player. This method is asynchronous, the data will be passed to a callback function, given as argument.

Accessible properties by getProperty:

@@ -308,7 +317,26 @@
Example
[ {"index":0, "label":"English", "language":"en", "active":false} ] - + +

multi audio

+

Fired when there are multiple audio tracks.

+

Returns an array containing audio tracks as objects.

+ + +
Example
+
viewer.addListener('audio', callBack);
+
// example audio object
+[
+    { "index": 0, "label": "English (US)", "language": "en", "country": "US", "active": true },
+    { "index": 1, "label": "French", "language": "fr", "country": "00", "active": false }
+]
+

content

Called when a the player content changes for some reason. Same data as received in getProperty('content')

Received arguments: data (object)