millicast / millicast-player-unreal-engine-plugin

Millicast Player plugin for Unreal Engine
Other
19 stars 15 forks source link

Expose PlayerStats to subscribers #62

Closed improbable-andreaskrugersen closed 1 year ago

improbable-andreaskrugersen commented 1 year ago

While still on the UE4.27 branch, I implemented a divergence to expose WebRTC stats to the UMillicastSubscriber component which we used to track metrics about incoming bandwidth.

Now that we've upgraded to the dev branch, I was excited to see that stats support was already present. Unfortunately, it's opinionated in that it only renders stats to the screen. We need to be able to extract that information to send it off to a metrics server. I could keep a divergence again but I'd much rather use the plugin as-is and find a solution that works for us both.

I don't know what your future plans for this are, so I'll just write down what we'd need on our side:

Would that direction be in line with your own plans? If so, would you want to do that change or are you happy to accept a PR?

rweber89 commented 1 year ago

Thank you @improbable-andreaskrugersen I am working on a Simulcast issue right now but I`ll get on making this more accessible. As you can see we are making architectural improvements, this would be one of them.

I can get back to you on this with further details next week.

improbable-andreaskrugersen commented 1 year ago

@rweber89 Sounds great, thanks! I think we can live without these stats for a short while. I'm very happy that we're currently divergence-free though, so great work on the architectural changes so far 😃

rweber89 commented 1 year ago

Divergence-free is what I like to aim for, because otherwise you miss out on changes&fixes and need to manually main. You should only need to update 🙏

rweber89 commented 1 year ago

Addressed in 1bc22c57dd40b44e6d281927d08f8208b7f2f115 on the dev branch