How to pull live stream on browser via cloud proxy
AnsweredHi,
I want to pull webm live stream from server via cloud url.
Objective is to embed the live feeds on BI Dashboards.
-
Hi,
Please, see our example on GitHub.
0 -
Hi Andrey,
This approach where the auth key is generated has a validity only for 1 day which defeats it purpose.
Can we ammend the api as if the the customer defines on when the auth token expires?
Refreshing the token on a daily basis is practicaly challenging when the goal itself is to embed.
0 -
Hi,
> Can we ammend the api as if the the customer defines on when the auth token expires?
No, as these are the security requirements.
When the auth key expires, the Server will respond with "401 Anauthorized" according to waht the RFC rfc2617 states in the "Digest Operation" section https://datatracker.ietf.org/doc/html/rfc2617#section-3.3
Alternatively, the server may return a 401 response with a new nonce value, causing the client to retry the request; by specifying stale=TRUE with this response, the server tells the client to retry with the new nonce, but without prompting for a new username and password.
In this case, the existing video session won't be closed.
You could refresh the auth key for opening new sessions either by prompting for a username and password, and or by keeping creds saved in the page code.
Alternatively, you could use oauth scheme, with which you can issue the access_tokens once those are needed using the long-living
refresh_tokenaccording to oauth specification.For more explanations, please refer to https://meta.nxvms.com/doc/developers/api-tool/main?type=1&system=4
Please take a look at code examples in our GitHub repo.
0
Please sign in to leave a comment.
Comments
3 comments