UnityRenderStreaming icon indicating copy to clipboard operation
UnityRenderStreaming copied to clipboard

Chromecast Web Receiver App Example

Open luca992 opened this issue 4 years ago • 1 comments

This most definitely not ready to merge. But, I thought others might be interested. I implemented a basic Chromecast web app receiver that can display a single camera and audio stream, based on the VideoPlayer sample. It is working, however, the lifecycle of the receiver isn't properly set up to handle waiting for the webrtc stream to start. So, the webrtc broadcaster should be already broadcasting before loading this cast receiver.

While it is working, the performance isn't great. I am testing on my Chromecast with Google Tv (ccgtv). The main issue I am having is that when using hardware encoding (h264) in Unity the decoded stream quality on the Chromecast is actually much worse than using the software encoder in unity (vp8). In addition, the playback on the Chromecast is not the smoothest for either stream type. I think the Chromecast isn't using hardware acceleration to decode the video.

Anyways, if anyone has any ideas on how to improve the quality of the webrtc stream being decoded on the chromecast side, let me know!

luca992 avatar Mar 14 '21 05:03 luca992

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

unity-cla-assistant avatar Mar 14 '21 05:03 unity-cla-assistant