I am french and little newbbie. I have a question :
I want to make a very simple app on ipad : rec video from the ipad and display it with a delay of 15-30 seconds. no record, just display with a delay.
It's for studients (I am teacher).
They will do something (about 30 seconds) in front of the camera and then just have a look about what they did. Excuse for my english... Thanks a lot for your answers...
There's an app that does just that. Live Video Delay on the App Store: https://itunes.apple.com/us/app/live-video-delay/id525582638?ls=1&mt=8
Related
I want to create a feature in my app the makes a sound every 5 seconds. The sound file is short and in order to play it every 5 seconds i use a timer.
The issue is i want to play it even if the app is in the background for a maximum time of 30 min and could also be different bpm for each user. I have used background audio mode to do it but i could find in the documentation how does playing sounds is threated by the system i dont want my app to be suspended. I only saw referance to playing music songs in the background with a player.
How can i be certain i will receive the background time needed just for playing small sounds every few seconds and not playing continues music? I was thinking about empty sound wave file but afraid apple would reject my app.
Thanks for any help i can get.
I am working on a kids ABC learning app which will be somewhat like this app.
Petting Zoo
The user can do these gestures... Swipe UP, DOWN, LEFT , RIGHT and TOUCH and each gesture has a small animation clip (approx duration 1 -3 secs each ) linked to it like the character jumping on Swipe UP, etc. There will also be an IDLE loopable movie which will be playing continuously when there is no input from user.
So I am trying to use videos in MP4 and M4V format for these gestures but the problem is that the videos are lagging just before playing. Means they dont play instantly upon doing a gesture but take a time of say micro second to load and play.
I am looking for output like the video above. You can see that the animations are so responsive and do not hang even for little time.
My developer once achieved such smooth output with the MP4 video clips but those clips didnt have audio embedded in them and then when he used videos with audio embedded in them, they were lagging again.
Can audio be the issue for lag here ? Or anything else you experts will like to suggest.
Please help guys. Yours inputs will be very valuable for me.
You can use - (void)replaceCurrentItemWithPlayerItem:(AVPlayerItem *)item of AVPlayer.
This methods helps you to load the new item to an existing AVPlayer.
Here is the important reference for playing multiple videos using single AVPlayer.
I have followed the many helpful previous questions to get my AVPlayer successfully streaming video when my app goes to the background. There are two methods described on Apple's QA1668 and they both work for my stream urls.
The problem is that there is a noticeable audio gap during the transition that is identical for both methods. On my iPhone 6 in release mode I would say the gap is less than 0.5 seconds, which may not seem terrible but if I'm playing something like a music video this is very distracting.
After more testing it looks like this gap actually occurs when I remove the AVPlayerLayer (or, if I am using the other method, when I disable the AVMediaCharacteristicVisual tracks) as I have determined it will still happen if I hook those actions up to a button rather than the backgrounding state.
My guess is that is has something to do with the audio re-syncing to the new video state of the AVPlayer but really I have no clue. Any help would be greatly appreciated!
Live Wallpapers app can play video on lockscreen. How does it do this?
Judging by the reviews, the answer appears to be "badly, if at all". One reviewer notes succinctly:
The animation doesn't stay up unless the app is open...
My first guess would be that it generates a sequence of images and cycles the lockscreen image through each of them.
I am working on a read-along-book app for the iPad which is very similar to this Toy Story book ([url=http://itunes.apple.com/us/app/toy-story-read-along/id364376920?mt=8]Toy Story Read-Along for iPhone, iPod touch, and iPad on the iTunes App Store[/url]). So my question is how would be the best way to draw the text to the screen and then, here seems to be the tricky part, highlight over each word as it is read by the narrator? I have some pretty nice page turning animation setup now and a few other things on there way, but need some good suggestions for the text. Any examples are very much welcomed!
I'll answer only for the text highlighting.
I guess the best way to do it is to create a separate app that play the audio file you want to use.
when the apps starts there will be a button for starting the audio playback.
once pressed play, the app starts a timer.
now you start listening the audio, every time a starts a word that you want to highlight tap the screen.
the app tracks the time.
at the end of the audio file, the apps dumps the timestamps.
at this point you'll have the exact time in which you'll have to start highlighting the single word in your application.
Hope it help!