Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 03-31-2010, 12:27 PM   #1 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 3
wannamobile is on a distinguished road
Unhappy No Audio playing Video file via URL address, MPMoviePlayerController

HTML Code:
I follow all the standard but the Video Audio sometimes got muted or just disappear at the end of the video file. Have no idea why. Does any know what might be an issue?

Could a "didReceiveMemory" warning cause this? I sometimes receive this message when it happens.

 

Thank you for you help. Please see the detail below.

 
The video file is being streamed via a URL address, format in MPEG-4 Movie, size less than 6.2 MB.

 

I have the following 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];           
}

 

Following are the warning messages  I received before the Video file start to play.

 

warning:  Unable to read symbols for  "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1.3  (7E18)/Symbols/System/Library/VideoDecoders/VCH263.videodecoder" (file  not found).


warning: Unable to read symbols for  "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1.3  (7E18)/Symbols/System/Library/VideoDecoders/H264H1.videodecoder" (file  not found).


warning: Unable to read symbols for  "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1.3  (7E18)/Symbols/System/Library/VideoDecoders/MP4VH1.videodecoder" (file  not found).


2010-03-29 16:57:25.830 .... v2[4663:207] setting  file:///private/var/mobile/Applications/7DCB1FCC-7268-4551-B737-8B418CA4A07E/tmp/MediaCache/[html]
[/html]
wannamobile is offline   Reply With Quote
Reply

Bookmarks

Tags
mediacache, mpmovieplayercontroller, nsurl, play, videodecoder

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 318
7 members and 311 guests
checkright, chemistry, heshiming, iAppDeveloper, jbro, kapps11, SLIC
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,648
Threads: 94,112
Posts: 402,872
Top Poster: BrianSlick (7,990)
Welcome to our newest member, brandon6031
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:21 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0