Skip to content

Commit

Permalink
chore: refactor http-watch device SOFIE-2482
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Aug 15, 2023
1 parent 920da05 commit 1688d16
Show file tree
Hide file tree
Showing 7 changed files with 375 additions and 422 deletions.
14 changes: 3 additions & 11 deletions packages/timeline-state-resolver/src/conductor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
TimelineDatastoreReferencesContent,
DeviceOptionsMultiOSC,
TimelineDatastoreReferences,
DeviceOptionsHTTPWatcher,
} from 'timeline-state-resolver-types'

import { DoOnTime } from './devices/doOnTime'
Expand All @@ -40,7 +41,6 @@ import { HyperdeckDevice, DeviceOptionsHyperdeckInternal } from './integrations/
import { TCPSendDevice, DeviceOptionsTCPSendInternal } from './integrations/tcpSend'
import { PharosDevice, DeviceOptionsPharosInternal } from './integrations/pharos'
import { DeviceOptionsOSCInternal } from './integrations/osc'
import { HTTPWatcherDevice, DeviceOptionsHTTPWatcherInternal } from './integrations/httpWatcher'
import { QuantelDevice, DeviceOptionsQuantelInternal } from './integrations/quantel'
import { SisyfosMessageDevice, DeviceOptionsSisyfosInternal } from './integrations/sisyfos'
import { SingularLiveDevice, DeviceOptionsSingularLiveInternal } from './integrations/singularLive'
Expand Down Expand Up @@ -524,15 +524,6 @@ export class Conductor extends EventEmitter<ConductorEvents> {
getCurrentTime,
threadedClassOptions
)
case DeviceType.HTTPWATCHER:
return DeviceContainer.create<DeviceOptionsHTTPWatcherInternal, typeof HTTPWatcherDevice>(
'../../dist/integrations/httpWatcher/index.js',
'HTTPWatcherDevice',
deviceId,
deviceOptions,
getCurrentTime,
threadedClassOptions
)
case DeviceType.LAWO:
return DeviceContainer.create<DeviceOptionsLawoInternal, typeof LawoDevice>(
'../../dist/integrations/lawo/index.js',
Expand Down Expand Up @@ -678,6 +669,7 @@ export class Conductor extends EventEmitter<ConductorEvents> {
threadedClassOptions
)
case DeviceType.HTTPSEND:
case DeviceType.HTTPWATCHER:
case DeviceType.OSC:
// presumably this device is implemented in the new service handler
return RemoteDeviceInstance.create(
Expand Down Expand Up @@ -1577,7 +1569,7 @@ export type DeviceOptionsAnyInternal =
| DeviceOptionsAtemInternal
| DeviceOptionsLawoInternal
| DeviceOptionsHTTPSendInternal
| DeviceOptionsHTTPWatcherInternal
| DeviceOptionsHTTPWatcher
| DeviceOptionsPanasonicPTZInternal
| DeviceOptionsTCPSendInternal
| DeviceOptionsHyperdeckInternal
Expand Down
Loading

0 comments on commit 1688d16

Please sign in to comment.