RenderHeads / UnityPlugin-AVProVideo

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

[Question] Is there Away To Display Current Video Codec of the streaming ? #2074

Closed Gianlucccc closed 4 hours ago

Gianlucccc commented 5 hours ago

AVPro Video Version

core unity 3.0.10

Which platform is your question for?

Windows

Your question

we are wondering if there's a way to know the current codec of the streaming we are using in our project. Also we would like to know if we are currently streaming a true stream or a vod .

Ste-RH commented 4 hours ago

No, not currently...and we are not sure this is something any of the Windows APIs expose. Which one are you using?

Ste-RH commented 4 hours ago

Also we would like to know if we are currently streaming a true stream or a vod .

Yes, you can check if the duration is infinite:

bool bIsLiveStream = double.IsInfinity( _myMediaPlayer.Info.GetDuration() );

Gianlucccc commented 4 hours ago

No, not currently...and we are not sure this is something any of the Windows APIs expose. Which one are you using?

Honestly im using webgl, but it was listed on the options, and i know you dont support it anymore, im just trying to understand if there's any viable option to be sure that my client is using the correct codec, cause we are suspecting they are not

Ste-RH commented 4 hours ago

Indeed, as you state, WebGL is no longer officially supported, but that does not mean we will not try to help where we can.

In the case of this question, there is no way to tell what codec is being used as is it all very browser specific with reference to WebGL. The only thing you can do is make sure your client and yourselves are using the same OS, browser and version number.

In future, please provide accurate information when submitting an issue or we just end up wasting your and our time.

Gianlucccc commented 4 hours ago

thank you very much, and apologies for not telling you about webgl, it is not listed on the options, sorry

Ste-RH commented 4 hours ago

No problem :) Sorry we cannot give a better answer/solution

Note: I edited my above response adding the following, in case you missed it:

"The only thing you can do is make sure your client and yourselves are using the same OS, browser and version number."