TheWidlarzGroup / react-native-video

A <Video /> component for react-native
http://thewidlarzgroup.github.io/react-native-video/
MIT License
7.15k stars 2.88k forks source link

[BUG]: onBandwidthUpdate does not work on HLS iOS. #4153

Open anthonychemaly opened 1 week ago

anthonychemaly commented 1 week ago

Version

6.5.0

What platforms are you having the problem on?

iOS

System Version

17.4

On what device are you experiencing the issue?

Simulator

Architecture

Old architecture

What happened?

onBandwidthUpdate does not work on HLS iOS. It does work on mp4 files.

Reproduction Link

repository link

Reproduction

Use onBandwidthUpdate on a m3u8 file link as provided by the example in the repo: https://rbmn-live.akamaized.net/hls/live/590964/BoRB-AT/master_928.m3u8

github-actions[bot] commented 1 week ago

Thank you for your issue report. Please note that the following information is missing or incomplete:

Please update your issue with this information to help us address it more effectively.

Note: issues without complete information have a lower priority

freeboub commented 1 week ago

I reproduce the issue, but I don't have any clue on the issue now :/ The handler for this value is this one:

        NotificationCenter.default.addObserver(_handlers,
                                               selector: #selector(RCTPlayerObserverHandlerObjc.handleAVPlayerAccess(notification:)),
                                               name: AVPlayerItem.newAccessLogEntryNotification,
                                               object: player?.currentItem)

But I confirm it is not called on this video