VarwinVideo360Wrapper
- class VarwinVideo360.VarwinVideo360Wrapper(object: Object)
Bases:
Object- class LoopBehaviourOptions
Bases:
object- Looped: Any = Ellipsis
Looped
- NotLooped: Any = Ellipsis
Not looped
- class PlayerLockOptions
Bases:
object- Lock: Any = Ellipsis
Lock player
- DontLock: Any = Ellipsis
Don’t lock player
- property Scale: float
Example:
value = instance.Scale
- property Speed: float
Playback speed [0..10]
Example:
value = instance.Speed
Warning
An AttributeError exception may occur during use if the getter has not been implemented.
- property Volume: float
Example:
value = instance.Volume
- property SetLoopBehaviour: Any
Playback
- Returns:
value from the list:
VarwinVideo360Wrapper.LoopBehaviourOptions.Looped
VarwinVideo360Wrapper.LoopBehaviourOptions.NotLooped
Example:
value = instance.SetLoopBehaviour
Warning
An AttributeError exception may occur during use if the getter has not been implemented.
- property Length: Any
Video length, s
Example:
value = instance.Length
- property CurrentTime: Any
Current playback time, s
Example:
value = instance.CurrentTime
- property PlayerLockMode: Any
- Returns:
value from the list:
VarwinVideo360Wrapper.PlayerLockOptions.Lock
VarwinVideo360Wrapper.PlayerLockOptions.DontLock
Example:
value = instance.PlayerLockMode
- IsPlaying() bool
Is playing
Example:
value = instance.IsPlaying()
- IsPaused() bool
Is paused at the moment
Example:
value = instance.IsPaused()
- IsStopped() bool
Is stopped
Example:
value = instance.IsStopped()
- IsLoading() bool
Is loading
Example:
value = instance.IsLoading()
- async LoadAndPlay() None
Play
Example:
await instance.LoadAndPlay()
- async Pause() None
Example:
await instance.Pause()
- async Stop() None
Example:
await instance.Stop()
- Seek(position: Any) None
Play from [position] s
Example:
instance.Seek(0)
- LoadVideo() None
Load video
Example:
instance.LoadVideo()
- UnloadVideo() None
Unload video
Example:
instance.UnloadVideo()
- TeleportPlayerInPanorama() None
Teleport player
Example:
instance.TeleportPlayerInPanorama()
- ShowPlayer() None
Show player
Example:
instance.ShowPlayer()
- HidePlayer() None
Hide player
Example:
instance.HidePlayer()
- AddCompletedHandler(handler: Callable[[Object], CoroutineType]) None
Playback was ended
- Parameters:
handler –
Asynchronous handler function with signature:
sender (Object): the object that triggered the event
Example:
async def OnCompleted(sender): pass instance.AddCompletedHandler(OnCompleted)
- AddCloseButtonPressedHandler(handler: Callable[[Object], CoroutineType]) None
Close button pressed
- Parameters:
handler –
Asynchronous handler function with signature:
sender (Object): the object that triggered the event
Example:
async def OnCloseButtonPressed(sender): pass instance.AddCloseButtonPressedHandler(OnCloseButtonPressed)