Skip to content
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

Not able to stream RTSP on IOS. EXC_BAD_ACCESS when run #208

Open
CVHOANG-coder opened this issue Jun 24, 2024 · 18 comments
Open

Not able to stream RTSP on IOS. EXC_BAD_ACCESS when run #208

CVHOANG-coder opened this issue Jun 24, 2024 · 18 comments

Comments

@CVHOANG-coder
Copy link

I am trying to live stream using RTSP, the url is wokring fine in the actual media player but it's not working and show error: EXC_BAD_ACCESS when trying to stream it using VLCPlayer. Both simulator and real device

image

@GustavoBonfimS
Copy link

any solution ?

@GustavoBonfimS
Copy link

I faced this issue building in an Mac M1. The app crashes on simulator but works fine in real device.
The temporary solution for me was building with different arch using:
yarn ios --simulator "iPhone 15" --destination arch=x86_64

@maddisonbruckelmyer01
Copy link

I'm facing this error as well, is there any more solutions to it?

@CVHOANG-coder
Copy link
Author

CVHOANG-coder commented Aug 1, 2024

replace special symbol in url path. Example '@' to '%40'. valid url : encodeURI(), encodeURIComponent(). I fix it

@maddisonbruckelmyer01
Copy link

That doesn't seem to work for me

@hakanakin
Copy link

I faced this issue building in an Mac M1. The app crashes on simulator but works fine in real device. The temporary solution for me was building with different arch using: yarn ios --simulator "iPhone 15" --destination arch=x86_64

npx react-native run-ios --simulator="iPhone 15 Pro" --destination arch=x86_64 that's work for me to thx

@tunm1228
Copy link
Contributor

replace special symbol in url path. Example '@' to '%40'. valid url : encodeURI(), encodeURIComponent(). I fix it

Thank, I used it and it stopped crashing

@roshansinghg
Copy link

valid url : encodeURI(),

where to do this??

@tunm1228
Copy link
Contributor

encodeURIComponent

If your account or password contains special characters, use encodeURIComponent

@roshansinghg
Copy link

replace special symbol in url path. Example '@' to '%40'. valid url : encodeURI(), encodeURIComponent(). I fix it

I am just getting rtmp live streaming link from backend like
uri: "rtmp://a704d90f9059140b6aa1bc1e9a918f45-1788519902.ap-south-1.elb.amazonaws.com:1935/live/4db23812-6918-49ef-80ee-d02e64d6a6fb",
working fine for iOS 17.2 and lower but crashing above that.

@tunm1228
Copy link
Contributor

replace special symbol in url path. Example '@' to '%40'. valid url : encodeURI(), encodeURIComponent(). I fix it

I am just getting rtmp live streaming link from backend like uri: "rtmp://a704d90f9059140b6aa1bc1e9a918f45-1788519902.ap-south-1.elb.amazonaws.com:1935/live/4db23812-6918-49ef-80ee-d02e64d6a6fb", working fine for iOS 17.2 and lower but crashing above that.

Your path has no special characters, so this is not the case I encountered.Please learn more.

@diegods-ferreira
Copy link

diegods-ferreira commented Aug 19, 2024

I'm facing the same problem. Enconding the URL as @tunm1228 sugested did not work for me. The app stops crashing but the player is not able to play the video. My RTSP camera stream URL is "rtsp://admin:econdos123@192.168.1.123:554/Streaming/channels/101".

I've created a sample repository with the problem occurring: https://github.com/diegods-ferreira/react-native-vlc-media-player-ios-crashing

@fredrikburmester
Copy link

I'm trying to stream HLS and I get the same crash.

@hakanakin
Copy link

hakanakin commented Aug 27, 2024

Hey, if you’re using <TouchableWithoutFeedback></TouchableWithoutFeedback> and your app crashes, you should replace it with a different option.

@fredrikburmester
Copy link

I can say that I'm not using TouchableWithoutFeedback and it is still crashing for me.

@diegods-ferreira
Copy link

I was able to solve my problem with RTSP streaming. It turns out I had to request for Apple's Multicast Networking Entitlement permission so my app could stream. Apparently this had been going since iOS 17 and I just now realised. But once I got permission for multicast networking my app stopped crashing.

For anyone who wants to know how to request this permission, here it is: https://forums.developer.apple.com/forums/thread/663271?answerId=639455022#639455022

@chienvuvan99
Copy link

chienvuvan99 commented Sep 5, 2024

I am trying to play a live video with an .FLV file, but it also encounters the same error as mentioned above. I have tried the solutions above, but none of them worked. I am using React Native 0.72.14.

@diegods-ferreira
Copy link

@chienvuvan99 I did not try using this lib for .flv files so I wouldn't know if it would work for them, I'm sorry. As I said, my solution solved my problem with RTSP streaming =/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants