2020-09-26 00:51:37 +00:00
|
|
|
import QtQuick 2.6
|
|
|
|
import Sailfish.Silica 1.0
|
|
|
|
import nl.netsoj.chris.Jellyfin 1.0
|
2020-09-25 13:21:08 +00:00
|
|
|
|
2020-09-26 00:51:37 +00:00
|
|
|
import ".."
|
|
|
|
import "../../Utils.js" as Utils
|
2020-09-25 13:21:08 +00:00
|
|
|
|
2020-09-26 00:51:37 +00:00
|
|
|
Column {
|
|
|
|
property var itemData
|
|
|
|
spacing: Theme.paddingMedium
|
|
|
|
|
|
|
|
PlayToolbar {
|
|
|
|
onPlayPressed: pageStack.push(Qt.resolvedUrl("../../pages/VideoPage.qml"),
|
|
|
|
{"itemId": itemId, "itemData": itemData, "audioTrack": trackSelector.audioTrack,
|
|
|
|
"subtitleTrack": trackSelector.subtitleTrack })
|
|
|
|
}
|
|
|
|
|
|
|
|
VideoTrackSelector {
|
|
|
|
id: trackSelector
|
|
|
|
width: parent.width
|
|
|
|
tracks: itemData.MediaStreams
|
|
|
|
}
|
|
|
|
|
|
|
|
PlainLabel {
|
|
|
|
id: tinyDetails
|
|
|
|
text: qsTr("Released: %1 — Run time: %2").arg(itemData.ProductionYear).arg(Utils.ticksToText(itemData.RunTimeTicks))
|
|
|
|
}
|
|
|
|
|
|
|
|
PlainLabel {
|
|
|
|
id: overviewText
|
|
|
|
text: itemData.Overview
|
|
|
|
font.pixelSize: Theme.fontSizeSmall
|
|
|
|
color: Theme.secondaryHighlightColor
|
|
|
|
}
|
2020-09-25 13:21:08 +00:00
|
|
|
}
|