AVPlayer Video Playback No Sound - objective-c

I'm using AVPlayer to play back some embedded (.mov) video clips in the bundle and I can't get the audio to playback. Any advice on how to get the audio to play? All I see is the video playing with no audio.

Make sure that the audio in the movie is using one of the support audio codecs. These are listed in the Multimedia Programming Guide if you're using iOS. If you're using OS X, then this list might be more appropriate.

Related

Is there a way to record the audio output of a certain application on OSX programmatically?

Is there a way to record the audio output of a certain application(for example only record chrome while chrome is playing video and apple music is playing music) on OSX programmatically? Does it need to implement an audio driver to achieve it?
Is there a way to record the audio output of a certain application(for example only record chrome or itune while chrome is playing video and apple music is playing music) on OSX programmatically? Does it need to implement an audio driver to achieve it?

Want to create custom audio effect in native c/c++ for android

I am working on project which deals with audio video playback in Android KitKat. I am able to play video using video view and it's MediaPlayer helps to modify the audio track of video. I know about Playbackparams which can be used for pitch and tempo shifting but it's available from API 23.
I heard about a library called Sound touch which can be used for pitch and tempo pitching but the source code available for the same shows that it works for WAV files.
I am interested in using sound touch library as a audio effect library which I can place in Android's /system/etc/audio_effects.conf and place the SO file in /system/lib.
But I don't know how to turn this sound touch library in order to make it read audio from Android MediaPlayer as I am planning to call this library in the same as we use presetreverb/equalizer?
Kindly help me out if anyone has done such an implementation.

MPMoviePlayer or AVPlayer play advertisements(ads) in the middle of a video iOS

We are trying to play ads while playing a video using MPMoviePlayer or AVPlayer in our iOS app. What is the best way to achieve this functionality? Can anyone suggest the right way to make it work as YOUTUBE Player which plays ads in the middle of video.
https://github.com/androidios/AVEditDemo is the wonderful example for merging multiple videos in iOS.
Here is apple WWDC video for editing videos in iOS http://adcdownload.apple.com//videos/wwdc_2010__hd/session_407__editing_media_with_av_foundation.mov

How to embed a video player in NSView?

I want to embed a video player in an NSView. I also want to play different files, passing the path of these files. Is it possible to implement in a Mac application?
For QTKit, the QTKit Application Tutorial - Creating a Simple QTKit Media Player Application takes you through the basic steps.
Take a look at the AVFoundation frameworks now in 10.7 - AVPlayer looks like a good start.

Play video files on iPad

I am on the lookout for some sample code to help me learn how to play movie files (.mp4) on the iPad.
Can anyone help? I can only find a iPhone sample which doesn't work.
See the AVFoundation framework, particularly AVPlayer. There’s also a higher-level class called MPMoviePlayerController that offers simple video playback (it’s easier to use but cannot be customized).