Commit ea328bb4ad2cef755986af610a975e49be04fd37

Authored by ww
1 parent 182a3bca

fix: 修复从流媒体平台配置的视频流无法播放

... ... @@ -4351,7 +4351,7 @@ App.prototype.loadFile = function (id, sameWindow, file, success, force) {
4351 4351 if (success != null)
4352 4352 success()
4353 4353 // TODO Thingskkit socket连接
4354   - if (result?.templateId) {
  4354 + if (!result?.isTemplate) {
4355 4355 const lightboxWebsocketService = useLightboxModeService(this)
4356 4356 this.lightboxWebsocketService = lightboxWebsocketService
4357 4357 this.lightboxWebsocketService?.init?.()
... ...
... ... @@ -73,7 +73,6 @@ const handleGetVideoPlay = async () => {
73 73 }
74 74
75 75 const instance = unref(basicVideoPlayEl)?.customInit((options) => {
76   - withToken.value = true
77 76 if (unref(withToken)) {
78 77 (options as any).flvjs.config.headers = {
79 78 'X-Authorization': `Bearer ${isShareMode() ? getShareJwtToken() : getJwtToken()}`,
... ...