Skip to content

max-xue/Unity-WHEP-Player

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity WebRTC player

This repository contains simple and frankly basic implementation of WebRTC player for Unity (project is based on VRChat World template - but the project itself is generic to any unity project)

This project uses Unity.WebRTC package (as of now 3.0.0-pre.1 but specific version should not matter)

This is partial implementation of WHEP specification (https://www.ietf.org/id/draft-murillo-whep-01.html)

WHEPClient.cs implementation is based on https://github.com/cloudflare/templates/blob/main/stream/webrtc/src/WHEPClient.ts licensed under MIT license (copyright notice where appropriate)

Setup process

  • Drag VideoPlayer prefab to the scene
  • Set URL field to appropriate WHEP endpoint url
  • (Optionally) set up other audio sources and materials/images for video display
  • Either by using provided example script of LaunchPlayer.cs or by calling Play() function on the player, initialize the playback

NOTE: It is highly recommended to implement contents of WebRTCManager.cs in your own project following best practices.

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C# 100.0%