I'm streaming video to my app with MPMoviePlayerController, works great in Simulator and my device, but one of my beta testers devices won't play the audio. Audio controls won't appear, and instead, show the following image:
Any idea what is going on? Thanks in advance!!
The beta testers phone was on vibrate... dummy.
Related
I am working on the video application. and My phone is on vibration or silent and I play the video then sound of video does not play. But I want to play sound even phone is on silent or vibration. So please let me know is it possible? If yes then How? please provide me sample source code.
Thanks
IOS doesnt give your app that kind of control.
When the user turned ios to silent all apps are silent.
Actually i'm a newbee to iOS development.
My requirement from a client is to make iPhone work as a MegaPhone. i.e, Audio input should be taken from the bluetooth or microphone and broadcast it through phone speakers.
I am able to record audio from microphone and play it using AVAudioRecorder and AVAudioPlayer,but what actually i needed is to broadcast to the speakers not recording.
Guys any sample codes available for this??
Thanks in advance.
AurioTouch sample code is available for this purpose
http://developer.apple.com/library/ios/#samplecode/aurioTouch/Introduction/Intro.html
Since the new update came out for apple tv where you can stream video to it from any iOS device running 4.2, I was trying to stream a video from my phone which uses MPMoviePlayerController to play the video to Apple TV. The player shows the airplay option and I can find Apple TV but when I tap on that nothing happens. So, was just wondering if is it really possible to stream a video using MPMoviePlayerController to apple tv or not or is there any other player framework which I am missing do that. I would really appreciate if someone can provide me with some help on this.
Regards,
Ankur
self.movieController = [[[MPMoviePlayerController alloc] initWithContentURL:[NSURL fileURLWithPath:CINDY_PATH]] autorelease];
[movieController setAllowsWirelessPlayback:YES];
movieController.view.frame = self.view.bounds;
[self.view addSubview:movieController.view];
The line "[movieController setAllowsWirelessPlayback:YES];" will allow Airplay video, however, it is a private API which is not AppStore safe...
Reference: http://www.tuaw.com/2010/11/24/apple-tv-hacking-spelunking-into-the-airplay-video-service/
Edit: Looks like I spoke prematurely. The AppleTV update was released today. A revised answer is below:
If your AppleTV has been updated to the latest software, and you can stream videos from the iPod app on your iPad, then video streaming over AirPlay should work. However, from what I heard recently, video streaming will only work from the iPod and YouTube apps. I have not yet had a chance to test out the AppleTV update myself, so I cannot verify any of this, but if true it means that you are only allowed to stream audio from MPMoviePlayerController in your app. Hopefully this restriction will be relaxed in the future.
I've created an application here which will stream videos to an AppleTV that have been shot on your iPhone. http://tinyurl.com/2vewstr
You will need the SDK to compile and use it.
Recently we've developed an iPhone app for an external company, and everything works fine in the app.
There is a section where the app pulls video from the client's server, and streams it into the iPhone's MPMoviePlayerController. This works fine on the iPhone and iPodTouch - both the video and the audio show up just great.
The problem, however, is that when the app is run on an iPad (using the iPad's iPhone simulator thingo that it does) only the audio plays, and no video can be seen.
Does anybody have any suggestions about what may be causing this? I thought perhaps it was the encoding, but then why would this prevent the video from playing on the iPad, and not the iPhone?
Use mpmovieplayerviewcontroller instead, you might find it works better.Here is a link to the ref http://developer.apple.com/iphone/library/iPad/index.html#documentation/mediaplayer/reference/mpmovieplayerviewcontroller_class/reference/reference.html
On my iPhone 3G I have a couple videos saved from emails and some apps i recored with and every time I try and open the UIImagePickerController it doesn't show the videos for me to choose. How do I get the UIImagePickerController to include videos and not just pictures?
You can't, not on the iPhone 3G. For reasons only known to the gods at Apple, almost all video functionality is disabled on the 3G though it can support it perfectly fine.