Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

1) On selection of USB tab , an enable/disable button will be shown 
2) Enable/disable button added to control retrieve of USB data once USB connected to Box.
3) Enable only if  USB/HDD connected to box.
4) USB data are aggregated into three Types:
        a)Audio file(.mp3)
        b)Video file(.mp4)
        c)Images (.JPG and .PNG)
5) For each type item custom folders are shown in setting screen when we enable USB. 
6) Separate screen are shown for each type of data.
7) Data are listed horizontally along with there name.
8) Preview is shown for  focused item.
9) Custom image are used to show Audio/Video item default preview.
10) Actual image on USB are shown in preview.
11) On selecting Video items , Video will be played in Full Screen.
12) Audio playback is not yet implemented.
13) For each screen Video/Audio/Images , there are headers showing back button and IP.
14) On Navigating Back button and enter , will land in setting screen and Focus is on USB folders.

USB Video Screen

→All mp4 files are listed in row and focused Item preview shown.

→ On pressing Enter video will play in Full screen.

→ On pressing key 'M' will exit from FSV.

USB Audio Screen

→All mp3 files are listed in row and focused Item preview shown.

USB Image Screen

→All JPG, PNG files are listed in row and focused Item preview shown.

→ On Navigating to header and pressing back icon , setting screen will launched.


Controller UI 

Users can interact with plugins using Controller UI. It helps the user to activate or deactivate the plugin and the user can go through each plugin and look for properties and methods to execute. 

Launching controller UI 

BOXIP:9998 

Enable UsbAccess Plugin .

Image Modified



Plugins interaction using the console 

User can also interact with 'UsbAccess' plugins using JSON-RPC 


1) Create Link:

 Method:

        curl -d '{"jsonrpc":"2.0","id":"3","method":"org.rdk.UsbAccess.1.createLink","params":{}}' http://127.0.0.1:9998/jsonrpc

Response:

          {"jsonrpc":"2.0","id":3,"result":{"baseURL":"http://localhost:50050/usbdrive","success":true}}

2) Clear Link:

Method:

         curl -d '{"jsonrpc":"2.0","id":"3","method":"org.rdk.UsbAccess.1.clearLink","params":{}}' http://127.0.0.1:9998/jsonrpc

Response:

        {"jsonrpc":"2.0","id":3,"result":{"success":true}}


3) Get File list:

Method:

          curl -d '{"jsonrpc":"2.0","id":"3","method":"org.rdk.UsbAccess.1.getFileList","params":{"path":"www"}}' http://127.0.0.1:9998/jsonrpcCalling Methods: 

Response:

      {"jsonrpc":"2.0","id":3,"result":{"contents":[{"name":"var","t":"f"},{"name":"..","t":"d"},{"name":"pages","t":"d"},{"name":"logs","t":"f"},{"name":".","t":"d"}],"success":true}}



 

Demo Videos and Attachments

...