예제 #1
0
    void _play_movie_streamingAssets()
    {
        MediaList.ShowList(MediaList.LIST_TYPE.video_Streaming);
        // Editor. listType = LIST_TYPE.list_Streaming;
        return;
        //EventMgr.startEvent("显示关闭按钮");

        //GameObject objLayer = UIMgr.CreateLayer(10);
        //if (objLayer != null)
        //{
        //  Video theVideo = VideoMgr.CreateVideoPanel("movie", objLayer);

        //  //  string movFile = System.Environment.CurrentDirectory + @"/姜子牙.mp4";
        //  //  string movFile = @"c:\迅雷下载\The.Eight.Hundred.2020.1080p.HDRip.x264.AC3-FEWAT.mp4";

        //  //VideoMgr.PlayUrl(@"h:\Movies\babes tracy lindsay and aiko may sexors.mp4");
        //  //  VideoMgr.PlayUrl(@"h:\Dolby\DOLBY.VISION.CES.March.2018.UHD.BDRemux.2160p.DV.IVA.ExKinoRay\02.Chameleon.mp4");
        //  // VideoMgr.PlayUrl("file://" + @Application.streamingAssetsPath + @"/姜子牙.mp4");

        //  string movFile = "file://" + @Application.streamingAssetsPath + @"/姜子牙.mp4";
        //  theVideo.playUrl(movFile);

        //  //EventMgr.startEvent("播放视频");
        //}
    }
예제 #2
0
    // Use this for initialization
    void Start()
    {
        objShow.SetActive(false);

        buttonPlay_Voice_FL.onClick.AddListener(() => { _play_voice_pos(SoundPos._FL); });
        buttonPlay_Voice_FC.onClick.AddListener(() => { _play_voice_pos(SoundPos._FC); });
        buttonPlay_Voice_FR.onClick.AddListener(() => { _play_voice_pos(SoundPos._FR); });
        buttonPlay_Voice_CL.onClick.AddListener(() => { _play_voice_pos(SoundPos._CL); });
        buttonPlay_Voice_CC.onClick.AddListener(() => { _play_voice_pos(SoundPos._CC); });
        buttonPlay_Voice_CR.onClick.AddListener(() => { _play_voice_pos(SoundPos._CR); });
        buttonPlay_Voice_RL.onClick.AddListener(() => { _play_voice_pos(SoundPos._RL); });
        buttonPlay_Voice_RC.onClick.AddListener(() => { _play_voice_pos(SoundPos._RC); });
        buttonPlay_Voice_RR.onClick.AddListener(() => { _play_voice_pos(SoundPos._RR); });

        buttonPlay_voice_FL_FR.onClick.AddListener(() => { _play_line(SoundPos._FL, SoundPos._FR); });
        buttonPlay_voice_FL_RR.onClick.AddListener(() => { _play_line(SoundPos._FL, SoundPos._RR); });
        buttonPlay_voice_FL_RL.onClick.AddListener(() => { _play_line(SoundPos._FL, SoundPos._RL); });
        buttonPlay_voice_FR_FL.onClick.AddListener(() => { _play_line(SoundPos._FR, SoundPos._FL); });
        buttonPlay_voice_FR_RL.onClick.AddListener(() => { _play_line(SoundPos._FR, SoundPos._RL); });
        buttonPlay_voice_FR_RR.onClick.AddListener(() => { _play_line(SoundPos._FR, SoundPos._RR); });
        buttonPlay_voice_RL_FL.onClick.AddListener(() => { _play_line(SoundPos._RL, SoundPos._FL); });
        buttonPlay_voice_RL_FR.onClick.AddListener(() => { _play_line(SoundPos._RL, SoundPos._FR); });
        buttonPlay_voice_RL_RR.onClick.AddListener(() => { _play_line(SoundPos._RL, SoundPos._RR); });
        buttonPlay_voice_RR_RL.onClick.AddListener(() => { _play_line(SoundPos._RR, SoundPos._RL); });
        buttonPlay_voice_RR_FL.onClick.AddListener(() => { _play_line(SoundPos._RR, SoundPos._FL); });
        buttonPlay_voice_RR_FR.onClick.AddListener(() => { _play_line(SoundPos._RR, SoundPos._FR); });


        buttonPlay_voice_L2R.onClick.AddListener(() => { _play_line(SoundPos._CL, SoundPos._CR); });
        buttonPlay_voice_R2L.onClick.AddListener(() => { _play_line(SoundPos._CR, SoundPos._CL); });
        buttonPlay_voice_F2R.onClick.AddListener(() => { _play_line(SoundPos._FC, SoundPos._FR); });
        buttonPlay_voice_R2F.onClick.AddListener(() => { _play_line(SoundPos._FR, SoundPos._FC); });


        buttonPlay_sound.onClick.AddListener(_play_sound);
        buttonPlay_movie_inner.onClick.AddListener(() => { MediaList.ShowList(MediaList.LIST_TYPE.video_Inner); });
        //   buttonPlay_movie_inner.onClick.AddListener(() => { _play_movie_inner(); });// MediaList.ShowList(MediaList.LIST_TYPE.List_Inner); });
        buttonPlay_movie_url.onClick.AddListener(() => { MediaList.ShowList(MediaList.LIST_TYPE.video_Url); });
        buttonPlay_movie_StreamingAssets.onClick.AddListener(() => { MediaList.ShowList(MediaList.LIST_TYPE.video_Streaming); });

        buttonPlay_music_mp3.onClick.AddListener(() =>
        {
            MediaList.ShowList(MediaList.LIST_TYPE.audio_Inner);
            //      Music music = _play_music_mp3();
            //    music.gameObject.AddComponent<_Astroid>();
        });

        buttonPlay_music_dts.onClick.AddListener(() => { _play_music_dolby(); });
        buttonStop_music.onClick.AddListener(() => {
            //EventMgr.startEvent("停止音乐");
            MediaList.ShowList(MediaList.LIST_TYPE.audio_Streaming);
//      StartCoroutine(LoadMusic(@"j:\_Projects\_Sound5.1\Sound5.1\Assets\Resources\Media\Title1 - Chapter 01.wav"));
            bBird = false;
        });

        buttonPlay_bird.onClick.AddListener(_bird);
    }