mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-07 03:22:33 +01:00
Fix video rendering for macOS
This commit is contained in:
parent
b0cd5bc984
commit
ef6dc7bc17
@ -48,12 +48,19 @@ install_it.path = $${OUT_PWD}/../ScreenPlaySDK
|
|||||||
QMAKE_LIBDIR += $$OUT_PWD/../ScreenPlaySDK
|
QMAKE_LIBDIR += $$OUT_PWD/../ScreenPlaySDK
|
||||||
}
|
}
|
||||||
|
|
||||||
|
macx: {
|
||||||
|
html_data.files = index.html
|
||||||
|
html_data.path = Contents/MacOS
|
||||||
|
QMAKE_BUNDLE_DATA += html_data
|
||||||
|
}
|
||||||
|
|
||||||
|
!macx: {
|
||||||
install_it.files += index.html \
|
install_it.files += index.html \
|
||||||
|
|
||||||
INSTALLS += install_it
|
INSTALLS += install_it
|
||||||
|
|
||||||
DISTFILES += \
|
DISTFILES += \
|
||||||
index.html
|
index.html
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# Additional import path used to resolve QML modules in Qt Creator's code model
|
# Additional import path used to resolve QML modules in Qt Creator's code model
|
||||||
QML_IMPORT_PATH =
|
QML_IMPORT_PATH =
|
||||||
|
@ -3,16 +3,19 @@
|
|||||||
<head>
|
<head>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
video {
|
video {
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
object-fit: fill;
|
object-fit: fill;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
height: 100%;
|
background:black;
|
||||||
background:black;
|
|
||||||
}
|
}
|
||||||
body, html{
|
body, html{
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background:black;
|
background:orange;
|
||||||
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
Loading…
Reference in New Issue
Block a user