File tree Expand file tree Collapse file tree
studio/schemas/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ import {
2929import { createPortal } from 'react-dom'
3030import type { ObjectInputProps } from 'sanity'
3131import { MemberField , set , unset } from 'sanity'
32- import { baseUrl } from '../../resolveProductionUrl'
3332import HLSPlayer from './HLSPlayer'
3433import { getObjectMemberField } from './utils/getObjectMemberField'
3534
@@ -52,6 +51,7 @@ const MEDIABANK_IMPORT_TYPE = 'dam:assets-imported'
5251
5352const SCREEN9_ACCOUNT_ID = process . env . SANITY_STUDIO_SCREEN9_ACCOUNT_ID
5453const SCREEN9_TOKEN = process . env . SANITY_STUDIO_SCREEN9_TOKEN
54+ const SCREEN9_BASE_URL = 'https://rest.screen9.com'
5555const SCREEN9_AUTH = Buffer . from (
5656 `${ SCREEN9_ACCOUNT_ID } :${ SCREEN9_TOKEN } ` ,
5757) . toString ( 'base64' )
@@ -93,7 +93,7 @@ const VideoSelector = forwardRef(function VideoSelector(
9393
9494 if ( file . viewer === 'VIDEO_VIEWER' && file . screen9Connected ) {
9595 const videoId = file . flvVideoRef
96- const endpoint = `${ baseUrl } /api/screen9 /${ SCREEN9_ACCOUNT_ID } /videos/${ videoId } /streams?ssl=true`
96+ const endpoint = `${ SCREEN9_BASE_URL } /${ SCREEN9_ACCOUNT_ID } /videos/${ videoId } /streams?ssl=true`
9797
9898 const data = await fetch ( endpoint , {
9999 headers : {
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments