Example #1
0
        private async void btStart_Click(object sender, EventArgs e)
        {
            MediaPlayer1.Debug_Mode           = cbDebugMode.Checked;
            MediaPlayer1.Info_UseLibMediaInfo = true;

            mmLog.Clear();

            MediaPlayer1.Video_Renderer.Zoom_Ratio  = 0;
            MediaPlayer1.Video_Renderer.Zoom_ShiftX = 0;
            MediaPlayer1.Video_Renderer.Zoom_ShiftY = 0;

            MediaPlayer1.Video_Renderer.Video_Renderer = VFVideoRenderer.VMR9;
            MediaPlayer1.Source_Mode = VFMediaPlayerSource.LAV;

            await MediaPlayer1.PlayAsync();

            await MediaPlayer1.PIP_Sources_SetSourcePositionAsync(0, _pipInfos[0].Rect, 1.0f);

            lbSourceFiles.SelectedIndex = 0;

            timer1.Start();
        }