|
|
@ -4,11 +4,11 @@ |
|
|
|
|
|
|
|
|
|
|
|
import "../" |
|
|
|
import "../" |
|
|
|
import "../ui/media" |
|
|
|
import "../ui/media" |
|
|
|
import QtMultimedia 5.15 |
|
|
|
import QtMultimedia |
|
|
|
import QtQuick 2.15 |
|
|
|
import QtQuick |
|
|
|
import QtQuick.Controls 2.15 |
|
|
|
import QtQuick.Controls |
|
|
|
import QtQuick.Layouts 1.15 |
|
|
|
import QtQuick.Layouts |
|
|
|
import im.nheko 1.0 |
|
|
|
import im.nheko |
|
|
|
|
|
|
|
|
|
|
|
Item { |
|
|
|
Item { |
|
|
|
id: content |
|
|
|
id: content |
|
|
@ -36,12 +36,12 @@ Item { |
|
|
|
id: mxcmedia |
|
|
|
id: mxcmedia |
|
|
|
|
|
|
|
|
|
|
|
// TODO: Show error in overlay or so? |
|
|
|
// TODO: Show error in overlay or so? |
|
|
|
onError: console.log(error) |
|
|
|
|
|
|
|
roomm: room |
|
|
|
roomm: room |
|
|
|
// desiredVolume is a float from 0.0 -> 1.0, MediaPlayer volume is an int from 0 to 100 |
|
|
|
audioOutput: AudioOutput { |
|
|
|
// this value automatically gets clamped for us between these two values. |
|
|
|
|
|
|
|
volume: mediaControls.desiredVolume * 100 |
|
|
|
|
|
|
|
muted: mediaControls.muted |
|
|
|
muted: mediaControls.muted |
|
|
|
|
|
|
|
volume: mediaControls.desiredVolume |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
videoOutput: videoOutput |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Rectangle { |
|
|
|
Rectangle { |
|
|
@ -68,8 +68,6 @@ Item { |
|
|
|
clip: true |
|
|
|
clip: true |
|
|
|
anchors.fill: parent |
|
|
|
anchors.fill: parent |
|
|
|
fillMode: VideoOutput.PreserveAspectFit |
|
|
|
fillMode: VideoOutput.PreserveAspectFit |
|
|
|
source: mxcmedia |
|
|
|
|
|
|
|
flushMode: VideoOutput.FirstFrame |
|
|
|
|
|
|
|
orientation: mxcmedia.orientation |
|
|
|
orientation: mxcmedia.orientation |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|