Skip to main content

Video Security and Privacy as you like it

Comments

4 comments

  • Bane

    You should be able to use the same in the JS. I would suggest however creating client side auth tokens for public facing setups.

    For just playing around with it and to make setup easier, then using server side is best option (easy to create and maintain).

    Now if your server-auth token is 1234567890 then the way to use it should be something like this:

    var recorder = new ZiggeoApi.V2.Recorder({
    element: document.getElementById("placeholder_element"),
    attrs: {
    responsive: true,
    theme: "modern",
    themecolor: "red",
    'server-auth': '1234567890'
    }
    });

    recorder.activate();

    For create you can also simply use:

    "create": {
    "all": true
    }

    This way you are saying that you allow creation of videos without any specific requirements.

    Do let me know how it goes for you.

    1
  • Gavin King (plumpNation)

    In regards to the auth token generation in the dashboard of the application.

    If I set the 

    1. video creation
    2. video edits/updates
    3. video playback
    4. video removal

    to require auth, then use the dashboard to create a server auth token with the grants like so

    {
       "grants": {
          "create": {
             "session_owned": true
          },
          "update": {
             "session_owned": true
          }
       },
       "session_limit": "1"
    }

    Is it possible to use this auth token in the browser JS code?

    From what I can gather, it should be provided in the ZiggeoApi.V2.Recorder attrs['server-auth'], but I still only get Forbidden 403 in the recorder when pressing the record button.

    Thanks for your assistance.

    0
  • Gavin King (plumpNation)

    I had success with the server-auth, and the grant example you provided. For some reason I had wrapped the grants in another object level like this.

     

    {
        "grants: {
    "create": {
    "all": true
    }
    }
    }

     

    Thanks for sorting that out.

    0
  • Bane

    Glad to hear that it is sorted out Gavin :)

    0

Please sign in to leave a comment.