mirror of
				https://github.com/pion/webrtc.git
				synced 2025-10-31 02:36:46 +08:00 
			
		
		
		
	Tweak g722 support code
* allow GST examples to use g722 * Assume G722 is mono -- that's what chrome likes, and i don't know if anyone's doing stereo g722 anyway Relates to #283
This commit is contained in:
		 Woodrow Douglass
					Woodrow Douglass
				
			
				
					committed by
					
						 Woodrow Douglass
						Woodrow Douglass
					
				
			
			
				
	
			
			
			 Woodrow Douglass
						Woodrow Douglass
					
				
			
						parent
						
							7cc44ba79b
						
					
				
				
					commit
					c1bfcc8367
				
			| @@ -43,6 +43,8 @@ func CreatePipeline(codecName string, in chan<- media.RTCSample) *Pipeline { | ||||
| 		pipelineStr = "videotestsrc ! video/x-raw,format=I420 ! x264enc bframes=0 speed-preset=veryfast key-int-max=60 ! video/x-h264,stream-format=byte-stream ! " + pipelineStr | ||||
| 	case webrtc.Opus: | ||||
| 		pipelineStr = "audiotestsrc ! opusenc ! " + pipelineStr | ||||
| 	case webrtc.G722: | ||||
| 		pipelineStr = "audiotestsrc ! avenc_g722 ! " + pipelineStr | ||||
| 	default: | ||||
| 		panic("Unhandled codec " + codecName) | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user