MLVideoExtension
7/14/25Less than 1 minute
namespace ML.SDK
Class
MLVideoExtension
namespace ML.SDK
{
class MLVideoExtension
}Inherits from MonoBehaviour
Summary
MLVideoExtension
Events
| Event | Description |
|---|---|
| OnVideoStatusChanged | This event fire when the status of the video changed by other clients in the room. Use if you have checked the “TryToSynchronizeVideoPosition” in component. |
| OnVideoTimeChanged | 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. |
Properties
| Property | Desciption |
|---|---|
| Status | The current status of the video. |
| Url | 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. |
| VideoTime | Current time of the video. You can set the time of the video to play by setting this property. |
Methods
| Method | Description |
|---|---|
| Play() | Start playing video |
| Stop() | Stop playing video |
| Pause() | Pause player video |
| SetURL(string) | Set online videos URL. |
| JumpToTime(double) | Jump current video time. |
| Jump(float) | Jump the video to specified time and start/continue playing. |

