Esempio n. 1
0
    public void Start()
    {
        VRMediaPlayer media = new VRMediaPlayer(options);

        media.Video.source            = VideoSource.Url;
        media.Video.url               = "http://www.vatsalambastha.com/downloads/sample-360-video.mp4";
        media.Video.isLooping         = true;
        media.Video.loopPointReached += delegate(VideoPlayer source) {
            if (!media.Video.isLooping)
            {
                media.Video.Stop();
            }
        };

        media.Play();
    }
Esempio n. 2
0
    public void Start()
    {
        VRMediaPlayer player = new VRMediaPlayer(options);

        player.Video.source = VideoSource.Url;
        player.Video.url    = "C:/Users/Victor A/Documents/Projects/GNG1103/Assets/Adrenak/UniVRMedia/Demo/TravelTheWorldInVR.mp4";
        //player.Video.VideoClip = "TravelTheWorldInVR.mp4";
        player.Video.isLooping         = false;
        player.Video.loopPointReached += delegate(VideoPlayer source) {
            if (!player.Video.isLooping)
            {
                player.Video.Stop();
            }
        };

        player.Play();
    }