fullscreen video
This commit is contained in:
parent
5dfd8b01b4
commit
96590718d3
1 changed files with 5 additions and 1 deletions
|
@ -3057,7 +3057,11 @@ const app = new Vue({
|
||||||
fullscreen(flag){
|
fullscreen(flag){
|
||||||
if (flag) {
|
if (flag) {
|
||||||
ipcRenderer.send('setFullScreen', true);
|
ipcRenderer.send('setFullScreen', true);
|
||||||
|
if (app.mk.nowPlayingItem.type && !app.mk.nowPlayingItem.type.toLowerCase().includes("video")){
|
||||||
|
document.querySelector('video#apple-music-video-player').requestFullscreen()
|
||||||
|
} else {
|
||||||
app.appMode = 'fullscreen';
|
app.appMode = 'fullscreen';
|
||||||
|
}
|
||||||
document.addEventListener('keydown', event => {
|
document.addEventListener('keydown', event => {
|
||||||
if (event.key === 'Escape' && app.appMode === 'fullscreen') {
|
if (event.key === 'Escape' && app.appMode === 'fullscreen') {
|
||||||
this.fullscreen(false);
|
this.fullscreen(false);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue