22 lines
413 B
C#
22 lines
413 B
C#
![]() |
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using RenderHeads.Media.AVProVideo;
|
||
|
using UnityEngine;
|
||
|
|
||
|
public class MediaPlayerTool : MonoBehaviour
|
||
|
{
|
||
|
public MediaPlayer m_MediaPlayer;
|
||
|
public string deviceId;
|
||
|
public string channelId;
|
||
|
|
||
|
void Start()
|
||
|
{
|
||
|
m_MediaPlayer = GetComponent<MediaPlayer>();
|
||
|
}
|
||
|
|
||
|
public void Init()
|
||
|
{
|
||
|
m_MediaPlayer.Play();
|
||
|
}
|
||
|
}
|