URL-based authentication for Http streaming to embed video in HTML
AnsweredI've setup nx meta on my local server and want to embed http streaming video in my angular application.
Here's my typescript code:
const username = 'admin';
I'm having two problems at the moment
1. url-based authentication is not working as in the browser when I try to play the video, it prompts me with a login popup to enter my crendentials. However, even putting in my username and password manually doesn't allow me to view the video. I've found that I'll have to login through http://localhost:7001 (with the same credentials), then when I go to my application I can view the video without the auth error.
2. I am not able to rewind/fast forward the video while it is playing (I can only restart it), and it doesn't show the actual timestamp, is there a better way to embed the video such that I can rewind/fast forward while it is playing and view the actual timestmap?
Supporting docs:
https://meta.nxvms.com/docs/developers/knowledgebase/198-how-to-embed-video-from-the-vms-on-a-website
https://meta.nxvms.com/docs/developers/knowledgebase/278-how-does-authentication-work
Thanks,
Grace
-
Hi Grace Gan,
For the first question, it is likely you need to redirect the authentication.
Probably this post can help you.For the RE/FF of the video, it is likely you need to implement functions individually.
There are several framework or libraries you can use, probably using those libraries might be helping you to have RE/FF on the browser.Hope this helps.
-
Hi Ichiro,
Thanks for your response, I don't quite get what you mean by redirect the authentication, do you mean by redirecting the user to the login page then redirecting them back to my application?
I'm not sure why the url-based authentication wouldn't work though as it's designed for direct link access like this isn't it. I also played around a bit more and noticed that it seems like the authentication works if I use a cloud user credentials but not for local user, do you know why?
Please sign in to leave a comment.
Comments
3 comments