VarwinVideo180Wrapper

class VarwinVideo180.VarwinVideo180Wrapper(object: Object)

Bases: Object

class PlayerLockOptions

Bases: object

Lock: Any = Ellipsis

Lock player

DontLock: Any = Ellipsis

Don’t lock player

class LoopBehaviourOptions

Bases: object

Looped: Any = Ellipsis

Looped

NotLooped: Any = Ellipsis

Not looped

property PlayerLockMode: Any
Returns:

value from the list:

  • VarwinVideo180Wrapper.PlayerLockOptions.Lock

  • VarwinVideo180Wrapper.PlayerLockOptions.DontLock

Example:

value = instance.PlayerLockMode
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:

  • VarwinVideo180Wrapper.LoopBehaviourOptions.Looped

  • VarwinVideo180Wrapper.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
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()
TeleportPlayerInPanorama() None

Teleport player

Example:

instance.TeleportPlayerInPanorama()
ShowPlayer() None

Show player

Example:

instance.ShowPlayer()
HidePlayer() None

Hide player

Example:

instance.HidePlayer()
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()
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)
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)