center play button

This commit is contained in:
DispatchCommit 2021-07-08 20:05:58 -07:00 committed by jessopb
parent b777669a7e
commit 8253f5e0dc
2 changed files with 17 additions and 3 deletions

View file

@ -19,7 +19,21 @@ import 'videojs-ima';
const isDev = process.env.NODE_ENV !== 'production'; const isDev = process.env.NODE_ENV !== 'production';
const macroUrl = const macroUrl =
'https://vast.aniview.com/api/adserver61/vast/?AV_PUBLISHERID=60afcbc58cfdb065440d2426&AV_CHANNELID=60b354389c7adb506d0bd9a4&AV_URL=[URL_MACRO]&cb=[TIMESTAMP_MACRO]&AV_WIDTH=[WIDTH_MACRO]&AV_HEIGHT=[HEIGHT_MACRO]&AV_SCHAIN=[SCHAIN_MACRO]&AV_CCPA=[CCPA_MACRO]&AV_GDPR=[GDPR_MACRO]&AV_CONSENT=[CONSENT_MACRO]&skip=true&skiptimer=5&usevslot=true&hidecontrols=false'; `https://vast.aniview.com/api/adserver61/vast/` +
`?AV_PUBLISHERID=60afcbc58cfdb065440d2426` +
`&AV_CHANNELID=60b354389c7adb506d0bd9a4` +
`&AV_URL=[URL_MACRO]` +
`&cb=[TIMESTAMP_MACRO]` +
`&AV_WIDTH=[WIDTH_MACRO]` +
`&AV_HEIGHT=[HEIGHT_MACRO]` +
`&AV_SCHAIN=[SCHAIN_MACRO]` +
`&AV_CCPA=[CCPA_MACRO]` +
`&AV_GDPR=[GDPR_MACRO]` +
`&AV_CONSENT=[CONSENT_MACRO]` +
`&skip=true` +
`&skiptimer=5` +
`&usevslot=true` +
`&hidecontrols=false`;
export type Player = { export type Player = {
on: (string, (any) => void) => void, on: (string, (any) => void) => void,
@ -492,7 +506,7 @@ export default React.memo<Props>(function VideoJs(props: Props) {
const wrapper = document.createElement('div'); const wrapper = document.createElement('div');
wrapper.setAttribute('data-vjs-player', 'true'); wrapper.setAttribute('data-vjs-player', 'true');
const el = document.createElement(isAudio ? 'audio' : 'video'); const el = document.createElement(isAudio ? 'audio' : 'video');
el.className = 'video-js'; el.className = 'video-js vjs-big-play-centered ';
wrapper.appendChild(el); wrapper.appendChild(el);
container.appendChild(wrapper); container.appendChild(wrapper);

View file

@ -580,7 +580,7 @@ video::-internal-media-controls-overlay-cast-button {
@extend .button--icon; @extend .button--icon;
@extend .button--play; @extend .button--play;
border: none; border: none;
position: static; /*position: static;*/
z-index: 2; z-index: 2;
.vjs-icon-placeholder { .vjs-icon-placeholder {