ffplayout/pages/player.vue

856 lines
29 KiB
Vue
Raw Normal View History

2020-04-07 11:56:46 -04:00
<template>
2020-04-21 11:34:48 -04:00
<div style="height:100%;">
2020-04-15 12:10:55 -04:00
<Menu />
2020-04-07 11:56:46 -04:00
<b-container class="control-container">
2020-04-17 09:02:11 -04:00
<b-row class="control-row">
2020-04-21 11:34:48 -04:00
<b-col cols="3" class="player-col">
<b-aspect aspect="16:9">
<video-player v-if="videoOptions.sources" :key="configID" reference="videoPlayer" :options="videoOptions" />
2020-04-07 11:56:46 -04:00
</b-aspect>
</b-col>
2020-04-21 11:34:48 -04:00
<b-col class="control-col">
<b-row class="control-col">
<b-col cols="8" class="status-col">
<b-row class="status-row">
<b-col class="time-col clock-col">
2020-04-19 15:41:14 -04:00
<div class="time-str">
{{ timeStr }}
</div>
</b-col>
<b-col class="time-col counter-col">
2020-04-19 15:41:14 -04:00
<div class="time-str">
{{ timeLeft }}
</div>
</b-col>
2020-04-21 11:34:48 -04:00
<div class="w-100" />
<b-col class="current-clip" align-self="end">
<div class="current-clip-text">
{{ currentClip | filename }}
</div>
2020-05-12 06:12:18 -04:00
<div class="current-clip-meta">
<strong>Duration:</strong> {{ $secToHMS(currentClipDuration) }} | <strong>In:</strong> {{ $secToHMS(currentClipIn) }} | <strong>Out:</strong> {{ $secToHMS(currentClipOut) }}
</div>
2020-04-21 11:34:48 -04:00
<div class="current-clip-progress">
<b-progress :value="progressValue" variant="warning" />
</div>
</b-col>
2020-04-19 15:41:14 -04:00
</b-row>
2020-04-17 09:02:11 -04:00
</b-col>
2020-04-22 11:19:41 -04:00
<b-col cols="4" class="control-unit-col">
<b-row class="control-unit-row">
<b-col>
<div>
2020-04-26 14:57:40 -04:00
<b-button
title="Start Playout Service"
class="control-button control-button-play"
2020-04-27 05:57:14 -04:00
:class="isPlaying"
2020-04-26 14:57:40 -04:00
variant="primary"
@click="playoutControl('start')"
>
2020-04-22 11:19:41 -04:00
<b-icon-play />
</b-button>
</div>
</b-col>
<b-col>
<div>
2020-04-26 14:57:40 -04:00
<b-button
title="Stop Playout Service"
class="control-button control-button-stop"
variant="primary"
@click="playoutControl('stop')"
>
2020-04-22 11:19:41 -04:00
<b-icon-stop />
</b-button>
</div>
</b-col>
<div class="w-100" />
<b-col>
<div>
2020-04-26 14:57:40 -04:00
<b-button
title="Reload Playout Service"
class="control-button control-button-reload"
variant="primary"
@click="playoutControl('reload')"
>
2020-04-22 11:19:41 -04:00
<b-icon-arrow-repeat />
</b-button>
</div>
</b-col>
<b-col>
<div>
2020-04-26 14:57:40 -04:00
<b-button
title="Restart Playout Service"
class="control-button control-button-restart"
variant="primary"
@click="playoutControl('restart')"
>
2020-04-22 11:19:41 -04:00
<b-icon-arrow-clockwise />
</b-button>
</div>
</b-col>
</b-row>
2020-04-17 09:02:11 -04:00
</b-col>
</b-row>
2020-04-07 11:56:46 -04:00
</b-col>
</b-row>
2020-04-17 09:02:11 -04:00
<b-row class="date-row">
2020-04-13 15:36:31 -04:00
<b-col>
<b-datepicker v-model="listDate" size="sm" class="date-div" offset="-35px" />
2020-04-13 15:36:31 -04:00
</b-col>
</b-row>
2020-04-17 09:02:11 -04:00
<splitpanes class="list-row default-theme pane-row">
2020-04-08 11:25:06 -04:00
<pane min-size="20" size="24">
2020-04-16 12:30:17 -04:00
<loading
:active.sync="isLoading"
:can-cancel="false"
:is-full-page="false"
background-color="#485159"
color="#ff9c36"
/>
2020-04-07 11:56:46 -04:00
<div v-if="folderTree.tree" class="browser-div">
<div>
<b-breadcrumb>
<b-breadcrumb-item
v-for="(crumb, index) in crumbs"
:key="crumb.key"
:active="index === crumbs.length - 1"
2020-04-16 12:30:17 -04:00
@click="getPath(extensions, crumb.path)"
2020-04-07 11:56:46 -04:00
>
{{ crumb.text }}
</b-breadcrumb-item>
</b-breadcrumb>
</div>
2021-02-05 04:23:19 -05:00
<perfect-scrollbar :options="scrollOP" class="player-browser-scroll">
2020-04-12 15:15:10 -04:00
<b-list-group>
<b-list-group-item
v-for="folder in folderTree.tree[1]"
:key="folder.key"
class="browser-item"
>
2020-05-04 07:22:51 -04:00
<b-link @click="getPath(extensions, `/${folderTree.tree[0]}/${folder}`)">
2020-04-12 15:15:10 -04:00
<b-icon-folder-fill class="browser-icons" /> {{ folder }}
</b-link>
</b-list-group-item>
2020-04-24 07:58:47 -04:00
<draggable
:list="folderTree.tree[2]"
:clone="cloneClip"
:group="{ name: 'playlist', pull: 'clone', put: false }"
:sort="false"
2020-04-12 15:15:10 -04:00
>
2020-04-24 07:58:47 -04:00
<b-list-group-item
v-for="file in folderTree.tree[2]"
:key="file.key"
class="browser-item"
>
<b-row>
<b-col cols="1" class="browser-icons-col">
<b-icon-film class="browser-icons" />
</b-col>
<b-col class="browser-item-text grabbing">
{{ file.file }}
</b-col>
<b-col cols="1" class="browser-play-col">
<b-link @click="showPreviewModal(`/${folderTree.tree[0]}/${file.file}`)">
2020-04-24 07:58:47 -04:00
<b-icon-play-fill />
</b-link>
</b-col>
<b-col cols="1" class="browser-dur-col">
<span class="duration">{{ file.duration | toMin }}</span>
</b-col>
</b-row>
</b-list-group-item>
</draggable>
2020-04-12 15:15:10 -04:00
</b-list-group>
</perfect-scrollbar>
2020-04-07 11:56:46 -04:00
</div>
2020-04-08 11:25:06 -04:00
</pane>
<pane>
2020-04-12 15:15:10 -04:00
<div class="playlist-container">
<b-list-group class="list-group-header">
2020-04-12 15:15:10 -04:00
<b-list-group-item>
<b-row class="playlist-row">
2020-04-22 11:19:41 -04:00
<b-col cols="1" class="timecode">
2020-04-12 15:15:10 -04:00
Start
</b-col>
2020-04-24 07:58:47 -04:00
<b-col>
2020-04-12 15:15:10 -04:00
File
</b-col>
2020-04-24 07:58:47 -04:00
<b-col cols="1" class="text-center playlist-input">
2020-04-12 15:15:10 -04:00
Play
</b-col>
2020-04-22 11:19:41 -04:00
<b-col cols="1" class="timecode">
2020-04-12 15:15:10 -04:00
Duration
</b-col>
2020-04-22 11:19:41 -04:00
<b-col cols="1" class="timecode">
2020-04-12 15:15:10 -04:00
In
</b-col>
2020-04-22 11:19:41 -04:00
<b-col cols="1" class="timecode">
2020-04-12 15:15:10 -04:00
Out
</b-col>
2020-04-24 07:58:47 -04:00
<b-col cols="1" class="text-center playlist-input">
Ad
</b-col>
<b-col cols="1" class="text-center playlist-input">
2020-04-12 15:15:10 -04:00
Delete
</b-col>
</b-row>
</b-list-group-item>
</b-list-group>
<perfect-scrollbar id="scroll-container" :options="scrollOP">
<b-list-group class="playlist-list-group" :style="`height: ${(playlist) ? playlist.length * 52 + 52 : 300}px`">
2020-04-24 07:58:47 -04:00
<draggable
id="playlist-group"
2020-04-24 07:58:47 -04:00
v-model="playlist"
group="playlist"
@start="drag=true"
@add="scrollEnd"
2020-04-24 07:58:47 -04:00
@end="drag=false"
>
<b-list-group-item
v-for="(item, index) in playlist"
:id="`clip_${index}`"
:key="item.key"
class="playlist-item"
:class="index === currentClipIndex ? 'active-playlist-clip' : ''"
>
2020-04-24 07:58:47 -04:00
<b-row class="playlist-row">
<b-col cols="1" class="timecode">
{{ item.begin | secondsToTime }}
</b-col>
2021-10-31 09:59:21 -04:00
<b-col class="grabbing filename">
2020-04-24 07:58:47 -04:00
{{ item.source | filename }}
</b-col>
<b-col cols="1" class="text-center playlist-input">
<b-link @click="showPreviewModal(item.source)">
2020-04-24 07:58:47 -04:00
<b-icon-play-fill />
</b-link>
</b-col>
<b-col cols="1" text class="timecode">
{{ item.duration | secondsToTime }}
</b-col>
<b-col cols="1" class="timecode">
<b-form-input :value="item.in | secondsToTime" size="sm" @input="changeTime('in', index, $event)" />
</b-col>
<b-col cols="1" class="timecode">
<b-form-input :value="item.out | secondsToTime" size="sm" @input="changeTime('out', index, $event)" />
</b-col>
<b-col cols="1" class="text-center playlist-input">
<b-form-checkbox
v-model="item.category"
value="advertisement"
:unchecked-value="item.category"
/>
</b-col>
<b-col cols="1" class="text-center playlist-input">
<b-link @click="removeItemFromPlaylist(index)">
<b-icon-x-circle-fill />
</b-link>
</b-col>
</b-row>
</b-list-group-item>
</draggable>
2020-04-12 15:15:10 -04:00
</b-list-group>
</perfect-scrollbar>
</div>
2020-04-08 11:25:06 -04:00
</pane>
</splitpanes>
2020-04-23 11:46:43 -04:00
<b-button-group class="media-button">
<b-button v-b-tooltip.hover title="Reset Playlist" variant="primary" @click="resetPlaylist()">
<b-icon-arrow-counterclockwise />
</b-button>
<b-button v-b-tooltip.hover title="Copy Playlist" variant="primary" @click="showCopyModal()">
<b-icon-files />
</b-button>
2021-03-23 05:43:41 -04:00
<b-button v-b-tooltip.hover title="Loop Clips in Playlist" variant="primary" @click="loopClips()">
<b-icon-view-stacked />
</b-button>
<b-button v-b-tooltip.hover title="Save Playlist" variant="primary" @click="savePlaylist(listDate)">
<b-icon-download />
</b-button>
2021-03-19 08:25:11 -04:00
<b-button v-b-tooltip.hover title="Delete Playlist" variant="primary" @click="showDeleteModal()">
<b-icon-trash />
</b-button>
2020-04-23 11:46:43 -04:00
</b-button-group>
2020-04-07 11:56:46 -04:00
</b-container>
2020-04-16 12:30:17 -04:00
<b-modal
id="preview-modal"
ref="prev-modal"
size="xl"
centered
2020-04-17 09:02:11 -04:00
:title="`Preview: ${previewSource}`"
2020-04-16 12:30:17 -04:00
hide-footer
>
<video-player v-if="previewOptions" reference="previewPlayer" :options="previewOptions" />
</b-modal>
<b-modal
id="copy-modal"
ref="copy-modal"
centered
:title="`Copy Program ${listDate} to:`"
content-class="copy-program"
@ok="savePlaylist(targetDate)"
>
<b-calendar v-model="targetDate" locale="en-US" class="centered" />
</b-modal>
2021-03-19 08:25:11 -04:00
<b-modal
id="delete-modal"
ref="delete-modal"
centered
title="Delete Program"
content-class="copy-program"
@ok="deletePlaylist(listDate)"
>
Delete program from {{ listDate }}
</b-modal>
2020-04-07 11:56:46 -04:00
</div>
</template>
<script>
2020-12-03 11:14:02 -05:00
/* eslint-disable vue/custom-event-name-casing */
2020-04-07 11:56:46 -04:00
import { mapState } from 'vuex'
2020-04-15 12:10:55 -04:00
import Menu from '@/components/Menu.vue'
2020-04-07 11:56:46 -04:00
function scrollTo (t) {
let child
if (t.currentClipIndex === null) {
child = document.getElementById('clip_0')
} else {
child = document.getElementById(`clip_${t.currentClipIndex}`)
}
if (child) {
const parent = document.getElementById('scroll-container')
const topPos = child.offsetTop
parent.scrollTop = topPos - 50
}
}
2020-04-07 11:56:46 -04:00
export default {
2020-04-30 04:42:35 -04:00
name: 'Player',
2020-04-07 11:56:46 -04:00
2020-04-15 12:10:55 -04:00
components: {
Menu
},
2020-04-07 11:56:46 -04:00
2020-04-12 15:15:10 -04:00
filters: {
secondsToTime (sec) {
return new Date(sec * 1000).toISOString().substr(11, 8)
2020-04-12 15:15:10 -04:00
}
},
2020-12-03 11:14:02 -05:00
middleware: 'auth',
2020-04-12 15:15:10 -04:00
data () {
return {
2020-04-16 12:30:17 -04:00
isLoading: false,
2020-04-27 05:57:14 -04:00
isPlaying: '',
2021-03-23 08:57:30 -04:00
listDate: this.$dayjs().tz(this.timezone).format('YYYY-MM-DD'),
targetDate: this.$dayjs().tz(this.timezone).format('YYYY-MM-DD'),
interval: null,
2020-04-16 12:30:17 -04:00
extensions: '',
videoOptions: {
liveui: true,
controls: true,
suppressNotSupportedError: true,
autoplay: false,
preload: 'auto',
sources: []
},
2020-04-16 12:30:17 -04:00
previewOptions: {},
previewComp: null,
2021-02-05 04:23:19 -05:00
previewSource: '',
scrollOP: {
suppressScrollX: true,
minScrollbarLength: 30
2021-02-05 04:23:19 -05:00
}
2020-04-12 15:15:10 -04:00
}
},
2020-04-07 11:56:46 -04:00
computed: {
2021-03-30 06:02:08 -04:00
...mapState('config', ['configID', 'configGui', 'configPlayout', 'timezone', 'startInSec']),
2020-04-12 15:15:10 -04:00
...mapState('media', ['crumbs', 'folderTree']),
...mapState('playlist', [
'timeStr', 'timeLeft', 'currentClip', 'progressValue', 'currentClipIndex',
2021-03-30 06:02:08 -04:00
'currentClipDuration', 'currentClipIn', 'currentClipOut']),
2020-04-24 07:58:47 -04:00
playlist: {
get () {
return this.$store.state.playlist.playlist
},
set (list) {
this.$store.commit('playlist/UPDATE_PLAYLIST', this.$processPlaylist(this.startInSec, list))
2020-04-24 07:58:47 -04:00
}
}
2020-04-12 15:15:10 -04:00
},
watch: {
listDate () {
2020-04-12 15:15:10 -04:00
this.getPlaylist()
setTimeout(() => { scrollTo(this) }, 5000)
2021-03-20 15:03:18 -04:00
},
configID (id) {
this.videoOptions.sources = [
{
type: 'application/x-mpegURL',
src: this.configGui[id].player_url
}
]
this.getPath(this.extensions, '')
this.getPlaylist()
setTimeout(() => { scrollTo(this) }, 3000)
2020-04-12 15:15:10 -04:00
}
2020-04-07 11:56:46 -04:00
},
2020-04-12 15:15:10 -04:00
async created () {
this.videoOptions.sources = [
{
type: 'application/x-mpegURL',
src: this.configGui[this.configID].player_url
}
]
2020-08-27 07:38:26 -04:00
this.getStatus()
2020-07-06 05:55:30 -04:00
this.extensions = this.configPlayout.storage.extensions.join(',')
2020-04-16 12:30:17 -04:00
await this.getPath(this.extensions, '')
2021-03-23 08:57:30 -04:00
const timeInSec = this.$timeToSeconds(this.$dayjs().tz(this.timezone).format('HH:mm:ss'))
const listStartSec = this.$timeToSeconds(this.configPlayout.playlist.day_start)
if (listStartSec > timeInSec) {
2021-03-23 08:57:30 -04:00
this.listDate = this.$dayjs(this.listDate).tz(this.timezone).subtract(1, 'day').format('YYYY-MM-DD')
}
2020-04-17 09:02:11 -04:00
await this.getPlaylist()
},
mounted () {
2021-01-28 11:53:07 -05:00
if (process.env.NODE_ENV === 'production') {
2020-04-30 11:24:13 -04:00
this.interval = setInterval(() => {
2020-05-12 06:12:18 -04:00
this.$store.dispatch('playlist/animClock')
2021-03-23 04:22:08 -04:00
this.getStatus()
2020-05-12 06:12:18 -04:00
}, 5000)
2020-04-30 11:24:13 -04:00
} else {
2020-05-12 06:12:18 -04:00
this.$store.dispatch('playlist/animClock')
2020-04-30 11:24:13 -04:00
}
setTimeout(() => { scrollTo(this) }, 4000)
},
beforeDestroy () {
clearInterval(this.interval)
2020-04-07 11:56:46 -04:00
},
methods: {
2020-04-16 12:30:17 -04:00
async getPath (extensions, path) {
this.isLoading = true
await this.$store.dispatch('media/getTree', { extensions, path })
this.isLoading = false
2020-04-12 15:15:10 -04:00
},
2021-03-23 05:43:41 -04:00
2020-04-27 05:57:14 -04:00
async getStatus () {
const channel = this.configGui[this.configID].id
const status = await this.$axios.post('api/player/system/', { run: 'status', channel })
2020-04-27 05:57:14 -04:00
2021-03-31 07:33:11 -04:00
if (status.data.data && (status.data.data === 'RUNNING' || status.data.data === 'active')) {
2020-04-27 05:57:14 -04:00
this.isPlaying = 'is-playing'
} else {
this.isPlaying = ''
}
},
2021-03-23 05:43:41 -04:00
2020-04-26 14:57:40 -04:00
async playoutControl (state) {
const channel = this.configGui[this.configID].id
await this.$axios.post('api/player/system/', { run: state, channel })
2020-04-27 05:57:14 -04:00
2020-04-27 10:07:28 -04:00
setTimeout(() => { this.getStatus() }, 1000)
2020-04-26 14:57:40 -04:00
},
2021-03-23 05:43:41 -04:00
2020-04-12 15:15:10 -04:00
async getPlaylist () {
await this.$store.dispatch('playlist/getPlaylist', { date: this.listDate })
2020-04-16 12:30:17 -04:00
},
2021-03-23 05:43:41 -04:00
showPreviewModal (src) {
const storagePath = this.configPlayout.storage.path
const storagePathArr = storagePath.split('/')
const storageRoot = storagePathArr.pop()
src = '/' + src.substring(src.indexOf(storageRoot))
2020-04-17 09:02:11 -04:00
this.previewSource = src.split('/').slice(-1)[0]
2020-04-20 12:06:43 -04:00
const ext = this.previewSource.split('.').slice(-1)[0]
2020-04-16 12:30:17 -04:00
this.previewOptions = {
liveui: false,
controls: true,
suppressNotSupportedError: true,
autoplay: false,
preload: 'auto',
sources: [
{
2020-04-20 12:06:43 -04:00
type: `video/${ext}`,
2020-07-07 09:39:29 -04:00
src: '/' + encodeURIComponent(src.replace(/^\//, ''))
2020-04-16 12:30:17 -04:00
}
]
}
this.$root.$emit('bv::show::modal', 'preview-modal')
2020-04-23 11:46:43 -04:00
},
2021-03-23 05:43:41 -04:00
2020-04-24 07:58:47 -04:00
cloneClip ({ file, duration }) {
const storagePath = this.configPlayout.storage.path
const storagePathArr = storagePath.split('/')
const storageRoot = storagePathArr.pop()
const sourcePath = `${storagePathArr.join('/')}/${this.folderTree.tree[0].substring(this.folderTree.tree[0].indexOf(storageRoot))}`
2020-04-24 07:58:47 -04:00
return {
source: `${sourcePath}/${file}`,
2020-04-24 07:58:47 -04:00
in: 0,
out: duration,
duration
}
},
2021-03-23 05:43:41 -04:00
scrollEnd (event) {
if (event.newIndex + 1 === this.playlist.length) {
const objDiv = document.getElementById('scroll-container')
objDiv.scrollTop = objDiv.scrollHeight
}
},
2020-04-24 07:58:47 -04:00
changeTime (pos, index, input) {
if (input.match(/(?:[01]\d|2[0123]):(?:[012345]\d):(?:[012345]\d)/gm)) {
const sec = this.$timeToSeconds(input)
if (pos === 'in') {
this.playlist[index].in = sec
} else if (pos === 'out') {
this.playlist[index].out = sec
}
this.$store.commit('playlist/UPDATE_PLAYLIST', this.$processPlaylist(this.startInSec, this.playlist))
2020-04-24 07:58:47 -04:00
}
},
2021-03-23 05:43:41 -04:00
2020-04-24 07:58:47 -04:00
removeItemFromPlaylist (index) {
this.playlist.splice(index, 1)
this.$store.commit('playlist/UPDATE_PLAYLIST', this.$processPlaylist(this.startInSec, this.playlist))
2020-04-24 07:58:47 -04:00
},
2021-03-23 05:43:41 -04:00
2020-04-24 07:58:47 -04:00
async resetPlaylist () {
await this.$store.dispatch('playlist/getPlaylist', { date: this.listDate })
2020-04-23 11:46:43 -04:00
},
2021-03-23 05:43:41 -04:00
loopClips () {
const tempList = []
let count = 0
while (count < 86400) {
for (const item of this.playlist) {
if (count < 86400) {
tempList.push(this.$_.cloneDeep(item))
count += item.out - item.in
} else {
break
}
}
}
this.$store.commit('playlist/UPDATE_PLAYLIST', this.$processPlaylist(this.startInSec, tempList))
2021-03-23 05:43:41 -04:00
},
async savePlaylist (saveDate) {
this.$store.commit('playlist/UPDATE_PLAYLIST', this.$processPlaylist(this.startInSec, this.playlist))
2020-04-24 09:15:55 -04:00
const saveList = this.playlist.map(({ begin, ...item }) => item)
2020-04-24 09:15:55 -04:00
await this.$axios.post(
'api/player/playlist/',
{
data: { channel: this.$store.state.config.configGui.channel, date: saveDate, program: saveList },
channel: this.configGui[this.configID].id
}
2020-04-24 09:15:55 -04:00
)
},
2021-03-23 05:43:41 -04:00
2021-03-19 08:25:11 -04:00
async deletePlaylist (playlistDate) {
this.$store.commit('playlist/UPDATE_PLAYLIST', [])
const date = playlistDate.split('-')
const playlistPath = `${this.configPlayout.playlist.path}/${date[0]}/${date[1]}/${playlistDate}.json`
await this.$axios.post('api/player/playlist/', { data: { delete: playlistPath } })
},
2021-03-23 05:43:41 -04:00
showCopyModal () {
this.$root.$emit('bv::show::modal', 'copy-modal')
2021-03-19 08:25:11 -04:00
},
2021-03-23 05:43:41 -04:00
2021-03-19 08:25:11 -04:00
showDeleteModal () {
this.$root.$emit('bv::show::modal', 'delete-modal')
2020-04-07 11:56:46 -04:00
}
}
}
</script>
<style lang="scss" scoped>
2020-04-07 11:56:46 -04:00
.control-container {
2020-04-12 15:15:10 -04:00
width: auto;
2020-04-07 11:56:46 -04:00
max-width: 100%;
2020-04-21 11:34:48 -04:00
height: calc(100% - 40px);
2020-04-17 09:02:11 -04:00
}
.control-row {
2020-04-22 11:19:41 -04:00
min-height: 254px;
2020-04-21 11:34:48 -04:00
}
.player-col {
max-width: 542px;
min-width: 380px;
2020-04-22 11:19:41 -04:00
margin-bottom: 6px;
2020-04-21 11:34:48 -04:00
}
.control-col {
height: 100%;
2020-04-22 11:19:41 -04:00
min-height: 254px;
2020-04-21 11:34:48 -04:00
}
.status-col {
padding-right: 30px;
2020-04-22 11:19:41 -04:00
}
.control-unit-col {
2021-10-31 09:59:21 -04:00
min-width: 250px;
2020-04-22 11:19:41 -04:00
}
.control-unit-row {
background: #32383E;
height: 100%;
margin-right: 0;
border-radius: 0.25rem;
text-align: center;
}
.control-unit-row .col {
height: 50%;
min-height: 90px;
}
.control-unit-row .col div {
height: 80%;
2021-10-31 09:59:21 -04:00
margin: .6em 0;
2020-04-22 11:19:41 -04:00
}
.control-button {
font-size: 3em;
line-height: 0;
width: 80%;
height: 100%;
}
.status-row {
height: 100%;
min-width: 370px;
}
.clock-col {
margin-right: 3px;
}
.counter-col {
margin-left: 3px;
}
.time-col {
position: relative;
background: #32383E;
padding: .5em;
text-align: center;
border-radius: .25rem;
}
.time-str {
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
font-family: 'DigitalNumbers-Regular';
font-size: 4.5em;
letter-spacing: -.18em;
padding-right: 14px;
}
.current-clip {
background: #32383E;
height: calc(50% - 3px);
padding: 10px;
border-radius: 0.25rem;
}
.current-clip-text {
2020-05-12 06:12:18 -04:00
height: 40%;
padding-top: .5em;
text-align: left;
font-weight: bold;
}
2020-05-12 06:12:18 -04:00
.current-clip-meta {
margin-bottom: .7em;
}
.current-clip-progress {
top: 80%;
margin-top: .2em;
}
2020-04-27 05:57:14 -04:00
.control-button:hover {
background-image: linear-gradient(#3b4046, #2c3034 60%, #24272a) !important;
}
2020-04-22 11:19:41 -04:00
.control-button-play {
color: #43c32e;
}
2020-04-27 05:57:14 -04:00
.is-playing {
box-shadow: 0 0 15px #43c32e;
}
2020-04-22 11:19:41 -04:00
.control-button-stop {
color: #d01111;
}
.control-button-reload {
color: #ed7c06;
}
.control-button-restart {
color: #f6e502;
}
@media (max-width: 1555px) {
2021-10-31 09:59:21 -04:00
.control-row {
min-height: 200px;
}
2020-04-22 11:19:41 -04:00
.control-col {
height: 100%;
2021-10-31 09:59:21 -04:00
min-height: inherit;
2020-04-22 11:19:41 -04:00
}
.status-col {
padding-right: 0;
height: 100%;
2020-04-22 11:19:41 -04:00
}
.time-str {
font-size: 3.5em;
}
.time-col {
margin-bottom: 6px;
2020-04-22 11:19:41 -04:00
}
.control-unit-row {
margin-right: -30px;
2020-04-22 11:19:41 -04:00
}
.control-unit-col {
2021-10-31 09:59:21 -04:00
flex: 0 0 28.5%;
max-width: 28.5%;
margin: 0 10px 0 20px;
}
}
@media (max-width: 1280px) {
.control-col {
min-height: inherit;
}
.control-unit-col {
flex: 0 0 25%;
max-width: 25%;
2021-10-31 10:07:59 -04:00
height: auto;
2021-10-31 09:59:21 -04:00
margin: 0 0 0 20px;
}
2020-04-22 11:19:41 -04:00
}
@media (max-width: 1225px) {
2021-10-31 09:59:21 -04:00
.control-unit-col {
flex: 0 0 66.6666666667%;
max-width: 66.6666666667%;
margin: 6px 0 0 0;
}
.clock-col {
margin-right: 0;
}
.counter-col {
margin-left: 0;
2020-04-22 11:19:41 -04:00
}
}
2020-04-17 09:02:11 -04:00
.list-row {
2020-04-23 11:46:43 -04:00
height: calc(100% - 40px - 254px - 46px - 70px);
2020-04-22 11:19:41 -04:00
min-height: 300px;
2020-04-07 11:56:46 -04:00
}
2020-04-08 11:25:06 -04:00
.pane-row {
2020-04-17 09:02:11 -04:00
margin: 0;
2020-04-08 11:25:06 -04:00
}
2020-04-12 15:15:10 -04:00
.playlist-container {
width: 100%;
2020-04-17 09:02:11 -04:00
height: 100%;
2020-04-12 15:15:10 -04:00
}
2020-04-22 11:19:41 -04:00
.timecode {
min-width: 56px;
2020-04-24 07:58:47 -04:00
max-width: 90px;
}
.playlist-input {
min-width: 35px;
max-width: 60px;
}
.timecode input {
border-color: #515763;
}
.list-group-header {
2021-03-23 05:43:41 -04:00
height: 47px;
}
.playlist-list-group, #playlist-group {
height: 100%;
}
#scroll-container {
2021-03-23 05:43:41 -04:00
height: calc(100% - 47px);
}
.playlist-item {
height: 52px;
}
2020-04-24 07:58:47 -04:00
.playlist-item:nth-of-type(even), .playlist-item:nth-of-type(even) div .timecode input {
background-color: #3b424a;
}
.playlist-item:nth-of-type(even):hover {
background-color: #1C1E22;
2020-04-22 11:19:41 -04:00
}
.clip-progress {
height: 5px;
padding-top: 3px;
}
.active-playlist-clip {
background-color: #565e6a !important;
}
2021-10-31 09:59:21 -04:00
.filename {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
2020-04-07 11:56:46 -04:00
</style>
<style>
.copy-program {
width: 302px !important;
}
</style>