SF.SERVICE.VIDEOPLAYER.SKIP
** This class will not be supported in 2015.
All functionalities of sf.service.VideoPlayer.Skip class are more improved, integrating with CAPH. Therefore sf.service.VideoPlayer.Skip class is not supported since 2015 Smart TV. To use functions of sf.service.VideoPlayer.Skip class, refer to here.
This class describes functions for video control with service API and is used for starting playing or stop video after jump the specific play time.
Add the following line for sf.service.VideoPlayer.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.VideoPlayer.Skip class like this : ex) var videoPlayer = sf.service.VideoPlayer.Skip; |
Methods
cancel | ||
Description | ||
This function cancels skipping and resume playback from skipping starts. | ||
Parameters | none | |
Return | ■Void | |
Emulator Support | N | |
SDK Constraint | None | |
Example | ||
sf.service.VideoPlayer.Skip.cancel(); |
isInProgress | ||
Description | ||
This function returns whether Skip is in progress or not. | ||
Parameters | none | |
Return | ■Boolean - whether Skip is in progress or not * true - Skip is in progress * false - Skip is not in progress. | |
Emulator Support | N | |
SDK Constraint | None | |
Example | ||
sf.service.VideoPlayer.Skip.isInProgress(); |
start | ||
Description | ||
This function starts skipping. VideoPlayer pauses playback and moves skip pointer as per given offset. | ||
Parameters | ■offset - Number - seconds. If you want to skip backward, set offset to negative number. | |
Return | ■Void | |
Emulator Support | N | |
SDK Constraint | None | |
Example | ||
sf.service.VideoPlayer.Skip.start(10); |
stop | ||
Description | ||
This function stops skipping and resume playback from last position of skip pointer. | ||
Parameters | none | |
Return | ■Void | |
Emulator Support | N | |
SDK Constraint | None | |
Example | ||
sf.service.VideoPlayer.Skip.stop(); |