Video Location

iOS, iPad, iPhone, tvOS specific usage questions
ddavies
New Cone
New Cone
Posts: 9
Joined: 18 Jun 2014 22:06

Video Location

Postby ddavies » 23 Jun 2014 04:26

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.

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: Video Location

Postby fkuehne » 03 Jul 2014 22:28

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..
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

ddavies
New Cone
New Cone
Posts: 9
Joined: 18 Jun 2014 22:06

Re: Video Location

Postby ddavies » 04 Jul 2014 04:56

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

gpinigin
Blank Cone
Blank Cone
Posts: 12
Joined: 21 Jan 2013 11:13

Re: Video Location

Postby gpinigin » 04 Jul 2014 07:46

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).

ddavies
New Cone
New Cone
Posts: 9
Joined: 18 Jun 2014 22:06

Re: Video Location

Postby ddavies » 06 Jul 2014 00:52

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

ddavies
New Cone
New Cone
Posts: 9
Joined: 18 Jun 2014 22:06

Re: Video Location

Postby ddavies » 06 Jul 2014 00:59

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

ddavies
New Cone
New Cone
Posts: 9
Joined: 18 Jun 2014 22:06

Re: Video Location

Postby ddavies » 26 Jul 2014 21:37

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.


Return to “VLC for iOS, iPadOS and Apple TV”

Who is online

Users browsing this forum: No registered users and 14 guests