Page 1 of 1

Video Location

Posted: 23 Jun 2014 04:26
by ddavies
First I want to say thanks for such a great application. I am interested in using the media player in one of my applications. One of the things I need to do is get the location (x,y) of where the user taps in a video. I am able to reassign the gestures and use the tap for my purpose but I get the location in the window/view not the location in the video display.

Thanks in advance.

Re: Video Location

Posted: 03 Jul 2014 22:28
by fkuehne
We added supported for that in the latest libvlc / VLCKit version, so this is automatically performed by the underlying video output module, if you want to control OSD menus, etc.

Alternatively, just add a gesture recognizer to the video output wrapper view..

Re: Video Location

Posted: 04 Jul 2014 04:56
by ddavies
That is great. I thought I should give some more background for others who are new at this. I had found the page https://wiki.videolan.org/iOSCompile. I had two copies of the git clone. The one I did the compile for the device. This worked fine as long as I did not try in the xcode project to build for a 7.x device. The other clone I built with the -s option. That failed to build.

Today I found this page: https://wiki.videolan.org/VLCKit/ This is more what I was looking for, sample projects to build an app. The previous page is for a full featured app.

I am running the build script now. The first time failed, so I removed /usr/local/bin from my PATH as suggested on the page.

I do have one question. How do you pull in new features to an existing project? I am somewhat new to iOS development and I have never had to run a build script before I can work on an xproject.

Thanks,

Daniel Davies

Re: Video Location

Posted: 04 Jul 2014 07:46
by gpinigin
Hey,

If you want to set up MobileVLCKit in your project, you can use Cocoapods, just add to your Podfile:

Code: Select all

pod 'MobileVLCKit', '~>2.2.0'
To install Cocoapods

Code: Select all

sudo gem install cocoapods
Another way is to use precompiled library (http://download.videolan.org/pub/videol ... binary.zip).

Re: Video Location

Posted: 06 Jul 2014 00:52
by ddavies
We added supported for that in the latest libvlc / VLCKit version, so this is automatically performed by the underlying video output module, if you want to control OSD menus, etc.

Alternatively, just add a gesture recognizer to the video output wrapper view..
I was not able to compile the most recent download of MobileVLCKit but I have been looking through the sources. I could not find a video output wrapper view and need a hint as to where the support you added in the libvld

Re: Video Location

Posted: 06 Jul 2014 00:59
by ddavies
Hey,

If you want to set up MobileVLCKit in your project, you can use Cocoapods, just add to your Podfile:

Code: Select all

pod 'MobileVLCKit', '~>2.2.0'
To install Cocoapods

Code: Select all

sudo gem install cocoapods
Another way is to use precompiled library (http://download.videolan.org/pub/videol ... binary.zip).
Thanks for the info. I will look into the Cocapods. For now, I have created my own project and I add the MobleVLCKit library from the downloaded VLCKit project after performing the build. Unfortunately, I can't get the latest download to compile, so I am using an earlier download that did compile.

The mistake I was making was to use the downloaded project and modifying it with my own code. Dumb but that is what you do when you first start out. lol

Re: Video Location

Posted: 26 Jul 2014 21:37
by ddavies
We added supported for that in the latest libvlc / VLCKit version, so this is automatically performed by the underlying video output module, if you want to control OSD menus, etc.

Alternatively, just add a gesture recognizer to the video output wrapper view..
I was never able to find this.

My solution is to use the x & y from the touch, the video size and the current frame. By using this info, I can calculate the x and y within the video. It is not 100% accurate but then touch is not as accurate as a mouse click, so it is good enough. I have my proof-of-concept application submitted to the client.