diff --git a/bundles/org.openhab.ui/web/src/assets/definitions/widgets/system/video.js b/bundles/org.openhab.ui/web/src/assets/definitions/widgets/system/video.js index a9caae45b..4f89eb239 100644 --- a/bundles/org.openhab.ui/web/src/assets/definitions/widgets/system/video.js +++ b/bundles/org.openhab.ui/web/src/assets/definitions/widgets/system/video.js @@ -1,9 +1,15 @@ -import { pi, pt, pb } from '../helpers.js' +import { pi, pt, pb, pd } from '../helpers.js' export default () => [ pi('item', 'Item', 'Item containing the address of the video'), pt('url', 'URL', 'URL to show (if item if not specified)'), pt('type', 'Type', 'Content Type of the video, for example video/mp4 (optional)'), pb('hideControls', 'Hide Controls', 'Hide the control buttons of the video'), - pb('startManually', 'Start manually', 'Does not start playing the video automatically') + pb('startManually', 'Start Manually', 'Does not start playing the video automatically'), + pt('playerType', 'Player Type', 'Select the player type (optional), defualts to Video.js').o([ + { value: 'videojs', label: 'Video.js (Dash, HLS, Others)' }, + { value: 'webrtc', label: 'WebRTC' } + ], true, false).a(), + pt('stunServer', 'Stun Server', 'WebRTC stun server (optional), defaults to \'stun:stun.l.google.com:19302\'').a(), + pd('candidatesTimeout', 'ICE candidates timeout', 'WebRTC ICE candidates discovery timeout length in milliseconds (optional), defaults to \'2000\', \'0\' to disable').a() ] diff --git a/bundles/org.openhab.ui/web/src/components/widgets/system/oh-video-webrtc.vue b/bundles/org.openhab.ui/web/src/components/widgets/system/oh-video-webrtc.vue new file mode 100644 index 000000000..62bd422d5 --- /dev/null +++ b/bundles/org.openhab.ui/web/src/components/widgets/system/oh-video-webrtc.vue @@ -0,0 +1,137 @@ + + + diff --git a/bundles/org.openhab.ui/web/src/components/widgets/system/oh-video.vue b/bundles/org.openhab.ui/web/src/components/widgets/system/oh-video.vue index e30b92b09..94a7c3dcf 100644 --- a/bundles/org.openhab.ui/web/src/components/widgets/system/oh-video.vue +++ b/bundles/org.openhab.ui/web/src/components/widgets/system/oh-video.vue @@ -1,6 +1,14 @@