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

Video streaming not working on iPhone #16

Open
graperaisin1 opened this issue Jun 25, 2020 · 6 comments
Open

Video streaming not working on iPhone #16

graperaisin1 opened this issue Jun 25, 2020 · 6 comments

Comments

@graperaisin1
Copy link

Running the sample on a physical iPhone 6S, and the video streaming does not work. I am trying to stream to an RTMPS URL online and the livestream simply does not appear. No errors appear in the console.

Android works just fine.

Can anyone advise?

@graperaisin1
Copy link
Author

Xcode error logs generated when starting a video stream on iPhone:

Event{type: Name(rawValue: "rtmpStatus"),bubbles: false,data: Optional(Optional(["data": Optional([]), "level": Optional("status"), "code": Optional("NetConnection.Connect.Success"), "description": Optional("Connection succeeded"), "objectEncoding": Optional(0.0)])),target: Optional(HaishinKit.RTMPConnection)}
Event{type: Name(rawValue: "rtmpStatus"),bubbles: false,data: Optional(Optional(["code": Optional("NetStream.Publish.Failed"), "clientid": Optional("ASAICiss"), "description": Optional("Error publishing stream: code=9, msg=ERR, BAD_AUTH, URL=Domain: live-api-s.facebook.com, url: /rtmp/<stream_id>, sendPublishError=true"), "level": Optional("error")])),target: Optional(HaishinKit.RTMPConnection)}
2020-25-06 13:01:24.978 [Warn] [com.haishinkit.HaishinKit] [RTMPConnection.swift:380] on(status:) > 
Event{type: Name(rawValue: "rtmpStatus"),bubbles: false,data: Optional(["description": Optional(""), "level": Optional("status"), "code": Optional("NetConnection.Connect.Closed")]),target: Optional(HaishinKit.RTMPConnection)}

Starting the same exact stream works fine on Android.

@Piyushhhhh
Copy link

Try to wrap your url in quote for ios example :- url = Platform.isIOS
? '"${url}"'
: url;

@pinkfish
Copy link
Owner

pinkfish commented May 19, 2021 via email

@Piyushhhhh
Copy link

Also @pinkfish videostreaming is not working on ios same code works for android .
Doesn’t throw any errors or warning get streaming stats just return videoframe and audio frame null

@Piyushhhhh
Copy link

Is this with the code directly out of the repro? Or from the pub repro? I made changes to update to null safety, but not checked it works correctly on iOS yet ;). Which is why it is not published.

This is not a null safety bug in ios(swift) sometimes you need to wrap your rtmp url in a additional quote or else it will return bad auth error

@pinkfish
Copy link
Owner

pinkfish commented May 19, 2021 via email

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

3 participants