Posts by GonzaCass

    Lol I dont know why I made a reply and it get deleted.


    Well, here we go again:

    Thanks for your reply Lord-Grey. I was able to send correctly the JSON and I tested with a youtube video and it works and without any latency!


    Unfortunately, I made this with web app template on Tizen Studio and doing a lot of research it seems like I cant capture content outside this webapp. So, I'm doing more research now on how to capture the content of the screen even with the app closed, the real problem.


    Those flatbuffers are another way from sending the content right? I'll take a look to see if I can use those.


    In case that someone wants to try what I achieve, here is the code, I recommend to run it in Tizen Studio since I made it there.

    main.js:


    We are trying to implement a screen capture functionality on a Samsung TV with Tizen OS and send the captured image to Hyperion using WebSocket. Despite multiple attempts, we are encountering issues with the JSON data validation on the Hyperion server. Here are the steps and problems we've faced:

    1. Capture Screen on Tizen TV:
      • We are capturing a specific area of the screen using a <canvas> element.
      • We convert the canvas content to a Base64 encoded PNG image.
    2. Send Image to Hyperion:
      • We establish a WebSocket connection to the Hyperion server.
      • We send the image data along with the required parameters (width, height, imagedata, etc.) as a JSON object.
    3. Errors Encountered:
      • The Hyperion server returns errors indicating issues with the JSON data validation.
      • Specifically, the errors mention that height and width have "no schema definition" and imagedata is expected to be a string.
      • When we correct these, we get an error saying: "Size of image data does not match with the width and height".

    Current JSON Payload

    Here is an example of the JSON data we are sending to Hyperion:

    Hyperion Server Logs

    The logs on the Hyperion server show the following errors:

    Code
    2024-05-23T02:09:04.887Z [WEBSOCKET] (ERROR) While validating schema against json data of 'JsonRpc@::ffff:192.168.88.101':[root].height: no schema definition
    2024-05-23T02:09:04.887Z [WEBSOCKET] (ERROR) While validating schema against json data of 'JsonRpc@::ffff:192.168.88.101':[root].width: no schema definition
    2024-05-23T02:09:04.887Z [WEBSOCKET] (ERROR) While validating schema against json data of 'JsonRpc@::ffff:192.168.88.101':[root].format: Unknown enum value (allowed values are: ["auto"])
    2024-05-23T02:09:04.887Z [WEBSOCKET] (ERROR) While validating schema against json data of 'JsonRpc@::ffff:192.168.88.101':[root].imagedata: string expected

    When we fix the above errors, we encounter another error:

    Code
    "Size of image data does not match with the width and height"

    Here is the current JavaScript code we are using to capture the screen and send the image to Hyperion:


    Need assistance with the following:

    1. Correcting the JSON schema to match what Hyperion expects.
    2. Ensuring that the image data size matches the specified width and height.

    Any guidance or examples would be greatly appreciated!


    Thanks in advance!

    Hello, i have piccap working with hyperhdr-webos working. But i dont know why it has some kind of 'lag' (0.5ms) when displays the colors.


    My LG info is:

    "board_type": "K5LP_ATSC",

    "hardware_id": "HE_DTV_W19P_AFADATAA",

    "product_id": "43UM7360PSA",

    "core_os_release": "4.9.7-17",

    "webos_manufacturing_version": "05.30.40"


    And my hardware is a esp8266.


    When i use hyperion from my pc and use the capture monitor config, the lights works like a charm.

    Also if i try to connect the piccap to my pc hyperion, it detect as flatbuffer server (i know this is ok) but the lag is still there.


    Any suggest?


    Thanks, regards.


    nvm, i solved it through ethernet cable on the tv. Seems i have some wifi issue.


    Thanks!