Warning, /utilities/kirogi/src/ui/components/VideoElement.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 2.12 0002 import org.kde.kirogi.video 0.1 as KirogiVideo 0003 0004 Item { 0005 Image { 0006 source: "fallback.jpg" 0007 smooth: true 0008 visible: !videoSurface.playing 0009 fillMode: Image.PreserveAspectCrop 0010 anchors.fill: parent 0011 } 0012 0013 Connections { 0014 target: kirogi 0015 0016 onCurrentVehicleChanged: { 0017 videoSurface.playing = kirogi.currentVehicle != null; 0018 } 0019 0020 onCurrentPageChanged: { 0021 videoSurface.playing = (kirogi.currentPage == page || kirogi.currentVehicle); 0022 } 0023 } 0024 0025 KirogiVideo.VideoReceiver { 0026 id: videoReceiver 0027 stringPipeline: kirogi.currentVehicle ? kirogi.currentVehicle.videoSource : "" 0028 } 0029 0030 KirogiVideo.VideoSurface { 0031 id: videoSurface 0032 videoReceiver: videoReceiver 0033 0034 width: parent.width 0035 height: kirogiSettings.stretchVideo ? parent.height : parent.width / 1.77 0036 } 0037 }