VoD stream View¶
- component fbx.media.vod.StreamView¶
This is a VoD stream view, it handles PKI, streamer selection and has a generic Player GUI featuring:
a seek bar,
a stream (audio, subtitles) selection menu,
a scaling factor menu,
media playback error popup.
This inherits
fbx.media.VideoPlayer
. It has all its properties and methods.- method open(args)¶
- Parameters
args (
object
) – Arguments object
Arguments are:
Name
Purpose
portalName
Name of VoD portal, as provided by Free.
mediaId
Media ID to play. Set to 0 to forcely stop playback.
crypted
Whether this stream requires cryptography unwrapping.
title
Stream title to make appear in timeline.
- property title¶
Stream title to make appear in timeline
- property versionList¶
A
ListModel
of items to display in version selection menu. Each entry must contain the following fields:Name
Type
Purpose
label
string
Label to display in menu
audioPid
int
PID to use for audio stream
videoPid
int
PID to use for video stream
subtitlePid
int
PID to use for subtitle stream
For each PID selection, if -1, corresponding stream is disabled. If selected PID is not present in file, nothing is changed.
- property currentVersion¶
Currently used version index in
versionList
list. This defaults to0
and uses the first entry of the list.If this property is modified programmatically, it is mandatory to populate the
versionList
first.
- property allowActions¶
Boolean flag to allow or not actions on the video. If this flag is set to
false
, no timeline will be displayed, no menu either, and no remote control action will operate. This is useful for streaming advertisments where editors don’t want the customer to skip or fast-forward them.