Skip to content

--rtsp-udp causes crash on iPhone 15 / iOS18 #258

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jamgrill opened this issue May 20, 2025 · 1 comment
Open

--rtsp-udp causes crash on iPhone 15 / iOS18 #258

jamgrill opened this issue May 20, 2025 · 1 comment
Labels
question Further information is requested

Comments

@jamgrill
Copy link

I am trying to use react-native-vlc-media-player to play a low-latency (~300ms) RTSP stream in a react native app. My IP camera defaults to TCP, but can be forced into UDP mode, and I have several working examples of streaming from the same camera using UDP in 100ms using various clients. In exploring how to replicate this in react-native-vlc-media-player, I used the '--rtsp-udp' flag in initOptions like this:

      <VLCPlayer
        style={styles.player}
        videoAspectRatio="16:9"
        source={{ 
            uri: "rtsp://url",
            initOptions: [
                '--network-caching=100',     
                '--live-caching=100',        
                '--clock-jitter=0',          
                '--clock-synchro=0',         
                '--rtsp-udp',             // <<this causes the crash
                '--rtsp-port=554',
                '--rtp-client-port=8000',
                '--codec=avcodec',
                '--skip-frames', 
                '--drop-late-frames',
                '-vv'
              ]
        }}
        />

Initializing the player with the '--rtsp-udp' flag immediately causes the app to crash. I'm using the expo development client and an iPhone 15 running 18.4.1, and have experienced no other bugs so far! Will continue to post findings here.

I have set NSLocalNetworkUsageDescription in Info.plist and added the Multicast capability/entitlement in Xcode.

@cornejobarraza
Copy link
Collaborator

Thanks for your report. Are you getting any errors in your terminal or development build?

Have you tried debugging why the crash is happening on your device?

https://docs.expo.dev/debugging/runtime-issues/

@cornejobarraza cornejobarraza added the question Further information is requested label May 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants