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

Stream authentication question #3

Closed
lleoll1 opened this issue May 24, 2019 · 8 comments
Closed

Stream authentication question #3

lleoll1 opened this issue May 24, 2019 · 8 comments

Comments

@lleoll1
Copy link

lleoll1 commented May 24, 2019

I know that this is an old project but I have already tried to analyse the library but I can't get stream authentication working. Does anyone know the syntax I need to use to pass a username and password. Thanks in advance !

@WrathChaos
Copy link
Owner

Hello @lleoll1,
Wow, 2 years passed I made this library :) Fortunately, I'm still maintain the project. I've never tried to work with authentication MJPEGStream. I did not have a chance. Can you provide me a test so I can help you :)

@WrathChaos
Copy link
Owner

@lleoll1 This library is heavily based on another non working one. But still it's README could be useful. Can you try this:
https://github.com/freedom27/MjpegStreamingKit#authentication

If it works, I will update the README ASAP

@WrathChaos
Copy link
Owner

I closed it for now, if you still have the same problem please re-write it and I will re-open the issue :)

@lleoll1
Copy link
Author

lleoll1 commented Jul 2, 2019

I have tried to useNSURL(string:"http://username:password@mjpeg.streaming.url/movie.mjpeg") which was mentioned in the readme that you sent, however when I use it in the Viewcontroller instead of the line let url = **URL(string: "http://---------")** I get lots of errors about using NSURL instead of URL. Sorry for the very slow reply.

@WrathChaos
Copy link
Owner

@lleoll1,
NSURL and URL are basically the same things. URL is just a renamed from Apple. Can you share me with source code with the errors?

@lleoll1
Copy link
Author

lleoll1 commented Jul 21, 2019

I am just working in the example project that came with the library, but here it is with some changes anyway.

@WrathChaos
Copy link
Owner

@lleoll1 I'm going to try this example when I'm available :)

@WrathChaos
Copy link
Owner

@lleoll1 I could not download the project, I have no idea why. Can you create a simple repo for me?

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

No branches or pull requests

2 participants