Versions Compared

Key

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

...

USB Audio Screen

USB Image Screen


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 Added



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

...