Fix player current time
undo Fix play fix play hide play
This commit is contained in:
parent
9ac64eb6a7
commit
fa1cfc4882
2 changed files with 17 additions and 4 deletions
|
@ -197,7 +197,7 @@ const recsys = {
|
||||||
onPlayerDispose: function (claimId, isEmbedded) {
|
onPlayerDispose: function (claimId, isEmbedded) {
|
||||||
if (window && window.store) {
|
if (window && window.store) {
|
||||||
const state = window.store.getState();
|
const state = window.store.getState();
|
||||||
const { uri: playingUri } = selectPlayingUri(state);
|
const playingUri = selectPlayingUri(state);
|
||||||
const primaryUri = selectPrimaryUri(state);
|
const primaryUri = selectPrimaryUri(state);
|
||||||
const onFilePage = playingUri === primaryUri;
|
const onFilePage = playingUri === primaryUri;
|
||||||
if (!onFilePage || isEmbedded) {
|
if (!onFilePage || isEmbedded) {
|
||||||
|
@ -246,8 +246,9 @@ const recsys = {
|
||||||
onNavigate: function () {
|
onNavigate: function () {
|
||||||
if (window && window.store) {
|
if (window && window.store) {
|
||||||
const state = window.store.getState();
|
const state = window.store.getState();
|
||||||
const { uri: playingUri } = selectPlayingUri(state);
|
const playingUri = selectPlayingUri(state);
|
||||||
const claim = makeSelectClaimForUri(playingUri)(state);
|
const actualPlayingUri = playingUri && playingUri.uri;
|
||||||
|
const claim = makeSelectClaimForUri(actualPlayingUri)(state);
|
||||||
const playingClaimId = claim ? claim.claim_id : null;
|
const playingClaimId = claim ? claim.claim_id : null;
|
||||||
// const primaryUri = selectPrimaryUri(state);
|
// const primaryUri = selectPrimaryUri(state);
|
||||||
const floatingPlayer = selectClientSetting(state, SETTINGS.FLOATING_PLAYER);
|
const floatingPlayer = selectClientSetting(state, SETTINGS.FLOATING_PLAYER);
|
||||||
|
|
|
@ -64,9 +64,14 @@
|
||||||
transform: unset !important;
|
transform: unset !important;
|
||||||
border: unset;
|
border: unset;
|
||||||
|
|
||||||
|
.vjs-current-time {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
.content__wrapper--floating {
|
.content__wrapper--floating {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
.content__floating-close {
|
.content__floating-close {
|
||||||
visibility: visible !important;
|
visibility: visible !important;
|
||||||
display: inline;
|
display: inline;
|
||||||
|
@ -86,6 +91,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.autoplay-countdown {
|
.autoplay-countdown {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
@ -106,7 +112,7 @@
|
||||||
|
|
||||||
.vjs-play-control {
|
.vjs-play-control {
|
||||||
transform: unset !important;
|
transform: unset !important;
|
||||||
display: inline !important;
|
display: none !important;
|
||||||
position: fixed !important;
|
position: fixed !important;
|
||||||
top: 12px !important;
|
top: 12px !important;
|
||||||
left: calc(50% - 80px) !important;
|
left: calc(50% - 80px) !important;
|
||||||
|
@ -116,6 +122,12 @@
|
||||||
border-radius: 50% !important;
|
border-radius: 50% !important;
|
||||||
opacity: 1 !important;
|
opacity: 1 !important;
|
||||||
pointer-events: unset !important;
|
pointer-events: unset !important;
|
||||||
|
padding: 15px !important;
|
||||||
|
|
||||||
|
.vjs-icon-placeholder {
|
||||||
|
font-size: 1.2rem !important;
|
||||||
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|
Loading…
Reference in a new issue