Open the Camera Resource in a full screen view inside Nx Witness

In Progress

Comments

1 comment

  • Avatar
    Sergey Yuldashev

    Hello Jenifer,

    Based on the methods used in the attached code snippet you are trying to utilize the In-Client JS API.
    Sorry, I had to make this disclaimer because Nx Platform offers different types of the devtools so I am just trying to resolve a potential confusion for the people checking this public thread out in future.

    Unfortunately right now there is no way to full-screen the item on the layout utilizing this API set.

    So far this could be done only by one of two actions:

    1. Create an Event "On Generic Event" -> "Set item to full screen"
    2. Modify the created in step 1 event on the fly by utilizing POST /ec2/saveEventRule api call signing it with the access token received from the JS API replacing values for the action parameters(layout id and camera id)
    3. Send the generic event to the server based on the necessity to trigger the rule modified in step 2

    Although we do agree that setting items to fullscreen would be a reasonable expansion for the JS API. So I am going to add it to the future roadmap.

     

    0
    Comment actions Permalink

Please sign in to leave a comment.