shogo4405 / HaishinKit.swift

Camera and Microphone streaming library via RTMP and SRT for iOS, macOS, tvOS and visionOS.
BSD 3-Clause "New" or "Revised" License
2.75k stars 610 forks source link

Support Red5Pro Authentication #445

Closed chrigi closed 5 years ago

chrigi commented 6 years ago

I am using Red5Pro as a streaming server and wanted to use their included Auth plugin: https://www.red5pro.com/docs/server/authplugin.html

This works fine if I pass the username & password using the query parameters. I would like to avoid passing them in the URL. For RTMP this should be possible according to this documentation: https://www.red5pro.com/docs/server/authplugin.html#client-authentication

var nc:NetConnection = new NetConnection();
nc.addEventListener(NetStatusEvent.NET_STATUS, onStatus);
nc.connect("rtmp://localhost/myapp", "testuser", "testpass");

I tried this with HaishinKit like so: rtmpConnection!.connect("rtmps://USERNAME:PASSWORD@host.server.com:8443/live") But that does not seem to work.

It would be great if HaishinKit could be extended to also support auth without query parameters.

IssueHuntBot commented 5 years ago

@issuehuntfest has funded $20.00 to this issue. See it on IssueHunt

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.