mirror of
				https://github.com/ossrs/srs.git
				synced 2025-03-09 15:49:59 +00:00 
			
		
		
		
	WebRTC: Support WHEP for play. v5.0.182 v6.0.80 (#3404)
RFC for WHIP: https://datatracker.ietf.org/doc/draft-ietf-wish-whip/ RFC for WHEP: https://datatracker.ietf.org/doc/draft-murillo-whep/ Please note that SRS 5.0 already had WHIP support. I didn't write a document about WHIP, because WHIP is not a RFC right now, but there are clues in [srs-unity](https://github.com/ossrs/srs-unity#usage-publisher). SRS WHIP url for publisher: `http://localhost:1985/rtc/v1/whip/?app=live&stream=livestream` This PR is for WHEP, the url for player is `http://localhost:1985/rtc/v1/whep/?app=live&stream=livestream` PS: There is a great PR for OBS to have WHIP support, see https://github.com/obsproject/obs-studio/pull/7926 and #3581 PS: WHIP for FFmpeg https://github.com/ossrs/ffmpeg-webrtc/pull/1 See #3170 --------- Co-authored-by: Haibo Chen <495810242@qq.com> Co-authored-by: john <hondaxiao@tencent.com> Co-authored-by: ChenGH <chengh_math@126.com>
This commit is contained in:
		
							parent
							
								
									03d1d91f2f
								
							
						
					
					
						commit
						f9bba0a9b0
					
				
					 7 changed files with 14 additions and 6 deletions
				
			
		|  | @ -571,7 +571,7 @@ function SrsRtcWhipWhepAsync() { | |||
| 
 | ||||
|     // See https://datatracker.ietf.org/doc/draft-ietf-wish-whip/
 | ||||
|     // @url The WebRTC url to play with, for example:
 | ||||
|     //      http://localhost:1985/rtc/v1/whip-play/?app=live&stream=livestream
 | ||||
|     //      http://localhost:1985/rtc/v1/whep/?app=live&stream=livestream
 | ||||
|     self.play = async function(url) { | ||||
|         if (url.indexOf('/whip-play/') === -1 && url.indexOf('/whep/') === -1) throw new Error(`invalid WHEP url ${url}`); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue