RenderHeads / UnityPlugin-AVProVideo

AVPro Video is a multi-platform Unity plugin for advanced video playback
https://www.renderheads.com/products/avpro-video/
233 stars 28 forks source link

WebRTC support #384

Open spydeveloper opened 4 years ago

spydeveloper commented 4 years ago

**Is your feature request related to a problem? Looking for a webRTC playback solution for VR app. The webRTC is becoming more and more famous among the video playback community. So looking for a solution.

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

This issue has been automatically closed because it has not had recent activity. If you wish to continue this issue, then please create a new issue as we do not monitor closed issues.

ljg96 commented 3 years ago

webrtc support please

AndrewRH commented 3 years ago

@ljg96 could you explain what exactly you mean? what features and functionality are you looking for?

ljg96 commented 3 years ago

@AndrewRH Is there a way to play webrtc video in avpro's unity environment? I am using oven media engine.| https://github.com/AirenSoft/OvenMediaEngine

imosapatryk commented 3 years ago

+1

steveseguin commented 3 years ago

I've had users of my service request support for AVPro , for the purpose of playing back live videos in VRChat on Steam. I've had similar requests from several unity developers, although usually I just point them in the direction of a CEF-plugin. I can't really offer that in the context of VRChat it seems though.

My service is the free-to-use OBS.Ninja (https://github.com/steveseguin/obsninja/), which lets a user publish a clean ultra-low latency video stream from one user to numerous others, using WebRTC.

The basis of how it works is simple. You have two weblinks; a push link and a view link. Videos are played back full-screen, with no overlays, so you shouldn't need to hunt for a video tag to playback. Instead, you'd just take a raw capture of the window output and display that; this allows for mixing of multiple video elements. Ideally, auto-play for videos would be allowed, so no interaction needed for playback to start/finish. All settings and controls can be passed to the player via URL-based arguments. (bitrate, codec, scale, etc).

Users usually use it for pulling remote videos from guests into OBS/VMIX, although it can be used for private and free broadcasting to small groups (around 10 to 30). A similar service of mine, also free, is meshcast.io, which is designed for more basic mass-broadcasting of low-bitrate live webRTC video; it works in a similar way, but does have a static video tag available for discovery and playback.

Happy to make changes to my code base to help make supporting this request feasible.

-steve