Rename frigate-jsmpeg to jsmpeg.
This commit is contained in:
@@ -747,7 +747,7 @@ export class FrigateCardLiveProvider extends LitElement {
|
||||
return 'ha';
|
||||
}
|
||||
} else if (this.cameraConfig?.frigate.camera_name) {
|
||||
return 'frigate-jsmpeg';
|
||||
return 'jsmpeg';
|
||||
}
|
||||
return frigateCardConfigDefaults.cameras.live_provider;
|
||||
}
|
||||
@@ -799,7 +799,7 @@ export class FrigateCardLiveProvider extends LitElement {
|
||||
}
|
||||
if (changedProps.has('cameraConfig')) {
|
||||
const provider = this._getResolvedProvider();
|
||||
if (provider === 'frigate-jsmpeg') {
|
||||
if (provider === 'jsmpeg') {
|
||||
import('./live-jsmpeg.js');
|
||||
} else if (provider === 'ha') {
|
||||
import('./live-ha.js');
|
||||
@@ -881,7 +881,7 @@ export class FrigateCardLiveProvider extends LitElement {
|
||||
@frigate-card:media:loaded=${this._videoMediaShowHandler.bind(this)}
|
||||
>
|
||||
</frigate-card-live-webrtc-card>`
|
||||
: provider === 'frigate-jsmpeg'
|
||||
: provider === 'jsmpeg'
|
||||
? html` <frigate-card-live-jsmpeg
|
||||
${ref(this._providerRef)}
|
||||
class=${classMap(providerClasses)}
|
||||
|
||||
@@ -735,4 +735,10 @@ const UPGRADES = [
|
||||
typeof data === 'object' && data ? <RawFrigateCardConfig>data : {},
|
||||
);
|
||||
},
|
||||
upgradeArrayValue(
|
||||
CONF_CAMERAS,
|
||||
upgradeWithOverrides('live_provider', (val) =>
|
||||
val === 'frigate-jsmpeg' ? 'jsmpeg' : val,
|
||||
),
|
||||
),
|
||||
];
|
||||
|
||||
+2
-2
@@ -1197,8 +1197,8 @@ export class FrigateCardEditor extends LitElement implements LovelaceCardEditor
|
||||
label: localize('config.cameras.live_providers.image'),
|
||||
},
|
||||
{
|
||||
value: 'frigate-jsmpeg',
|
||||
label: localize('config.cameras.live_providers.frigate-jsmpeg'),
|
||||
value: 'jsmpeg',
|
||||
label: localize('config.cameras.live_providers.jsmpeg'),
|
||||
},
|
||||
{
|
||||
value: 'go2rtc',
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
"live_provider": "Live view provider for this camera",
|
||||
"live_providers": {
|
||||
"auto": "Automatic",
|
||||
"frigate-jsmpeg": "Frigate JSMpeg",
|
||||
"jsmpeg": "JSMpeg",
|
||||
"go2rtc": "go2rtc",
|
||||
"ha": "Home Assistant video stream (i.e. HLS, LL-HLS, WebRTC via HA)",
|
||||
"image": "Home Assistant images",
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
"live_provider": "Provider di visualizzazione dal vivo per questa telecamera",
|
||||
"live_providers": {
|
||||
"auto": "Automatica",
|
||||
"frigate-jsmpeg": "Frigate JSMpeg",
|
||||
"jsmpeg": "JSMpeg",
|
||||
"go2rtc": "",
|
||||
"ha": "",
|
||||
"image": "",
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
"live_provider": "Provedor de visualização ao vivo para esta câmera",
|
||||
"live_providers": {
|
||||
"auto": "Automatico",
|
||||
"frigate-jsmpeg": "Frigate JSMpeg",
|
||||
"jsmpeg": "JSMpeg",
|
||||
"go2rtc": "",
|
||||
"ha": "",
|
||||
"image": "",
|
||||
|
||||
+1
-1
@@ -70,7 +70,7 @@ const LIVE_PROVIDERS = [
|
||||
'auto',
|
||||
'image',
|
||||
'ha',
|
||||
'frigate-jsmpeg',
|
||||
'jsmpeg',
|
||||
'go2rtc',
|
||||
'webrtc-card',
|
||||
] as const;
|
||||
|
||||
Reference in New Issue
Block a user