Youtube video in quicktime player

Discussion in 'Mac Programming' started by Binju, Apr 5, 2010.

  1. Binju macrumors member

    Joined:
    Jan 31, 2010
    #1
    I am trying to play a youtube video in the quick time player.

    I used the below code, But the movie is not playing,
    '
    Code:
    QTMovie*    aMovie = [QTMovie movieWithFile:@"http://www.youtube.com/watch?v=RGJ-jLYt3gI.mov" error:nil];
    	
    	
    	[mMovieView setMovie:aMovie];
    
    				  
    				
    	 
    	
    		
    	[aMovie autoplay];
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    You can't just add .mov to a youtube URL and get valid mov file to play.
     

Share This Page