Advertisement
Eism

main.qml

Mar 4th, 2018
3,231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 0.56 KB | None | 0 0
  1. import QtQuick 2.0
  2. import QtQuick.Window 2.2
  3. import QtMultimedia 5.8
  4.  
  5. Window {
  6.     visible: true
  7.     width: 640
  8.     height: 480
  9.     title: qsTr("Hello World")
  10.  
  11.     Video{
  12.         id: video
  13.         objectName: "video"
  14.         anchors.fill: parent
  15.         autoPlay: true
  16.  
  17.         playlist: Playlist{
  18.             playbackMode: Playlist.Loop
  19.  
  20.             PlaylistItem{
  21.                 source: "file:///home/pi/Video/hd0-1.mp4"
  22.             }
  23.             PlaylistItem{
  24.                 source: "file:///home/pi/Video/hd0-2.mp4"
  25.             }
  26.         }
  27.     }  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement