Can not play IPTV (...
 
Notifications
Clear all

Welcome to bestrestream iptv forum• İp Tv Forum • IPTV community • IPTV Forum Site

If email confirmation not received check spam box in your email.

  • Everyone is invited! My iptv forum is for everyone, new and advanced user alike!
  • Searching is key! Before you post a question, use the iptv forum search feature to determine whether your topic has already been covered.
  • Do not start flame wars! If someone has engaged in behavior that is detrimental to the discussion -- spamming, harassment, etc -- report the post and we'll take a look.
  • Join us now to access all our features. Once you register and login, you will be able to create topics, reply to existing topics, give reputation to your other members, get your own private messenger, and much more. It's also fast and completely free, so what are you waiting for?

Can not play IPTV (live) streams on IOS using expo-av and React Native

1 Posts
1 Users
0 Reactions
104 Views
SAMUEL
(@samuel)
Posts: 50
Estimable Member
Topic starter
 

I have created an IPTV player app in Expo and React Native which plays live streams (channels) from across the world. I am using Video module from expo-av to play these videos. The live streams play fine on android devices but fail with error  The server is not correctly configured. - The AVPlayerItem instance has failed with the error code -11850 and domain "AVFoundationErrorDomain". on IOS. Sometimes the video just does not play and no exception is thrown either.

Here is a sample link to a channel's live stream:  http://line.xyz.live/7531601783/8396847476/193257

I have tried adding the following lines to info.plist file but nothing seems to work for me.

<key>NSAppTransportSecurity</key>
    <dict>
      <key>NSAllowsArbitraryLoadsForMedia</key>
      <true/>
    </dict>
 

1 Answer

 

If you are using non-secure url, then you have add the package as domain exception like below:

<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
    <key>NSExceptionDomains</key>
      <dict>
        <key>org.reactjs.native.example</key>
        <string></string>
      </dict>
</dict>

Another reason is to check the video type. Another type rather then HLS is video/mp2t, then Expo-av doesn't support it. You have to use react-native-video package or vlc-player.

 
Posted : 08/07/2024 3:20 pm
Share:
Scroll to Top