...

Miracast Feature:
- Turn on location and Wi-Fi on your mobile device, ensuring it is not connected to any SSID.
- Open the "Cast" option on your mobile—it will start searching for available devices.
- You should see a device named "Living Room" in the list.
- Tap on "Living Room" from your mobile. This will trigger the onClientConnectionRequest() event in the logs, and a Miracast notification page will appear on the TV. This page will display your mobile phone details along with "Accept" and "Deny" buttons and a 30-second timer.
- If you click "Yes", the mobile screen will be mirrored on the TV, and the onStateChange event will be logged with the corresponding state.
- If you click "No", you will be redirected back to the RDKUI home page.
- If you disconnect the Cast option from your mobile, the RDKUI home page should appear again.
- In case of a failure, a failure screen will be displayed, showing the error code and reason.
Additional Steps - Launching YouTube while Miracast is playing:
While the Miracast feature is in the playing state, execute the following CURL command:
Code Block |
---|
curl -X POST http://127.0.0.1:9998/jsonrpc -d '{"jsonrpc":"2.0","id":3,"method":"org.rdk.RDKShell.1.generateKey","params":{"keys":[{"keyCode":115,"modifiers":[],"delay":0.2,"callsign":"ResidentApp","client":"ResidentApp"}]}}' |
- The UI should stop the Miracast screen and launch YouTube.
- Handling Home key press while Miracast is playing: the the Home key is pressed while Miracast is in the playing state, the UI should stop the Miracast screen and return to the RDKUI home page.
Image Removed
...
Image Added
...
Key Mapping
The version 3 UI supports a configurable keymap. Below lists the general functionality and keycode of keys. Detailed information of the default keycode mappings can found here in Keymap.js.
...