API v2 : little help needed

Discussion in 'HDD Media player(RTD 1619DR)' started by myzidoo, Aug 30, 2020.

  1. myzidoo

    myzidoo Active Member Beta test group

    the 1000pro is excellent and I'm looking forward to the next firmware releases.
    On the API side I'm playing around with the V2 version having discovered that the V2 documentation is not complete yet.

    I am currently struggling wih the construction of the play file command (in V1 it was :
    GET /ZidooFileControl/openFile?path=' + path + &videoplaymode=' +[0,1]).

    I figures out that the ZidooFileControl is still active in v2

    But how can I construct the path part. Could somebody of the developers give me a little help ?

    PROBLEM : I try to launch directly an iso file which is on my NAS with the GET /ZidooFileControl/openFile?path= command but cannot figure out how to write the path part at the end of the command

    1. In the 1000 pro the NAS is "mounted" :
    {"status":200,"hosts":[{"name":"\/data\/system\/smb\/myNASIP","type":1007,"ip":"%2Fdata%2Fsystem%2Fsmb%2FmyNASIP"}]}

    2. When I query the movie details I get :
    {"addedTime":1598471957449,"aggregationId":-1,"deviceId":1,"duration":6112000,"id":46,"lastWatchTime":1598799552404,"mediaInfos":"\u0000\u0000\u0000\u0001\u0003\u0000","modifiedTime":1573991071000,"playPoint":80500,"sources":"2","state":2,"types":9,"uri":"\/ANIMATION PICTURES\/Big Hero 6 (2104) [BD].iso","displayPath":"smb:\/\/myNASIP\/dvd-bd collection (EDNET01)\/ANIMATION PICTURES\/Big Hero 6 (2104) [BD].iso","medias":["1080","Blu-ray","23.976"]}

    HOW SHOULD I write the path part in the GET /ZidooFileControl/openFile?path=' + path + &videoplaymode=' +[0,1]) command
     
  2. myzidoo

    myzidoo Active Member Beta test group

    It's always the same : once asked I find it. So for those wondering and it was before my nose all the time.

    In v1 the path for smb starts with /mnt/smb/.....
    in V2 the path for smb starts with /data/system/smb/....
     
    Markswift2003 likes this.

Share This Page