Displaying text feedback from an HTTP request
I have a Matrox Monarch HD recording device which uses HTTP commands for operation. It can also provide feedback, however I am not having much luck at getting this feedback to display on a text item on a page. I tried putting the commands in the 'feedback' section of the driver, however discovered the will not work for HTTP Custom, only JS methods will.
The syntax for sending a command is as follows:
/Monarch/syncconnect/sdk.aspx?command=<command>
This works fine for starting and stopping recordings, however I really would like to show feedback on my control panel to give my end users confidence that recordings are actually happening, or alert them if there is an issue.
/Monarch/syncconnect/sdk.aspx?command=GetStatus
will return:
RECORD: READY/ON, STREAM: DISABLED, NAME:DIS-REC-1
I want to be able to have the 'RECORD: READY/ON' section displayed as text on a page, with the remainder of the string hidden.
In addition, when you start a recording:
/Monarch/syncconnect/sdk.aspx?command=StartRecording
it will return:
SUCCESS/FAILED
Could someone advise the JS code to make this work, as I am able to read code but not write it.
Thank you!
Сервис поддержки клиентов работает на платформе UserEcho
pls try this
http_request_parse.irpz
Hello
I am having luck with this code! What's the best way to have it automatically 'read' the device when I enter a page? Should I add it to a button, or will it be automatically called by iRidium?
It is better to use the listener of page opening, like this:
Thanks, so my code should look like this (i.e. when I enter the page, it will automatically read/request the state from the device)
http_request_parse.irpz
Thank you! Will give that a go. I am not very good at coding, but can read it.
Thank you for the responses - I did have it briefly working yesterday (I am not sure how) but it's refusing to work for me today. Could I send you my project file - maybe this will be easier as I already have the driver and text items set up?
Hi, on the forum we can share the code fragments that could be useful for all of us, but if we just write a specified code instead of you it will take really much time, support team cannot do it, sorry.
If you post the project here we or somebody from community will try to help. Or maybe it is better to contact one of certified specialists.
Thank you for the response. I am working with JamWare to resolve this issue.