Note that there are some explanatory texts on larger screens.

plurals
  1. POiPhone MPMoviePlayerController lost sound while playing video on a real device
    text
    copied!<p>I am having issue with losing "video" sound while it was playing.</p> <p>I followed all the standards but the Video/Audio sometimes gets muted or just disappears at the end of the video file. I have no idea why. Does any know what might be the issue?</p> <p>This only happens when running the app on the real device, I can't reproduce the issue on the simulator.</p> <p>Could a "didReceiveMemory" warning cause this? I sometimes receive this message when it happens.</p> <p>Thank you for you help. Please see the details below.</p> <p>The video file is being streamed via a URL address, format in MPEG-4 Movie, size less than 6.2 MB.</p> <p>I have the following code:</p> <pre><code>- (IBAction) playMovie:(NSString*)theUrl setMovieType:(NSString *)theType setPlayOption:(int)theOption setSenderUIButton:(UIButton *) thisSender { NSString *getvdoUrl = [[NSString alloc] initWithString:theUrl]; NSURL *thisVdoURL = [NSURL URLWithString:getvdoUrl]; [getvdoUrl release]; getvdoUrl = nil; MPMoviePlayerController *movieplayer = [[MPMoviePlayerController alloc] initWithContentURL:thisVdoURL]; thisVdoURL = nil; if (movieplayer) { self.vdoPlayer = movieplayer; [movieplayer release]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(moviePlayBackDidFinish:) name:MPMoviePlayerPlaybackDidFinishNotification object:self.vdoPlayer]; [self.vdoPlayer play]; } } -(void) moviePlayBackDidFinish:(NSNotification*)theNotification { MPMoviePlayerController *movieplayer= [theNotification object]; [[NSNotificationCenter defaultCenter] removeObserver:self name:MPMoviePlayerPlaybackDidFinishNotification object:movieplayer]; movieplayer.initialPlaybackTime = 0.0; [movieplayer stop]; } </code></pre> <p>Following are the warning messages I received before the Video file start to play.</p> <blockquote> <p>warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1.3 (7E18)/Symbols/System/Library/VideoDecoders/VCH263.videodecoder" (file not found).</p> <p>warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1.3 (7E18)/Symbols/System/Library/VideoDecoders/H264H1.videodecoder" (file not found).</p> <p>warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1.3 (7E18)/Symbols/System/Library/VideoDecoders/MP4VH1.videodecoder" (file not found).</p> <p>2010-03-29 16:57:25.830 .... v2[4663:207] setting file:///private/var/mobile/Applications/7DCB1FCC-7268-4551-B737-8B418CA4A07E/tmp/MediaCache/[html]</p> </blockquote>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload