Skip to content

API > MLVideoExtension


MLVideoExtension⚓︎

MLVideoExtension inherits from Component

This component extends the functionality of the native Unity Video Player and extra functionality. You can use this component to synchronize the position and state of the video across all player in a room.

Members⚓︎

Properties⚓︎

Name Description
MLVideoExtension.OnVideoStatusChangedPropertyReadonly Property This event fire when the status of the video changed by other clients in the room. Use if you check the “TryToSynchronizeVideoPosition” in component.
MLVideoExtension.OnVideoTimeChangedPropertyReadonly Property This event will fire when the time of the video changed by other clients in the room. Use if you check the TryToSynchronizeVideoPosition in component.
MLVideoExtension.StatusPropertyReadonly Property The current status of the video. (Read-only)
MLVideoExtension.URLProperty The URL of the video to play. When setting the URL, the video starts to play after load if the component set to player on awake.
MLVideoExtension.VideoTimeProperty Current time of the video. You can set the time of the video to play this way.

Methods⚓︎

Name Description
MLVideoExtension.Jump(time) Method Jump the video to specified time and start/continue playing.
MLVideoExtension.Pause() Method Pauses the video if it is Playing.
MLVideoExtension.Play() Method Plays the video if it is Idle or `Paused.
MLVideoExtension.Stop() Method Stops the video.

Inherited Members⚓︎

Inherited Properties⚓︎

Name Description
MLVideoExtension.gameObjectPropertyReadonly Property The game object this component is attached to. A component is always attached to a game object.
MLVideoExtension.tagPropertyReadonly Property The tag of this game object.
MLVideoExtension.transformPropertyReadonly Property The Transform attached to this GameObject.
MLVideoExtension.hideFlagsProperty Should the object be hidden, saved with the Scene or modifiable by the user?
MLVideoExtension.nameProperty The name of the object.

Inherited Methods⚓︎

Name Description
MLVideoExtension.BroadcastMessage(methodName, parameter=nil)Method Calls the method named methodName on every Lua Script in this game object or any of its children.
MLVideoExtension.CompareTag(tag)Method Is this game object tagged with tag ?
MLVideoExtension.GetAllLuaScripts()Method Returns an array of all Lua scripts that attached to the game object.
MLVideoExtension.GetComponent(type)Method Returns the component of Type type if the game object has one attached, nil if it doesn't.
MLVideoExtension.GetComponentInChildren(t)Method Returns the component of Type type in the GameObject or any of its children using depth first search.
MLVideoExtension.GetComponentInParent(t)Method Returns the component of Type type in the GameObject or any of its parents.
MLVideoExtension.GetComponents(type)Method Returns all components of Type type in the GameObject.
MLVideoExtension.GetComponentsInChildren(t)Method Returns all components of Type type in the GameObject or any of its children.
MLVideoExtension.GetComponentsInParent(t)Method Returns all components of Type type in the GameObject or any of its parents.
MLVideoExtension.SendMessage(methodName, value=nil)Method Calls the method named methodName on every Lua Script in this game object.
MLVideoExtension.SendMessageUpwards(methodName, value=nil)Method Calls the method named methodName on every LuaScript in this game object and on every ancestor of the behaviour.
MLVideoExtension.TryGetComponent(type)Method Gets the component of the specified type, if it exists.
MLVideoExtension.GetInstanceID()Method Returns the instance id of the object.