Unity AVProVideo脚本方法调用

1.搭建场景

Unity AVProVideo脚本方法调用_第1张图片

2.脚本

项目地址

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using RenderHeads.Media.AVProVideo;
using System.IO;

public class ButtonControl : MonoBehaviour {
    Button _btnDownLoad;
    Button _btnPlay;
    Button _btnStop;
    Button _btnScreen;//是否全屏
    MediaPlayer _mp;
    Slider _sliVideo;//进度条
    //Slider _sliSound;//声音控制
    private float _setAudioVolumeSliderValue;

    Text _txtNowTime;
    Text _txtAllTime;

    private float _setVideoSeekSliderValue;
    private bool _wasPlayingOnScrub;

    Animation _ani;
    bool _isOvered = true;

    void Start () {
        _btnDownLoad = this.transform.Find("BtnDownload").GetComponent


你可能感兴趣的:(AVProVideo)