react-native-google-cast icon indicating copy to clipboard operation
react-native-google-cast copied to clipboard

Can not cast some URL

Open nguyenthanhtruongntt85 opened this issue 9 months ago • 1 comments

Cast fail because exception when call client.loadMedia

Example

  1. https://ythls.armelin.one/channel/UCwALNfmBX8f2XKt2xe4PMBA.m3u8
  • Play ok with with react-native-video
  • Cast fail and receive error is "Error: Media failed to load"
    client.loadMedia({
      mediaInfo: {
        contentUrl:'https://ythls.armelin.one/channel/UCwALNfmBX8f2XKt2xe4PMBA.m3u8'
       },
      },
    }).catch((error) => {
         //error is "Error: Media failed to load"
    })
  1. https://content.uplynk.com/channel/ff809e6d9ec34109abfb333f0d4444b5.m3u8
  • Play ok with with react-native-video
  • Cast ok

Question Why are some URLs can't cast, thanks!

Using version "react-native-google-cast": "4.8.0", "react-native-video": "6.1.2", "react-native": "0.71.13",

nguyenthanhtruongntt85 avatar May 30 '24 09:05 nguyenthanhtruongntt85