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) {
|
||||
if (window && window.store) {
|
||||
const state = window.store.getState();
|
||||
const { uri: playingUri } = selectPlayingUri(state);
|
||||
const playingUri = selectPlayingUri(state);
|
||||
const primaryUri = selectPrimaryUri(state);
|
||||
const onFilePage = playingUri === primaryUri;
|
||||
if (!onFilePage || isEmbedded) {
|
||||
|
@ -246,8 +246,9 @@ const recsys = {
|
|||
onNavigate: function () {
|
||||
if (window && window.store) {
|
||||
const state = window.store.getState();
|
||||
const { uri: playingUri } = selectPlayingUri(state);
|
||||
const claim = makeSelectClaimForUri(playingUri)(state);
|
||||
const playingUri = selectPlayingUri(state);
|
||||
const actualPlayingUri = playingUri && playingUri.uri;
|
||||
const claim = makeSelectClaimForUri(actualPlayingUri)(state);
|
||||
const playingClaimId = claim ? claim.claim_id : null;
|
||||
// const primaryUri = selectPrimaryUri(state);
|
||||
const floatingPlayer = selectClientSetting(state, SETTINGS.FLOATING_PLAYER);
|
||||
|
|
|
@ -64,9 +64,14 @@
|
|||
transform: unset !important;
|
||||
border: unset;
|
||||
|
||||
.vjs-current-time {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.content__wrapper--floating {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
.content__floating-close {
|
||||
visibility: visible !important;
|
||||
display: inline;
|
||||
|
@ -86,6 +91,7 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.autoplay-countdown {
|
||||
display: none;
|
||||
}
|
||||
|
@ -106,7 +112,7 @@
|
|||
|
||||
.vjs-play-control {
|
||||
transform: unset !important;
|
||||
display: inline !important;
|
||||
display: none !important;
|
||||
position: fixed !important;
|
||||
top: 12px !important;
|
||||
left: calc(50% - 80px) !important;
|
||||
|
@ -116,6 +122,12 @@
|
|||
border-radius: 50% !important;
|
||||
opacity: 1 !important;
|
||||
pointer-events: unset !important;
|
||||
padding: 15px !important;
|
||||
|
||||
.vjs-icon-placeholder {
|
||||
font-size: 1.2rem !important;
|
||||
}
|
||||
|
||||
span {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
|
|
Loading…
Reference in a new issue