SF.SERVICE.AUDIOPLAYER.SKIP
** This class will not be supported in 2015.
All functionalities of sf.service.AudioPlayer.Skip class are more improved, integrating with CAPH. Therefore sf.service.AudioPlayer.Skip class is not supported since 2015 Smart TV. To use functions of sf.service.AudioPlayer.Skip class, refer to here.
This class describes functions for audio control with service API and is used to play audio or stop video after skip the specific area of video.
Add the following line for sf.service.AudioPlayer.Skip class into a html file your own : <script type="text/javascript" src="$MANAGER_WIDGET/Common/af/2.0.0/loader.js"></script> |
You can declare sf.service.AudioPlayer.Skip class like this : ex) var audioPlayer = sf.service.AudioPlayer.Skip; |
Methods
cancel | ||
Description | ||
This function cancels Skipping | ||
Parameters | none | |
Return | ■Boolean - true : Success - false : Fail | |
Emulator Support | N | |
SDK Constraint | None | |
Example | ||
sf.service.AudioPlayer.Skip.cancel(); |
isInProgress | ||
Description | ||
This function check the item is skipping now or not. | ||
Parameters | none | |
Return | ■Boolean - true : Skip operation is in progress - false : Skip operation is not in progress | |
Emulator Support | N | |
SDK Constraint | None | |
Example | ||
var flag = sf.service.AudioPlayer.Skip.isInProgress(); |
start | ||
Description | ||
This function starts skipping. AudioPlayer pauses playback and moves skip pointer as per given offset. | ||
Parameters | ■Skip pointer - Number - skip value | |
Return | ■Boolean - true : Success - false : Fail | |
Emulator Support | N | |
SDK Constraint | None | |
Example | ||
sf.service.AudioPlayer.Skip.start(5); |
stop | ||
Description | ||
This function stops skipping and resume playback from last position of skip pointer. | ||
Parameters | none | |
Return | ■Boolean - true : Success - false : Fail | |
Emulator Support | N | |
SDK Constraint | None | |
Example | ||
sf.service.AudioPlayer.Skip.stop(); |