[Android-development] play a video
Lindeval Lima
lindeval.ufrr at gmail.com
Mon Feb 17 20:46:15 CET 2014
Why the code below does not work?
# Add more folders to ship with the application, here
folder_01.source = qml/app4
folder_01.target = QML
DEPLOYMENTFOLDERS = FOLDER_01
QT + = multimedia
# Additional import path used to resolve QML modules in Creator's code model
QML_IMPORT_PATH =
The #. Cpp file Which was generated for your project. Feel free to hack it.
SOURCES + = main.cpp
# Installation path
# = Target.path
# Please do not modify the Following two lines. Required for deployment.
include (qtquick2applicationviewer/qtquick2applicationviewer.pri)
qtcAddDeployment ()
import QtQuick 2.0
import QtMultimedia 5.0
Item {
MediaPlayer {
id: mediaplayer
source: "AULA.mp4"
}
VideoOutput {
anchors: parent.fill
source: mediaplayer
}
MouseArea {
id: playArea
anchors.fill: parent
onPressed: mediaplayer.play();
}
}
2014-02-17 15:23 GMT-04:00 Lindeval Lima <lindeval.ufrr at gmail.com>:
> Hello everybody! How do I play a video using qtquick for android 2.0?
>
> --
> Prof. Lindeval Fernandes de Lima
> (95) 81235852
>
>
>
--
Prof. Lindeval Fernandes de Lima
(95) 81235852
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/android-development/attachments/20140217/51394e68/attachment.html>
More information about the Android-development
mailing list