Built-In Namespace _global_
| Method Attributes | Method Name and Description |
|---|---|
|
pauseMedia(playerName)
This is static function to pause current video in player playerName.
|
|
|
playMedia(playerName)
This is static function to play current video in player playerName.
|
|
|
setContent(playerName, videoPath)
This is static function to set new video source to the player with name playerName.
|
|
|
setMedia(playerName, videoPath)
This is static function is an alias to setContent and using only for backward compatibility.
|
|
|
setPosition(playerName, positiontime)
This is static function to set position within current video in player playerName.
|
|
|
stopMedia(playerName)
This is static function to stop playing of the current video in player playerName.
|
Method Detail
pauseMedia(playerName)
This is static function to pause current video in player playerName.
Defined in: simple-api.js.
Defined in: simple-api.js.
// pause playing of video in player sonetticFLVPlayer pauseMedia('sonetticFLVPlayer');
- Parameters:
- playerName
- name of the player
- Returns:
- void
playMedia(playerName)
This is static function to play current video in player playerName.
Defined in: simple-api.js.
Defined in: simple-api.js.
// lets play media playMedia('sonetticFLVPlayer');
- Parameters:
- playerName
- name of the player
- Returns:
- void
setContent(playerName, videoPath)
This is static function to set new video source to the player with name playerName. Usage example:
Defined in: simple-api.js.
Defined in: simple-api.js.
// http stream and path from the root of your domain setContent('sonetticFLVPlayer','[filename]?start=[seek],/video/Walle1.flv'); // http stream with full path of the video setContent('sonetticFLVPlayer','[filename]?start=[seek],http://myhost.com/flv/Walle1.flv'); // progressive download and path from the root of your domain setContent('sonetticFLVPlayer','/video/Walle1.flv');
- Parameters:
- playerName
- name of the player
- videoPath
- path to the video, RTMP or HTTP Stream
- Returns:
- void
setMedia(playerName, videoPath)
This is static function is an alias to setContent and using only for backward compatibility. Use setContent
Defined in: simple-api.js.
Defined in: simple-api.js.
- Parameters:
- playerName
- name of the player
- videoPath
- path to the video, RTMP or HTTP Stream
- Deprecated:
- This function used before ver.5 of Sonettic-Cinema HD Player.
- Returns:
- void
setPosition(playerName, positiontime)
This is static function to set position within current video in player playerName. It's pretty simple to use it, for example:
Defined in: simple-api.js.
Defined in: simple-api.js.
// set position to 60 seconds from start setPosition('sonetticFLVPlayer',60); // set position to 100 seconds from start setPosition('sonetticFLVPlayer',100);
- Parameters:
- playerName
- name of the player
- {int} positiontime
- New position of the current movie in seconds
- Returns:
- void
stopMedia(playerName)
This is static function to stop playing of the current video in player playerName.
Defined in: simple-api.js.
Defined in: simple-api.js.
// stop playing of video in player sonetticFLVPlayer stopMedia('sonetticFLVPlayer');
- Parameters:
- playerName
- name of the player
- Returns:
- void