0

HD1010 Firmware 3.1.73 Play and PlayStaticImage do not work



The two commands Play() and PlayStaticImage("filename.jpg") do not work in the newest firmware version (3.1.73) on the HD1010! What's the problem? It is known?
PlayStaticImage("filename.jpg") result is flash "Err" LED with reboot, the Play() command after Stop() result does nothing.

5 comments

  • 0
    Avatar
    RokuLyndon


    Can you explain where you are trying to use these commands? Can you post your sample script? I don't know of a PlayStaticImage command. Please post more details.
  • 0
    Avatar
    MEZ


    You can look in the "Roku Object Reference Manual Version 3.1.46", the newest one, I think.



    Page 12 - roVideoPlayer:

    ifMediaTransport

    PlayFile(filename As String) As Boolean

    ---> PlayStaticImage(filename As String) As Boolean

    Stop() As Boolean

    ---> Play() As Boolean

    SetLoopMode(mode As Integer) As Boolean

    ClearEvents() As Boolean

    AddEvent(userdata As Integer, time_in_ms As Integer) As Boolean

    StopClear()As Boolean
  • 0
    Avatar
    RokuLyndon


    Ok,



    But I would like to see the actual script you are running where these are failing to work. Can you send me your script, or were you running commands from the shell directly?
  • 0
    Avatar
    MEZ


    Here the simple sricpt sample:



    DisplayMode="1280x720x60p"

    VideoMode=CreateObject("roVideoMode")

    VideoPlayer=CreateObject("roVideoPlayer")

    MessagePort=CreateObject("roMessagePort")

    VideoPlayer.SetPort(MessagePort)

    VideoMode.SetMode(DisplayMode)

    VideoPlayer.SetLoopMode(1)

    VideoPlayer.SetViewMode(0)



    Test:

    VideoPlayer.PlayFile("Trailer.mpg")

    Sleep(3000)

    VideoPlayer.Stop() REM -> OK

    Sleep(3000)

    VideoPlayer.Play() REM -> Nothing happened

    Sleep(3000)

    VideoPlayer.PlayStaticImage("Testbild.jpg")  REM -> Produced error, flashing "Err" LED and reboot the HD1010

    Sleep(3000)

    VideoPlayer.StopClear()

    goto Test
  • 0
    Avatar
    RokuLyndon


    To call playstaticimage, you have to first stop and clear the video. So, you would have to call videoplayer.StopClear().





    For the play command, it doesn't work like it used to. WIth 3.1.73, there's now a preloadfile command you can use to preload a video. Once the video is preloaded, you can call the play command.





    videoplayer.Preloadfile("video.ts")

    videoplayer.play()
Please sign in to leave a comment.