StreamingVarwinVideoWrapper
- class StreamingVarwinVideo.StreamingVarwinVideoWrapper(object: Object)
Bases:
Object- property Scale: float
Example:
value = instance.Scale
- property Speed: float
Playback speed (0..10)
Example:
value = instance.Speed
- property Volume: float
Example:
value = instance.Volume
- property Loop: bool
Example:
value = instance.Loop
- property PlayOnAwake: bool
Play on start
Example:
value = instance.PlayOnAwake
- property Length: Any
Video length (in seconds)
Example:
value = instance.Length
- property CurrentTime: Any
Current time (in seconds)
Example:
value = instance.CurrentTime
- IsLoading() bool
Is Loading
Example:
value = instance.IsLoading()
- IsPlaying() bool
Is Playing
Example:
value = instance.IsPlaying()
- Play() None
Example:
instance.Play()
- LoadVideo() None
Load
Example:
instance.LoadVideo()
- UnloadVideo() None
Unload
Example:
instance.UnloadVideo()
- Stop() None
Example:
instance.Stop()
- Pause() None
Example:
instance.Pause()
- ResetSpeed() None
Reset playback speed
Example:
instance.ResetSpeed()
- Seek(position: Any) None
Seek to second
Example:
instance.Seek(0)
- MuteAudio() None
Mute audio
Example:
instance.MuteAudio()
- UnmuteAudio() None
Unmute audio
Example:
instance.UnmuteAudio()
- AddPlaybackCompletedHandler(handler: Callable[[Object], CoroutineType]) None
On complete
- Parameters:
handler –
Asynchronous handler function with signature:
sender (Object): the object that triggered the event
Example:
async def OnPlaybackCompleted(sender): pass instance.AddPlaybackCompletedHandler(OnPlaybackCompleted)