Interface: PlayerSdkEventHandlers
PlayerSdk event handlers
Properties
- CurrentTimeChange
- DurationChange
- ErrorChange
- MutedChange
- SourceChange
- StatusChange
- UtcStartTimeChange
- VideoTypeChange
- VolumeChange
CurrentTimeChange
• CurrentTimeChange: (arg
: { currentTime
: null
| Seconds
}) => unknown
Type declaration
▸ (arg
): unknown
Changing position on the timeline (in seconds).
Parameters
Name | Type |
---|---|
arg |
Object |
arg.currentTime |
null | Seconds |
Returns
unknown
DurationChange
• DurationChange: (arg
: { duration
: null
| Seconds
}) => unknown
Type declaration
▸ (arg
): unknown
Changing video duration (in seconds).
Parameters
Name | Type |
---|---|
arg |
Object |
arg.duration |
null | Seconds |
Returns
unknown
ErrorChange
• ErrorChange: (arg
: { error
: null
| PublicIFrameApiErrorInterface
}) => unknown
Type declaration
▸ (arg
): unknown
Called when the current error changes.
Parameters
Name | Type |
---|---|
arg |
Object |
arg.error |
null | PublicIFrameApiErrorInterface |
Returns
unknown
MutedChange
• MutedChange: (arg
: { muted
: boolean
}) => unknown
Type declaration
▸ (arg
): unknown
Changing the muted
status of a video.
Parameters
Name | Type |
---|---|
arg |
Object |
arg.muted |
boolean |
Returns
unknown
SourceChange
• SourceChange: (arg
: { source
: null
| string
}) => unknown
Type declaration
▸ (arg
): unknown
Parameters
Name | Type |
---|---|
arg |
Object |
arg.source |
null | string |
Returns
unknown
StatusChange
• StatusChange: (arg
: { status
: PlayerSdkStatus
}) => unknown
Type declaration
▸ (arg
): unknown
Parameters
Name | Type |
---|---|
arg |
Object |
arg.status |
PlayerSdkStatus |
Returns
unknown
UtcStartTimeChange
• UtcStartTimeChange: (arg
: { utcStartTime
: null
| number
}) => unknown
Type declaration
▸ (arg
): unknown
Changing UTC video start time (in seconds).
Parameters
Name | Type |
---|---|
arg |
Object |
arg.utcStartTime |
null | number |
Returns
unknown
VideoTypeChange
• VideoTypeChange: (arg
: { videoType
: null
| VideoType
}) => unknown
Type declaration
▸ (arg
): unknown
Parameters
Name | Type |
---|---|
arg |
Object |
arg.videoType |
null | VideoType |
Returns
unknown
VolumeChange
• VolumeChange: (arg
: { volume
: number
}) => unknown
Type declaration
▸ (arg
): unknown
Changing the sound volume level in a video.
Parameters
Name | Type |
---|---|
arg |
Object |
arg.volume |
number |
Returns
unknown