0

Use a local JSON file in my javaScript

Hey hey,
I have a local file JSON file. I want to use that JSON file in JS with

fetch("data.json")
 
That doesn't work because of this error from the console inside the player:
[ 3238.524] [ERROR] [source file:///HtmlSite1//scripts/dynamicContent.js:3]: Fetch API cannot load file:///HtmlSite1//data.json. URL scheme "file" is not supported. [ 3238.525] [ERROR] [source file:///HtmlSite1//scripts/dynamicContent.js:110]: Fehler beim Laden der JSON-Daten: TypeError: Failed to fetch 
 
I tried to upload that file by using the "Support Content" section in BrightAuthor. But in the end it did not work.
 
Can anybody help?
Thanks 

1 comment

  • 0
    Avatar
    Janet Wolf

    Hey hey,
    I have a local file JSON file. I want to use that JSON file in JS with Patient Portal Summit Health

    fetch("data.json")
     
    That doesn't work because of this error from the console inside the player:
    [ 3238.524] [ERROR] [source file:///HtmlSite1//scripts/dynamicContent.js:3]: Fetch API cannot load file:///HtmlSite1//data.json. URL scheme "file" is not supported. [ 3238.525] [ERROR] [source file:///HtmlSite1//scripts/dynamicContent.js:110]: Fehler beim Laden der JSON-Daten: TypeError: Failed to fetch 
     
    I tried to upload that file by using the "Support Content" section in BrightAuthor. But in the end it did not work.
     
    Can anybody help?
    Thanks 
     
    Hello,

    It looks like you're seeking help with making a BrightSign player play directly from a media card. Here are some steps that might help you:

    Prepare Your Media Card: Ensure your media card (SD or USB) is formatted correctly and contains the media files you want to play.

    Create a Playlist: Use BrightAuthor or BrightAuthor:connected to create a playlist. This software allows you to organize and schedule your media files.

    Publish to Media Card: Publish your playlist to the media card. In BrightAuthor, you can select the option to publish to an SD card or USB drive.

    Insert Media Card: Insert the media card into your BrightSign player. The player should automatically detect the card and start playing the content.

    Hope this helps!

    Best regards,
    Janet

Please sign in to leave a comment.