0

roVideoMode Screenshot documentation

I looked into the newly documented Screenshot function. While I can make it work, the documentation seems incomplete or misleading. It states that the file will be written to "the temp:/ directory". This is the only place in the docs that this directory is mentioned, as far as I can tell. It doesn't state where it is located. I assumed this directory would be "SD:/temp/". However, when using the command with the following parameters

screenShotParams = {
filename: "SCREEN.jpg"
Width : vm.GetOutputResX()
Height : vm.GetOutputResY()
filetype: "JPEG"
Async: 1
}

the screenshot gets written to the root level of the SD card, not to any "temp" directory. Hence, it seems that the "temp" directory defaults to the root of the SD card. The only way I could make it write to a temp directory on the SD card was to change the parameters to the command to the following

screenShotParams = {
filename: "SD:/temp/SCREEN.jpg"
Width : vm.GetOutputResX()
Height : vm.GetOutputResY()
filetype: "JPEG"
Async: 1
}

Notice that I specify the location of the file as a full path. This indeed puts it into the temp direcory. The doc for the Screenshot function doesn't state that absolute path name can be used. But as long as the behavior doesn't change here, I'm good for now. But you may want to clarify the docs here a bit.

-JM

3 comments

  • 0
    Avatar
    Lyndon

    I forwarded your input to our technical writer

  • 0
    Avatar
    Ilya Igonkin

    I'm having the same question. Can you please answer here or update the documentation ( http://docs.brightsign.biz/display/DOC/roVideoMode#roVideoMode-Screenshot(parametersAsroAssociativeArray)AsBoolean ).

    Also it's unclear what happens if the file already exists. Will it be overwritten or return an error?

    Thanks.

  • 0
    Avatar
    Bartosz from Revolve

    Greetings.

    Could you provide more details how to force device to making screenshot from node application? If not I'm curious how to prepare bright sign script to making screenshot every 30 seconds. Thanks.

     

    Regards.

Please sign in to leave a comment.