Skip to content

Commit 3c816ba

Browse files
committed
Merge branch 'bose/3792' into staging
2 parents 917b5fa + 4735cb7 commit 3c816ba

2 files changed

Lines changed: 2 additions & 52 deletions

File tree

studio/schemas/components/VideoSelector.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import {
2929
import { createPortal } from 'react-dom'
3030
import type { ObjectInputProps } from 'sanity'
3131
import { MemberField, set, unset } from 'sanity'
32-
import { baseUrl } from '../../resolveProductionUrl'
3332
import HLSPlayer from './HLSPlayer'
3433
import { getObjectMemberField } from './utils/getObjectMemberField'
3534

@@ -52,6 +51,7 @@ const MEDIABANK_IMPORT_TYPE = 'dam:assets-imported'
5251

5352
const SCREEN9_ACCOUNT_ID = process.env.SANITY_STUDIO_SCREEN9_ACCOUNT_ID
5453
const SCREEN9_TOKEN = process.env.SANITY_STUDIO_SCREEN9_TOKEN
54+
const SCREEN9_BASE_URL = 'https://rest.screen9.com'
5555
const 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: {

web/app/api/screen9/route.ts

Lines changed: 0 additions & 50 deletions
This file was deleted.

0 commit comments

Comments
 (0)