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

Cannot connect to Mux RTMP secure server URL #4

Closed
DaleBeckles opened this issue Aug 5, 2022 · 3 comments
Closed

Cannot connect to Mux RTMP secure server URL #4

DaleBeckles opened this issue Aug 5, 2022 · 3 comments

Comments

@DaleBeckles
Copy link

DaleBeckles commented Aug 5, 2022

Describe the bug

Thank you for all of your work on your excellent product.

I use your example Flutter code in debug mode to try to connect via an iPhone 11 to a Mux RTMP server secure URL e.g. rtmps://global-live.mux.com:443/app/MUX STREAM KEY and the response after attempting to connect is always "NetConnection.Connect.Closed". I test the same URL on the iPhone using Larix and it works fine.

To Reproduce

  1. Use your example Flutter code
  2. Edit pubspec.yml to use haishin_kit 0.9.1
  3. Use a Mux secure URL e.g. rtmps://global-live.mux.com:443/app/MUX STREAM KEY
  4. Observe that is does not connect

Expected behavior

To connect and broadcast

Version

haishin_kit 0.9.1

Smartphone info.

  • Device: iPhone 11
  • OS: iOS 15.5

Additional context

No response

Screenshots

No response

Relevant log output

No response

@Kodam-zz
Copy link
Contributor

Kodam-zz commented Oct 5, 2022

@DaleBeckles I hope you could solve this, but for others the following solution may be helpful (based on the sample):
At first, connect to the mux app's url and when the connection is successfully established, send the stream id to the stream

_connection.connect("rtmp://global-live.mux.com:5222/app/");
connection.eventChannel.receiveBroadcastStream().listen((event) {
        switch (event["data"]["code"]) {
          case 'NetConnection.Connect.Success':
            _stream.publish(MUX_ID);
            break;
        }
      });```

@kamal-github
Copy link

I believe the MUX_ID is stream id (sensitive data, according to mux). I tried that it is not sending any data to the Mux server.

@alvaroben
Copy link

@DaleBeckles I hope you could solve this, but for others the following solution may be helpful (based on the sample): At first, connect to the mux app's url and when the connection is successfully established, send the stream id to the stream

_connection.connect("rtmp://global-live.mux.com:5222/app/");
connection.eventChannel.receiveBroadcastStream().listen((event) {
        switch (event["data"]["code"]) {
          case 'NetConnection.Connect.Success':
            _stream.publish(MUX_ID);
            break;
        }
      });```

this work for me.

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

5 participants