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 06-02-2009, 10:33 AM   #7 (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

That's what I feared. I havent tried using %d yet. I'll do so when I get near my mac again.

On the other hand, I only need the currentTime value to figure out how long the video has been playing. I've tried a workaround by just initializing an NSDate object when I call [video play]. Then, when the video stops, I can call the timeIntervalSinceNow method from NSDate to figure out the elapsed time since the movie started.

The only issue now is that if the user pressed the "pause" button, I have no way of getting notified to adjust the elapsed time. My solution would be to overlay an invisible button on top of the 'pause' button on the movie player so that when the user thinks he/she is hittin pause, they are actually hitting the invis button I've overlayed. This will allow me to capture that event, adjust the elapsed time, and then pass the touch on to the movie player so it can actually pause the movie.

The problem I'm facing here is that I can't figure out how to pass the touch on to be handled by the movie player controller.

Any ideas?
smithdale87 is offline   Reply With Quote
 

» Advertisements
» Online Users: 680
21 members and 659 guests
apatsufas, armmzz, brianmethod, chits12345, ckgni, claudia99, coder, Dani77, devangvyas, Domele, ghost, JamesCahall, k2c, my02820, Objective Zero, oceanlablight, Oral B, rky, robin4kneb, skrew88, SoulRed12
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,784
Threads: 89,204
Posts: 380,594
Top Poster: BrianSlick (7,129)
Welcome to our newest member, claudia99
Powered by vBadvanced CMPS v3.1.0

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