0

HD810 & USB cardreader & special playlist script



Hi there,

First post for me <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
I'm having some problems with scripting and I have a question about an external USB cardreader to use it with the HD810 or HD2000.
What I need to do is making a playlist for the player with 4 files. But when sticking in a USB cardreader in the player the script must find the 5th file on the USB cardreader and place it in the playlist as the 5th file. But when disconnected it just plays the 4 files. Does the player sees both as one drive or do I need to use different paths to let it find the file on the USB cardreader?

I hope someone can help me out with this. Also my scripting experience with Brightscript isn't very good yet... but i'm learning.

I'm using the autorun.bas and a autoplay.bsp file.

It doesn't seems to work at all.

Regards,
Erik

4 comments

  • 0
    Avatar
    RokuLyndon


    When you say card read, do you mean a USb thumb drive or an SD/SDHC card for the 810 or SD/CF card for the HD2000? The units will not work with an actual card reader since there's no built-in driver for card readers. At least, none that I'm aware of.



    I'm not sure that I undersand what you are trying to do. You can create a playlist on your computer directly, with the card reader attached.



    with the 810, if you plug in a card or thumbdrive, with no playlist, the unit will play files alphabetically.



    The autorun.bas is only needed on the HD2000. ON the HD810, the script extension changes to .brs instead of .bas, and there are some changes in how scripting works.



    If you can explain exactly what you are trying to do, I can help.
  • 0
    Avatar
    Erik


    "RokuLyndon" wrote:

    When you say card read, do you mean a USb thumb drive or an SD/SDHC card for the 810 or SD/CF card for the HD2000? The units will not work with an actual card reader since there's no built-in driver for card readers. At least, none that I'm aware of.

    I'm not sure that I undersand what you are trying to do. You can create a playlist on your computer directly, with the card reader attached.

    with the 810, if you plug in a card or thumbdrive, with no playlist, the unit will play files alphabetically.

    The autorun.bas is only needed on the HD2000. ON the HD810, the script extension changes to .brs instead of .bas, and there are some changes in how scripting works.

    If you can explain exactly what you are trying to do, I can help.




    Thanks for your repley.

    The problem is that a customer wants to use 4 video files on a HD810 (SD/SDHC) that plays standard in the stores. But every few weeks the company sends a new CF card with a new 5th file. So they need to change the 5th file every few weeks themselves with a CF card reader that I want to attache at the USB port on the HD 810.



    Now I want to know if there is a possibility that the player sees the first 4 files as the first files to play from the SD/SDHC card and when the customer plugs in the CF card in the attched reader the player sees that file as the 5th file to play in a sequence.



    Maybe it's more simple to know if the player sees the CF and the SD/SDHC together as one.



    If I attache the CF card on the USB the player sees it as the master and doesn't play or sees the files on the SD/SDHC.



    Ok I found something in the Object manual reference....

    I'll try to use some of the script.

    I will let it know if it worked.





    Regards,

    Erik
  • 0
    Avatar
    RokuLyndon


    If you take a look at the Brightscript reference, there are functions there for copying and deleting files. This may not work unless the card reader shows up as a simple mass storage device. A better solution would be to have the new files on a USB thumbdrive.



    One way this could work...

    -Put a simple test file, let's call it update.txt on the thumbdrive

    -Put this 5th video on the thumbdrive

    -In your custom script, periodically look for USB1:/update.txt

    -If it's found, that means the USB thumbdrive is present, and then you can copy video5.mpg to the SD card



    How comfortable are you with the scripting?
  • 0
    Avatar
    Erik


    "RokuLyndon" wrote:

    If you take a look at the Brightscript reference, there are functions there for copying and deleting files. This may not work unless the card reader shows up as a simple mass storage device. A better solution would be to have the new files on a USB thumbdrive.

    One way this could work...
    -Put a simple test file, let's call it update.txt on the thumbdrive
    -Put this 5th video on the thumbdrive
    -In your custom script, periodically look for USB1:/update.txt
    -If it's found, that means the USB thumbdrive is present, and then you can copy video5.mpg to the SD card

    How comfortable are you with the scripting?




    Hi Lyndon,



    Thanks, yes I was already also thinking about using a thumbdrive <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->

    I found some script in the reference. Unfortually I didn't had much time

    yet today to look at it. But your idea looks and sounds good.

    I have other scripting experience from other languages... but I'm not a big star in it (yet!) <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->



    First I want to try it myself. I also found an Install application in the reference. But If you have a nice tutorial/example or something like that I would appreciate.



    grtz, Erik
Please sign in to leave a comment.