Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get current frame?

I would like to send to another app current frame (number). Is it possible to access it in axWindowsMediaPlayer control?

like image 906
IAdapter Avatar asked Nov 02 '11 19:11

IAdapter


People also ask

How do I switch back to frame?

We can switch back from a frame to default in Selenium webdriver using the switchTo(). defaultContent() method. Initially, the webdriver control remains on the main web page. In order to access elements within the frame, we have to shift the control from the main page to the frame with the help of the switchTo().


2 Answers

I didn't see anything about this on axWindowsMediaPlayer control.

But you can use FrameGrabber project to extract frames from a movie. FrameGrabber is an open-source library written in c# and it is easy to use.

Hope this helps.

like image 190
Mahdi Ghiasi Avatar answered Sep 22 '22 21:09

Mahdi Ghiasi


This may be an old thread, but I feel like the question did not properly get answered. This may not be the "frame number" but it does give you a "position" of the video that you could pass. I am using it to sync two videos. This is for a media player that has already been added to a VB form called AxWindowsMediaPlayer1. I am sure something similar can be called in C#

Dim position As Double 
position = AxWindowsMediaPlayer1.Ctlcontrols.currentPosition
like image 40
leo Avatar answered Sep 21 '22 21:09

leo