Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 05-31-2009, 11:41 PM   #1 (permalink)
smithdale87
Registered Member
 
Join Date: Aug 2008
Location: Memphis, TN, USA
Age: 24
Posts: 3,555
Send a message via ICQ to smithdale87 Send a message via AIM to smithdale87 Send a message via Skype™ to smithdale87
Default Using MPMoviePlayerController undocumented methods...

First off, I know this is wrong, but since this app is for personal use, I don't think it's gonna hurt anyone if I use a few undocumented calls.

Here's what I'm trying to do:

I have an overlay view on top of a MPMoviePlayerController .. nothing hard about that.

Now, when I click one of the buttons, I want to get the current time of the video that's being played. For this, there's a "currentTime" method in the mpmovieplayercontroller class.

However, when compiling, I get the ole warning "MPMoviePlayerController" may not respond to '-currentTime'. This method is assumed to return 'id' and accept '...' as arguments.


So my problem is that I need to get a 'double' value from the currentTime rather than an object. I've tried casting, but this doesnt work either.

Any suggestions?

Just to clarify, the mpmovieplayercontroller has a method with signature:
Code:
-(double)currentTime;
But the compiler assumes it looks like this:
Code:
-(id)currentTime;
smithdale87 is offline   Reply With Quote
 

» Advertisements
» Online Users: 607
19 members and 588 guests
aijo, apatsufas, armmzz, brianmethod, chits12345, ckgni, claudia99, Dani77, devangvyas, Domele, drewrico, ghost, JamesCahall, my02820, oceanlablight, Oral B, rky, SoulRed12, spiderguy84
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,785
Threads: 89,205
Posts: 380,598
Top Poster: BrianSlick (7,129)
Welcome to our newest member, drewrico
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:08 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.