RenderHeads / UnityPlugin-AVProVideo

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

How to implement a video quality selector for HLS videos #1214

Open christianYS opened 2 years ago

christianYS commented 2 years ago

I'd like to implement a feature to allow the user to select a desired video quality, like youtube does (see example) From the documentation is not obvious what are the functions to use to achieve it with AvPro.

  1. Given any HLS media url, how do I query the available stream information (resolution, framerate, bitrate)?
  2. How do I force AvPro to select a specific rendition, preventing it from automatically switching to lower/higher quality?
  3. How to tell AvPro reset the preference, and automatically detect the best rendition?
yt
Chris-RH commented 2 years ago

Looking into this...

christianYS commented 2 years ago

So I guess it's not possible to achieve this with the current AvPro features?

Ste-RH commented 2 years ago

So I guess it's not possible to achieve this with the current AvPro features?

Not as things stand.

EDIT: Unless you change up your HLS manifest. Have each stream on it's own as well as an adaptive version.

It is likely that this feature would only be fully available on Android if implemented. Windows might be possible in a limited form, and apple platforms are a 'maybe'.

christianYS commented 2 years ago

It is likely that this feature would only be fully available on Android if implemented. Windows might be possible in a limited form, and apple platforms are a 'maybe'.

One reason why we would like this feature it's because on Apple platform the HLS videos always seem to start from an arbitrary rendition, even if the preferred resolution is set to be 1080p. This happens on a fast wifi connection, and it's not really guaranteed that the video player will switch to the highest rendition. It looks bad when watching 320p videos on a fullscreen desktop

Andjiang707 commented 1 year ago

my post has been closed, Please help me confirm my response again (https://github.com/RenderHeads/UnityPlugin-AVProVideo/issues/1247)

I desperately need this, please assist me, thank you so much!!

caojianManager commented 1 year ago

Is there an answer to this question

caojianManager commented 1 year ago

my post has been closed, Please help me confirm my response again (#1247)

I desperately need this, please assist me, thank you so much!!

Is there an answer to this question

Andjiang707 commented 3 months ago

Will it be implemented in version 3.0? This is a very important feature for me.