峰哥,救救qwq
This commit is contained in:
21
Assets/Script/Tool/MediaPlayerTool.cs
Normal file
21
Assets/Script/Tool/MediaPlayerTool.cs
Normal file
@ -0,0 +1,21 @@
|
||||
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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user