-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* hotfix 4.0.2: implement playback router * hotfix 4.0.2: fix studio clock styles * hotfix 4.0.2: broadcast clock always * hotfix 4.0.2: fix overflow in timer control
- Loading branch information
Showing
10 changed files
with
87 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,6 +97,10 @@ | |
grid-area: fin; | ||
} | ||
|
||
.roll { | ||
grid-area: 2 / 2 / 2 / 4 ; | ||
} | ||
|
||
.time { | ||
color: #ccc; | ||
font-size: 1.1em; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,51 @@ | ||
import express from 'express'; | ||
export const router = express.Router(); | ||
|
||
// import event controller | ||
const playbackController = require('../controllers/playbackController'); | ||
// import playback controllers | ||
import { | ||
pbGet, | ||
onAir, | ||
offAir, | ||
pbStart, | ||
pbPause, | ||
pbStop, | ||
pbRoll, | ||
pbPrevious, | ||
pbNext, | ||
pbUnload, | ||
pbReload | ||
} from '../controllers/playbackController.js'; | ||
|
||
// create route between controller and '/playback/' endpoint | ||
router.get('/', playbackController.pbGet); | ||
router.get('/', pbGet); | ||
|
||
// create route between controller and '/playback/onAir' endpoint | ||
router.get('/onAir', playbackController.onAir); | ||
router.get('/onAir', onAir); | ||
|
||
// create route between controller and '/playback/offAir' endpoint | ||
router.get('/offAir', playbackController.offAir); | ||
router.get('/offAir', offAir); | ||
|
||
// create route between controller and '/playback/start' endpoint | ||
router.get('/start', playbackController.pbStart); | ||
router.get('/start', pbStart); | ||
router.get('/play', pbStart); | ||
|
||
// create route between controller and '/playback/pause' endpoint | ||
router.get('/pause', playbackController.pbPause); | ||
router.get('/pause', pbPause); | ||
|
||
// create route between controller and '/playback/stop' endpoint | ||
router.get('/stop', playbackController.pbStop); | ||
router.get('/stop', pbStop); | ||
|
||
// create route between controller and '/playback/roll' endpoint | ||
router.get('/roll', playbackController.pbRoll); | ||
router.get('/roll', pbRoll); | ||
|
||
// create route between controller and '/playback/previous' endpoint | ||
router.get('/previous', playbackController.pbPrevious); | ||
router.get('/previous', pbPrevious); | ||
|
||
// create route between controller and '/playback/next' endpoint | ||
router.get('/next', playbackController.pbNext); | ||
router.get('/next', pbNext); | ||
|
||
// create route between controller and '/playback/unload' endpoint | ||
router.get('/unload', playbackController.pbUnload); | ||
router.get('/unload', pbUnload); | ||
|
||
// create route between controller and '/playback/reload' endpoint | ||
router.get('/reload', playbackController.pbReload); | ||
router.get('/reload', pbReload); |