mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-19 09:54:46 +01:00
66 lines
965 B
C#
66 lines
965 B
C#
using UnityEngine;
|
|
|
|
namespace RenderHeads.Media.AVProVideo
|
|
{
|
|
public interface IMediaControl
|
|
{
|
|
bool OpenVideoFromFile(string path);
|
|
|
|
void CloseVideo();
|
|
|
|
void SetLooping(bool bLooping);
|
|
|
|
bool IsLooping();
|
|
|
|
bool HasMetaData();
|
|
|
|
bool CanPlay();
|
|
|
|
bool IsPlaying();
|
|
|
|
bool IsSeeking();
|
|
|
|
bool IsPaused();
|
|
|
|
bool IsFinished();
|
|
|
|
bool IsBuffering();
|
|
|
|
void Play();
|
|
|
|
void Pause();
|
|
|
|
void Stop();
|
|
|
|
void Rewind();
|
|
|
|
void Seek(float timeMs);
|
|
|
|
void SeekFast(float timeMs);
|
|
|
|
float GetCurrentTimeMs();
|
|
|
|
float GetPlaybackRate();
|
|
|
|
void SetPlaybackRate(float rate);
|
|
|
|
void MuteAudio(bool bMute);
|
|
|
|
bool IsMuted();
|
|
|
|
void SetVolume(float volume);
|
|
|
|
float GetVolume();
|
|
|
|
int GetCurrentAudioTrack();
|
|
|
|
void SetAudioTrack(int index);
|
|
|
|
float GetBufferingProgress();
|
|
|
|
ErrorCode GetLastError();
|
|
|
|
void SetTextureProperties(FilterMode filterMode = FilterMode.Bilinear, TextureWrapMode wrapMode = TextureWrapMode.Clamp, int anisoLevel = 1);
|
|
}
|
|
}
|