getCurrentPosition
Integer
getCurrentPosition
(
)
Return current streaming position
- Returns:
Integer - position in milliseconds
getDuration
Integer
getDuration
(
)
Return current file duration
- Returns:
Integer - duration in milliseconds
getStatus
String
getStatus
(
)
Returns current status, if any
- Returns:
String - Status name, false if no status available
init
Boolean
init
(
config
)
Initialize the video player
- Parameters:
-
config <Object>configurationObject
- Returns:
Boolean
isFullScreenModeEnabled
Boolean
isFullScreenModeEnabled
(
)
Returns true if TVBLOB's browser has full screen mode enabled
(security bar non visible), false otherwise
- Returns:
Boolean
restartCurrentVideo
void
restartCurrentVideo
(
)
Restart current video playback from the beginning
- Returns:
void
setContent
void
setContent
(
uri
)
Set content uri for current player; if config.autoplay
is set to true, starts the playback
- Parameters:
-
uri <String>Uri of the content
- Returns:
void
setFileProgressListner
void
setFileProgressListner
(
callback
,
timestep
)
Set a listener for playing position. The listener will call the {callback} function every {timestep}
passing an object with position and duration of the file in play
- Parameters:
-
callback <Function> -
timestep <Integer>
- Returns:
void
setGeometry
void
setGeometry
(
x
,
y
,
w
,
x
)
Change the whole geometry for the player
- Parameters:
-
x <Integer>Left coord -
y <Integer>Top coord -
w <Integer>Width -
x <Integer>Height
- Returns:
void
setPosition
void
setPosition
(
x
,
y
)
Reposition current player instance on the canvas
- Parameters:
-
x <Integer>Left coord -
y <Integer>Top coord
- Returns:
void
setSize
void
setSize
(
w
,
h
)
Change the size of the player
- Parameters:
-
w <Integer>Width -
h <Integer>Height
- Returns:
void
stop
Boolean
stop
(
)
Stops current playback, and put the marker to the first frame
- Returns:
Boolean
switchFullScreen
Boolean
switchFullScreen
(
)
Switches from full screen mode to quarter of screen, and viceversa
- Returns:
Boolean