Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Expose public methods in VideoController #64

Merged
merged 1 commit into from
Oct 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions Runtime/Components/video/VideoController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ public class VideoController : MonoBehaviour

private VideoTrack _videoTrack;

void Awake()
public void RegisterController()
{
if (Conference)
{
Conference.RegisterVideoController(this);
}
}

void Start()
public void CreateRenderer()
{
var renderer = gameObject.GetComponent<Renderer>();

Expand All @@ -54,6 +54,16 @@ void Start()
}
}

void Awake()
{
RegisterController();
}

void Start()
{
CreateRenderer();
}

private void Update()
{

Expand All @@ -76,4 +86,4 @@ internal void UpdateTrack(VideoTrack track)
}
}
}
}
}