import QtQuick 2.2
import QtMultimedia 5.0

Rectangle {
    width: 1280
    height: 720

    MediaPlayer {
        id: mediaPlayer
        autoLoad: true
        autoPlay: true
        loops: Audio.Infinite
        source: "file:///tmp/distorted.avi"

        onError: {
            if (MediaPlayer.NoError != error) {
                console.log("[qmlvideo] VideoItem.onError error " + error + " errorString " + errorString)
            }
        }
    }

    VideoOutput {
        anchors.fill: parent
        source: mediaPlayer
    }
}
