I tried to do it this way, but it did not work:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
This is the code:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
This is the error I get:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
Thanks in advance for any tip.
			
			
			
				B4X:
			
		
		
		player1.Prepare(player1.CreateUriSource("https://www.youtube.com/watch?v=Mw1DYLvIV6U"))This is the code:
			
				B4X:
			
		
		
		    If FirstTime Then
        player1.Initialize("player")
        player1.Prepare(player1.CreateUriSource("https://www.youtube.com/watch?v=Mw1DYLvIV6U"))
    End If
    Activity.LoadLayout("1")
    SimpleExoPlayerView1.Player = player1
    player1.PlayThis is the error I get:
			
				B4X:
			
		
		
		Error: com.google.android.exoplayer2.source.ExtractorMediaSource$UnrecognizedInputFormatException: None of the available extractors (MatroskaExtractor, FragmentedMp4Extractor, Mp4Extractor, Mp3Extractor, AdtsExtractor, Ac3Extractor, TsExtractor, FlvExtractor, OggExtractor, PsExtractor, WavExtractor) could read the stream.Thanks in advance for any tip.
 
				 
 
		 
 
		 
 
		 
 
		 
 
		