Fix fullscreen playback on some devices.
This commit is contained in:
parent
a18f8486c4
commit
cea08c6762
2 changed files with 20 additions and 3 deletions
|
@ -1,7 +1,24 @@
|
|||
#!/bin/bash
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2020-present redwolftech
|
||||
# Copyright (C) 2020-present Fewtarius
|
||||
|
||||
. /etc/profile
|
||||
|
||||
jslisten set "mpv"
|
||||
/usr/bin/mpv --input-ipc-server=/tmp/mpvsocket "${1}"
|
||||
|
||||
FBHEIGHT=$(fbset | awk '/geometry/ {print $2}')
|
||||
FBWIDTH=$(fbset | awk '/geometry/ {print $3}')
|
||||
|
||||
ASPECT=$(printf "%.2f" $(echo "(${FBWIDTH} / ${FBHEIGHT})" | bc -l))
|
||||
|
||||
case ${ASPECT} in
|
||||
1.*)
|
||||
RES="${FBWIDTH}x${FBHEIGHT}"
|
||||
;;
|
||||
0.*)
|
||||
RES="${FBHEIGHT}x${FBWIDTH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
/usr/bin/mpv --fullscreen --geometry=${RES} --hwdec=auto --input-ipc-server=/tmp/mpvsocket "${1}"
|
||||
exit 0
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Copyright (C) 2022-present Fewtarius
|
||||
|
||||
PKG_NAME="mpv"
|
||||
PKG_VERSION="25b66256d7ff48254b2055a066e29f260414112f"
|
||||
PKG_VERSION="031e172"
|
||||
PKG_LICENSE="GPLv2+"
|
||||
PKG_SITE="https://github.com/mpv-player/mpv"
|
||||
PKG_URL="${PKG_SITE}/archive/${PKG_VERSION}.tar.gz"
|
||||
|
|
Loading…
Reference in a new issue