~jhodapp/+junk/mediaplayer-app-gst-1.0

« back to all changes in this revision

Viewing changes to src/qml/player/VideoPlayer.qml

  • Committer: Tarmac
  • Author(s): Renato Araujo Oliveira Filho, Kaleo
  • Date: 2013-07-02 22:39:16 UTC
  • mfrom: (111.1.4 new_theming)
  • Revision ID: tarmac-20130702223916-sp3appfuyeescaj5
* Adapt slider to newer and simpler toolkit's theming infrastructure.
* Fixed autopilot tests.
* Changed test video file.

Approved by PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
    property string uri
34
34
    property bool rotating: false   
35
35
    property alias controlsActive: _controls.active
 
36
    property bool componentLoaded: false
36
37
 
37
38
    signal timeClicked
38
39
 
43
44
 
44
45
    function playUri(uri) {
45
46
        source = uri
46
 
        play()
 
47
        if (componentLoaded) {
 
48
            play()
 
49
        }
 
50
    }
 
51
 
 
52
    Component.onCompleted: {
 
53
        componentLoaded = true
 
54
        if ((state !== "playing") && (source != "")) {
 
55
            play()
 
56
        }
47
57
    }
48
58
 
49
59
    function edgeEvent(event) {