VideoCore-Inactive icon indicating copy to clipboard operation
VideoCore-Inactive copied to clipboard

Authentication in RTMP

Open dinesh547 opened this issue 9 years ago • 9 comments

Seems like there is no authentication support has been implemented in current code.

dinesh547 avatar Sep 28 '15 05:09 dinesh547

There is not, but if somebody wants to implement it that would be a great PR.

jgh- avatar Sep 28 '15 16:09 jgh-

@jgh- , I am trying to implement the same but there are no much documentation available for RTMP. Do you know any document which details the authentication in RTMP and RTMP as whole as well..

dinesh547 avatar Sep 29 '15 06:09 dinesh547

Pretty sure you can just use rtmp://user:password@host
It works for FFMpeg atleast

shubhank008 avatar Sep 29 '15 10:09 shubhank008

@shubhank008 as per i know it works only for ffmpeg (or applications using ffmpeg) not for videocore.

dinesh547 avatar Sep 29 '15 11:09 dinesh547

Not really, when I was developing the RTMP stuff originally I was mainly going by the "spec" that Adobe released a few years back.

jgh- avatar Sep 29 '15 15:09 jgh-

Hi @jgh- i am trying to implement the authentication in your code. But i am facing some issues while sending the data.. What i am doing is checking if I am getting an authentication failure message in the
void RTMPSession::handleInvoke(uint8_t* p) inside RTMPSession.cpp class. The Authentication failure message comes as in the handleInvoke function so i checked if (command == "_error") and than i am checking inside the if statement std::string code = parseStatusCode(p + 3 + command.length()); if(code == "NetConnection.Connect.Rejected") { //Authentication failure sendCallAuthenticationRequest() }

Now when I send the second connect request from inside this function i never receives any response. and i am not sure why it is happening.. (Code is not in pure objective c and i am not very good in c++ OOPS). Can you help me in this.. Right now i am doing authentication for adobe (authmod=adobe)..

dinesh547 avatar Sep 30 '15 10:09 dinesh547

@dinesh547 can you give more details to me, I can help to make the authentication feature. I am now have no idea about it.

keithcml avatar Jan 29 '16 05:01 keithcml

Not sure if it's bad form but just want throw out there that I moved away from this project due to the lack of authentication. However I just had a ticket closed on another library that now correctly handles authentication Akamai which we use https://github.com/shogo4405/lf.swift/issues/55. If you need authentication might look into it.

triwav avatar Jun 07 '16 20:06 triwav

ANybody who needs to implement authentication can refer to ffmpeg code. The authentication code is pretty much clear there.

dinesh547 avatar Jun 08 '16 05:06 dinesh547