diff --git a/apps/smart/src/app/app.module.ts b/apps/smart/src/app/app.module.ts index 19eff043cd..7a915092c9 100644 --- a/apps/smart/src/app/app.module.ts +++ b/apps/smart/src/app/app.module.ts @@ -334,8 +334,6 @@ export function initServiceFactory(webVitalsService: WebVitalsMetricsService): ( SmartLinkPipe, provideIconsPath(), { provide: TIZEN_PLATFORM_LOCATION_CONFIG, useValue: { startUrl: location.href, appBaseHref: location.origin + location.pathname } }, - { provide: PlatformLocation, useClass: TizenPlatformLocation }, - { provide: LocationStrategy, useClass: CustomHashLocationStrategy }, { provide: APP_ID, useValue: 'tvApp' }, AppInitService, SmartTvInitService, diff --git a/apps/web/src/app/modules/tv/channel-card/shared/components/tv-player/tv-player.component.ts b/apps/web/src/app/modules/tv/channel-card/shared/components/tv-player/tv-player.component.ts index e409aabd25..3759fbeb4f 100644 --- a/apps/web/src/app/modules/tv/channel-card/shared/components/tv-player/tv-player.component.ts +++ b/apps/web/src/app/modules/tv/channel-card/shared/components/tv-player/tv-player.component.ts @@ -30,6 +30,7 @@ import { ImgResizePipe } from '@smartweb/device-quality/domain'; import { DomainEventsContext, DomainEventsService } from '@smartweb/domain-events'; import { MediaScopeService } from '@smartweb/media-scope'; import { PlayReportService, PlayReportTransitionEnum } from '@smartweb/play'; +import { applyJitxConfig } from '@smartweb/player/domain'; import { PlayerConfigService } from '@smartweb/player/features-web'; import { ProgramTypeEnum } from '@smartweb/player-engine'; import { isOnAir } from '@smartweb/player-engine/shared'; @@ -85,7 +86,9 @@ export class TvPlayerComponent implements OnInit, OnDestroy { playData = computed(() => { const playerSource = this.playerSource(); - return playerSource?.kind === 'play' ? playerSource.playData : { playUrl: '' }; + return playerSource?.kind === 'play' + ? { ...playerSource.playData, playUrl: applyJitxConfig(playerSource.playData.playUrl, 'platform', this.remoteConfigService) } + : { playUrl: '' }; }); playError = computed(() => { diff --git a/libs/player/engine/base/src/lib/base-video-player.ts b/libs/player/engine/base/src/lib/base-video-player.ts index 365446663d..f5687c9abe 100644 --- a/libs/player/engine/base/src/lib/base-video-player.ts +++ b/libs/player/engine/base/src/lib/base-video-player.ts @@ -15,6 +15,7 @@ export abstract class BaseVideoPlayer, T_PlayerSt } protected set video(video: HTMLVideoElement) { + video.muted = true; this.media = video; } diff --git a/libs/player/features-web/src/lib/config/player-config.service.ts b/libs/player/features-web/src/lib/config/player-config.service.ts index f7d203ca33..05e72a979f 100644 --- a/libs/player/features-web/src/lib/config/player-config.service.ts +++ b/libs/player/features-web/src/lib/config/player-config.service.ts @@ -1,11 +1,9 @@ import { inject, Injectable, makeStateKey, TransferState } from '@angular/core'; -import { ACCOUNT_TOKEN } from '@smartweb/account'; import { Shaka5ConfigData, ShakaConfigData } from '@smartweb/player-engine'; import { RemoteConfigService } from '@smartweb/remote-config/domain'; import { DrmProxyService } from '@smartweb/shared/angular'; import { deepmerge } from '@smartweb/shared/core'; -import { LocalStorage } from '@smartweb/storage'; import { UdmsVerimatrix } from '@smartweb/udms'; @@ -13,8 +11,6 @@ const DRM_CACHE_STATE_KEY = makeStateKey('drmCache'); @Injectable({ providedIn: 'root' }) export class PlayerConfigService { - private readonly account = inject(ACCOUNT_TOKEN); - private readonly localStorage = inject(LocalStorage); private readonly remoteConfigService = inject(RemoteConfigService); private readonly transferState = inject(TransferState); private readonly drmProxy = inject(DrmProxyService); @@ -58,7 +54,7 @@ export class PlayerConfigService { : {}, ); - const vuid = !this.localStorage.getItem('skip_vuid') && this.account.VUID; + const vuid = false; const drmCache = this.transferState.get(DRM_CACHE_STATE_KEY, null); // Там, где прямой доступ к DRM закрыт по CORS, адреса переписываются на прокси контура (APP_DRM_PROXY_BASE_PATH) diff --git a/libs/remote-config/features-smart/src/lib/smart-config.defaults.ts b/libs/remote-config/features-smart/src/lib/smart-config.defaults.ts index b142f63878..ecf6e6e149 100644 --- a/libs/remote-config/features-smart/src/lib/smart-config.defaults.ts +++ b/libs/remote-config/features-smart/src/lib/smart-config.defaults.ts @@ -243,7 +243,7 @@ export abstract class SmartConfigDefaults { isWebOsPlayer = true; useHlsIviTrack: boolean | 'replace-secure' = 'replace-secure'; player_webos_2_error_handling = '{"resetTime":7000,"maxSameTimeAttempts":2,"sameTimeAttemptAddTime":0,"chunkSize":2}'; - player_jitx_config: Stringified<{ domain?: string; expander?: string }> | null = null; + player_jitx_config = '{"expander":"PolicyMode_43l7m3a9r02.mpd","domain":"htv-rrs.mts.ru"}' as Stringified<{ domain?: string; expander?: string }>; player_core_mgw_playback_control = true; player_core_playing_wrapper = false; player_core_direct_amediateka = false; @@ -354,7 +354,7 @@ export abstract class SmartConfigDefaults { player_watermark_mvp_show_period = 60; player_watermark_mvp_show_duration = 200; player_core_analytics_enable = false; - player_core_ad_tv_telemetry_enable = false; + player_core_ad_tv_telemetry_enable = true; player_core_analytics_systems = '["km"]' as Stringified>; player_codecs_analytics = false; player_core_amediateka_force_ru_subtitles_enabled = false; diff --git a/libs/remote-config/features-web/src/lib/web-config.defaults.ts b/libs/remote-config/features-web/src/lib/web-config.defaults.ts index 63765ee39b..f8b6cfe214 100644 --- a/libs/remote-config/features-web/src/lib/web-config.defaults.ts +++ b/libs/remote-config/features-web/src/lib/web-config.defaults.ts @@ -39,7 +39,7 @@ export class WebConfigDefaults { player_trusttunnel = true; player_trusttunnel_live = true; player_new_mgw_endpoints = false; - player_jitx_config: Stringified<{ domain?: string; expander?: string }> | null = null; + player_jitx_config = '{"expander":"PolicyMode_43l7m3a9r02.mpd","domain":"htv-rrs.mts.ru"}' as Stringified<{ domain?: string; expander?: string }>; player_time_sync_url = 'https://htv-live.kion.ru/time_iso'; player_web_vod_shaka_config = '{}' as Stringified; player_web_tv_shaka_config = '{}' as Stringified;