RenderHeads / UnityPlugin-AVProVideo

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

Playback m3u8 video #1334

Closed Sheonito closed 1 year ago

Sheonito commented 1 year ago

Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE

Describe the issue A clear and concise description of what the issue is.

Your Setup (please complete the following information):

To Reproduce

  1. mediaPlayer.OpenMedia() with m3u8 video path like "mediaPlayer.OpenMedia(MediaPathType.AbsolutePathOrURL, path, false);"
  2. mediaPlayer.Play()
  3. The video is not adaptive

Logs If applicable, add error logs to help explain your problem.

Screenshots If applicable, add screenshots to help explain your problem.

Videos https://metalive.s3.ap-northeast-2.amazonaws.com/video_sources/lottevideo/v_car_3_1.m3u8

Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE

Instead email the link to us unitysupport@renderheads.com

Chris-RH commented 1 year ago

Hi @Sheonito

The url that you supplied only seems to have one rendition of the video? You need to create multiple renditions for it to be adaptive.
Here is a nice guide: https://www.tothenew.com/blog/apple-http-live-streaming-hls/ Some more info: https://www.tothenew.com/blog/adaptive-video-streaming-hls/ https://developer.apple.com/streaming/