mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-16 12:53:32 +00:00
V2 event block (#261)
* feat: implement progress bar on running event * refactor: use event action hook * refactor: align backend data
This commit is contained in:
@@ -119,8 +119,8 @@ export class EventTimer extends Timer {
|
||||
current: this.current,
|
||||
secondaryTimer: this.secondaryTimer,
|
||||
duration: this.duration,
|
||||
expectedFinish: this._getExpectedFinish(),
|
||||
startedAt: this._startedAt,
|
||||
expectedFinish: this._getExpectedFinish(),
|
||||
};
|
||||
this.socket.send('ontime-timer', featureData);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Server } from 'node-osc';
|
||||
import { PlaybackService } from '../services/playbackService';
|
||||
import { PlaybackService } from '../services/playbackService.js';
|
||||
import { messageManager } from '../classes/message-manager/MessageManager.js';
|
||||
import { socketProvider } from '../classes/socket/SocketController.js';
|
||||
import { ADDRESS_MESSAGE_CONTROL } from '../classes/socket/socketConfig.js';
|
||||
@@ -22,7 +22,7 @@ export const initiateOSC = (config) => {
|
||||
|
||||
oscServer.on('error', console.error);
|
||||
|
||||
oscServer.on('message', function (msg) {
|
||||
oscServer.on('message', function(msg) {
|
||||
// message should look like /ontime/{path} {args} where
|
||||
// ontime: fixed message for app
|
||||
// path: command to be called
|
||||
@@ -125,7 +125,7 @@ export const initiateOSC = (config) => {
|
||||
if (isNaN(eventIndex) || eventIndex <= 0) {
|
||||
socketProvider.error(
|
||||
'RX',
|
||||
`OSC IN: event index not recognised or out of range ${eventIndex}`,
|
||||
`OSC IN: event index not recognised or out of range ${eventIndex}`
|
||||
);
|
||||
} else {
|
||||
PlaybackService.loadByIndex(eventIndex - 1);
|
||||
|
||||
Reference in New Issue
Block a user