diff --git a/bin/dbus/videomanager-introspec.xml b/bin/dbus/videomanager-introspec.xml index 4e6fcc2a9f72857ff79666692952ef09be42a026..56cea1548578bc5447bdc9ab0e546b36770d753b 100644 --- a/bin/dbus/videomanager-introspec.xml +++ b/bin/dbus/videomanager-introspec.xml @@ -60,7 +60,7 @@ A media resource locator (MRL). Currently, the following are supported: <ul> - <li>v4l2://DEVICE</li> + <li>camera://DEVICE</li> <li>display://DISPLAY_NAME[ WIDTHxHEIGHT]</li> <li>file://IMAGE_PATH</li> </ul> diff --git a/src/media/video/video_device_monitor.cpp b/src/media/video/video_device_monitor.cpp index 8e9dcbf05080789eef157a8caab175d1c2f0c343..f8fdc07d394c88274c1e3fb3550cfcb5ca50d20e 100644 --- a/src/media/video/video_device_monitor.cpp +++ b/src/media/video/video_device_monitor.cpp @@ -108,9 +108,7 @@ VideoDeviceMonitor::getMRLForDefaultDevice() const const auto it = findDeviceByName(defaultDevice_); if(it == std::end(devices_)) return {}; - - auto prefix = it->getDeviceParams().format; - return prefix + "://" + it->getSettings().name; + return "camera://" + it->getSettings().name; } void diff --git a/src/media/video/video_input.cpp b/src/media/video/video_input.cpp index e76aec132db70f48967cfd1981ad038ab3bc38e2..5cae5b9b08e53f88e83b14cadaa53dec9950f71d 100644 --- a/src/media/video/video_input.cpp +++ b/src/media/video/video_input.cpp @@ -317,7 +317,7 @@ VideoInput::switchInput(const std::string& resource) bool valid = false; - if (prefix == "video4linux2") { + if (prefix == "camera") { /* Video4Linux2 */ valid = initCamera(suffix); } else if (prefix == "display") { @@ -326,9 +326,6 @@ VideoInput::switchInput(const std::string& resource) } else if (prefix == "file") { /* Pathname */ valid = initFile(suffix); - } else if (prefix == "avfoundation") { - /* AVFoundation */ - valid = initCamera(suffix); } // Unsupported MRL or failed initialization