Пример #1
0
        public MFMediaUriElement()
        {
            window = new HiddenWindow();
            window.CreateHandle(new CreateParams());

            Player = new MFMediaUriPlayer(window.Handle, window.Handle);
            Player.NewAllocatorFrame += new Action(Player_NewAllocatorFrame);
            Player.NewAllocatorSurface += new NewAllocatorSurfaceDelegate(Player_NewAllocatorSurface);
            Player.OpenURL(@"E:\olddesktop\Coral_Reef_Adventure_1080.wmv");
            Thread.Sleep(2500);
            Player.Pause();
            Thread.Sleep(2500);
            Player.Play();
        }
Пример #2
0
        public MFMediaUriElement()
        {
            window = new HiddenWindow();
            window.CreateHandle(new CreateParams());

            Player = new MFMediaUriPlayer(window.Handle, window.Handle);
            Player.NewAllocatorFrame   += new Action(Player_NewAllocatorFrame);
            Player.NewAllocatorSurface += new NewAllocatorSurfaceDelegate(Player_NewAllocatorSurface);
            Player.OpenURL(@"E:\olddesktop\Coral_Reef_Adventure_1080.wmv");
            Thread.Sleep(2500);
            Player.Pause();
            Thread.Sleep(2500);
            Player.Play();
        }