In Hudiy, there are essentially two ways to display the reverse camera view. The first is using the built-in camera view, and the second is using HTML/JavaScript.
For the built-in camera view, you can use actions (show_reverse_camera/hide_reverse_camera) to show/hide the view. You can trigger these actions via the API or using shortcuts/menus. You can also use dedicated SetReverseCameraStatus message.
To trigger, for example, show_reverse_camera via the menu or shortcuts, you simply need to add the appropriate entry to applications_menu.json or shortcuts.json.
The built-in camera view uses GStreamer to render the camera feed. You can customize the pipeline to your needs in
An example of displaying the camera feed using HTML/JavaScript is also available on our GitHub. You can integrate it into Hudiy as an application or an overlay, and show or hide it via the API, shortcuts, or menus.
If you configure it as an overlay, its visibility can also be controlled via the API:
There is also a topic on the forum about HTML/JavaScript camera view with guidelines:
Code: Select all
{
"categories": [
{
"isDefault": true,
"iconFontFamily": "Material Symbols Rounded",
"iconName": "call",
"label": "Phone"
},
{
"iconFontFamily": "Material Symbols Rounded",
"iconName": "library_music",
"label": "Music"
},
{
"iconFontFamily": "Hudiy Symbols",
"iconName": "\ue900",
"label": "Android Auto"
},
{
"iconFontFamily": "Material Symbols Rounded",
"iconName": "general_device",
"label": "Autobox"
},
{
"iconFontFamily": "Material Symbols Rounded",
"iconName": "apps",
"label": "Hudiy"
}
],
"items": [
{
"categories": [
"Phone"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "contacts",
"action": "contacts",
"label": "Contacts"
},
{
"categories": [
"Phone"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "contacts",
"action": "favorite_contacts",
"label": "Favorites"
},
{
"categories": [
"Phone"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "dialpad",
"action": "dialpad",
"label": "Dialpad"
},
{
"categories": [
"Phone"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "call_log",
"action": "calls_history",
"label": "Call log"
},
{
"categories": [
"Phone"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "phone_in_talk",
"action": "active_call",
"label": "Active call"
},
{
"categories": [
"Phone"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "notifications",
"action": "phone_notifications",
"label": "Notifications"
},
{
"categories": [
"Music"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "audio_file",
"action": "storage_music_player",
"label": "Storage Music"
},
{
"categories": [
"Music"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "cell_tower",
"action": "fm_radio_player",
"label": "FM Radio"
},
{
"categories": [
"Music"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "media_bluetooth_on",
"action": "a2dp_music_player",
"label": "A2DP"
},
{
"categories": [
"Music"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "general_device",
"action": "autobox_player",
"label": "Autobox Music"
},
{
"categories": [
"Music"
],
"iconFontFamily": "Hudiy Symbols",
"iconName": "\ue900",
"action": "android_auto_player",
"label": "Android Auto"
},
{
"categories": [
"Hudiy"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "web_asset",
"action": "background_applications",
"label": "Active apps"
},
{
"categories": [
"Hudiy"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "settings",
"action": "settings_menu",
"label": "Settings"
},
{
"categories": [
"Hudiy"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "videocam",
"action": "show_reverse_camera",
"label": "Camera"
},
{
"categories": [
"Hudiy"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "videocam",
"action": "web_reverse_camera",
"label": "Web Camera"
},
{
"categories": [
"Hudiy"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "cancel_presentation",
"action": "quit_hudiy",
"label": "Quit"
},
{
"categories": [
"Android Auto"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "usb",
"action": "connect_android_auto_usb",
"label": "Connect USB"
},
{
"categories": [
"Android Auto"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "wifi",
"action": "connect_android_auto_wifi",
"label": "Connect WiFi"
},
{
"categories": [
"Android Auto"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "redo",
"action": "resume_android_auto_projection",
"label": "Resume"
},
{
"categories": [
"Android Auto"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "cancel_presentation",
"action": "quit_android_auto",
"label": "Quit"
},
{
"categories": [
"Autobox"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "wifi",
"action": "connect_autobox_wifi",
"label": "Connect WiFi"
},
{
"categories": [
"Autobox"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "redo",
"action": "resume_autobox_projection",
"label": "Resume"
}
]
}