Skip to content

Commit

Permalink
chore: refactor panasonic ptz integration
Browse files Browse the repository at this point in the history
  • Loading branch information
mint-dewit committed Jan 4, 2024
1 parent 8d0dac7 commit 5219acb
Show file tree
Hide file tree
Showing 7 changed files with 504 additions and 641 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 @@ -30,6 +30,7 @@ import {
DeviceOptionsTCPSend,
DeviceOptionsQuantel,
DeviceOptionsHyperdeck,
DeviceOptionsPanasonicPTZ,
} from 'timeline-state-resolver-types'

import { DoOnTime } from './devices/doOnTime'
Expand All @@ -41,7 +42,6 @@ import { DeviceContainer } from './devices/deviceContainer'

import { CasparCGDevice, DeviceOptionsCasparCGInternal } from './integrations/casparCG'
import { LawoDevice, DeviceOptionsLawoInternal } from './integrations/lawo'
import { PanasonicPtzDevice, DeviceOptionsPanasonicPTZInternal } from './integrations/panasonicPTZ'
import { PharosDevice, DeviceOptionsPharosInternal } from './integrations/pharos'
import { SisyfosMessageDevice, DeviceOptionsSisyfosInternal } from './integrations/sisyfos'
import { SingularLiveDevice, DeviceOptionsSingularLiveInternal } from './integrations/singularLive'
Expand Down Expand Up @@ -519,15 +519,6 @@ export class Conductor extends EventEmitter<ConductorEvents> {
getCurrentTime,
threadedClassOptions
)
case DeviceType.PANASONIC_PTZ:
return DeviceContainer.create<DeviceOptionsPanasonicPTZInternal, typeof PanasonicPtzDevice>(
'../../dist/integrations/panasonicPTZ/index.js',
'PanasonicPtzDevice',
deviceId,
deviceOptions,
getCurrentTime,
threadedClassOptions
)
case DeviceType.PHAROS:
return DeviceContainer.create<DeviceOptionsPharosInternal, typeof PharosDevice>(
'../../dist/integrations/pharos/index.js',
Expand Down Expand Up @@ -624,6 +615,7 @@ export class Conductor extends EventEmitter<ConductorEvents> {
case DeviceType.HTTPWATCHER:
case DeviceType.HYPERDECK:
case DeviceType.OSC:
case DeviceType.PANASONIC_PTZ:
case DeviceType.SHOTOKU:
case DeviceType.TCPSEND:
case DeviceType.QUANTEL: {
Expand Down Expand Up @@ -1534,7 +1526,7 @@ export type DeviceOptionsAnyInternal =
| DeviceOptionsLawoInternal
| DeviceOptionsHTTPSend
| DeviceOptionsHTTPWatcher
| DeviceOptionsPanasonicPTZInternal
| DeviceOptionsPanasonicPTZ
| DeviceOptionsTCPSend
| DeviceOptionsHyperdeck
| DeviceOptionsPharosInternal
Expand Down
Loading

0 comments on commit 5219acb

Please sign in to comment.