Anonymous User

Anonymous user is a built-in user account, which has been designed for unauthorized access to video streams via HTTP API - a very basic example of Macula API usage.

Briefly, here is the procedure that enables you to get video via link:

  1. Enable Anonymous user

  2. Grant them permission(s) to view live channel(s)

  3. Enable resource IDs in the Macula Console settings

  4. Look up server IP and port, and channel ID to form the link

The procedure is described in more details below.

The anonymous user is disabled by default and does not have any permissions. In order to allow HTTP access:

  • enable the anonymous user: double-click him in the user list, mark him as active, then save;

  • add the View live video permission for this user in the properties of the target channel(s).

Now you can use a short link to receive live video feed over HTTP from your configured channels without authorization.

The link can be embedded, for example, into your own webpage to provide 'Live Cam' functionality.

HTTP link is built as follows:

  • IP:PORT/publicLive/<channel_id>/mainStream

where

  • IP is server IP address or hostname,

  • PORT is server HTTP port (8080 by default),

  • <channel_id> is internal channel identifier, which can be looked up in Macula Console when IDs are enabled in the application settings.

Example: 192.168.1.83:8080/publicLive/184/mainStream

In order to see the channel identifiers in Macula Console, go to the application settings via main menu button in the upper-right-hand corner and choose Settings. In the dialog box, enable the Show object IDs option and save.

To add custom permissions to Built-in Anonymous user:

  1. Go to Configuration -> Users -> Anonymous and double-click on it or click the Edit button.

  2. Select Resources from the left menu and use the Permissions tab as with any other user.

Read more on how to manage Permissions.

Last updated