Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Registered User xiaojun789's Avatar
    Join Date
    Sep 2007
    Posts
    16
    hi all,
    I want to implement a video player application. and the UI part I want to use QML, and play core using the Qt mobility. but there is a question for me , how to output the the video window to QML UI part. Thanks in advance for your kindly reply....

  2. #2
    Nokia Developer Moderator gnuton's Avatar
    Join Date
    Mar 2009
    Posts
    1,024

  3. #3
    Registered User xiaojun789's Avatar
    Join Date
    Sep 2007
    Posts
    16
    Thanks~!,
    yes,I know QML provide the video element for video playing.but it can't run successfully on N900. I wan't using mobility to play the video, but how to show the video window using QML is big problem for me

  4. #4
    Nokia Developer Champion gaba88's Avatar
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,701
    hello xiaojun789

    i am still not clear by your problem to show video window, if you can get some more illustration than that will be cool.

    BTW try reading this wiki article http://www.developer.nokia.com/Commu..._player_in_QML about using Video Element in QML.

  5. #5
    Registered User xiaojun789's Avatar
    Join Date
    Sep 2007
    Posts
    16
    hi gaba88,
    I want to implement a video player, like you give me the link shows. but there is some different with that one. I want to use QtMobiliyty multimedia tool to play the video(using QMediaPlayer).
    my problem is how to show the video played by QMediaPlayer?

  6. #6
    Nokia Developer Champion gaba88's Avatar
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,701
    ok i think i understood your problem.

    I guess you have all rest UI things with QML and you want to simple implement the video player using QtMobility QMediaPlayer class. For this you can have couple of options:

    1. You can simple call a c++ function from your QML code in which you will we showing your widget which has the video player.
    2. using QtMobility classes you can write your own QML plugin and use that in your QML files.

  7. #7
    Registered User xiaojun789's Avatar
    Join Date
    Sep 2007
    Posts
    16
    hi gaba88,
    Thanks. Can you give some example Code for the option 1???
    BRs

  8. #8
    Nokia Developer Champion gaba88's Avatar
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,701
    please have a look this Qt Doc link http://doc.qt.nokia.com/4.7/qtbinding.html.

    But simple you need to expose your Qt C++ object to QML files using QDeclarativeContext::SetContextProperty and then you can call a function of that class using same object.

    Please read the doc and then try what i told you.

  9. #9
    Registered User xiaojun789's Avatar
    Join Date
    Sep 2007
    Posts
    16
    hi
    I implement a widget and expose to the QML, the QML can call the widget the function and proporty. but how to show the widget in the QML layout?
    Thanks~!

  10. #10
    Nokia Developer Champion gaba88's Avatar
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,701
    did you try calling yourwidget->show() in the function which are you calling from the QML code??

  11. #11
    Registered User xiaojun789's Avatar
    Join Date
    Sep 2007
    Posts
    16
    yes, I have already try, and when I call the show function, the widget will show as a windows. you know as we don't set the parent to the widget. I also set the widget's parent to QDecllarativeView, the widget will show in the QML view, but we can't manual layout this widget. do you have any good idea?? Thanks a lot......

  12. #12
    Registered User csu_nj's Avatar
    Join Date
    Jul 2008
    Posts
    142
    I use qml video, but get the info defaultServiceProvider::requestService(): no service found for - "com.nokia.qt.mediaplayer")

  13. #13
    Registered User xiaojun789's Avatar
    Join Date
    Sep 2007
    Posts
    16
    I use this in Maemo develop environment or Ubuntu. if I use the QtSDK directly, also has that problem..
    Quote Originally Posted by csu_nj View Post
    I use qml video, but get the info defaultServiceProvider::requestService(): no service found for - "com.nokia.qt.mediaplayer")

  14. #14
    Registered User csu_nj's Avatar
    Join Date
    Jul 2008
    Posts
    142
    thanks.now I try it in nokia n97mini, using the example,http://www.developer.nokia.com/Commu..._player_in_QML,but only audio, no pictures Displayed. and I get the debug info:
    [Qt Message] Play Button Clicked
    [Qt Message] QGraphicsVideoItem:aint
    [Qt Message] set video display rect: QRect(0,42 360x528)
    ------ Statistics of Post Processor ------
    Pictures Received : 0
    Pictures Displayed: 0
    Pictures Skipped : 0
    ------------------------------------------
    [Qt Message] QGraphicsVideoItem:aint
    [Qt Message] set video display rect: QRect(0,186 360x240)

  15. #15
    Nokia Developer Champion gaba88's Avatar
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,701
    hello csu_nj

    just checked the code in my E7. as i dont use a N97 Mini Now ;-( and it worked good there was no problem like that which you have mentioned.

Page 1 of 2 12 LastLast

Similar Threads

  1. How to call/load another QML file from QML ?
    By cadlg in forum [Archived] Qt Quick
    Replies: 5
    Last Post: 2011-07-28, 09:15
  2. [moved] video streaming using qml
    By kotesh.06521 in forum [Archived] Qt Quick
    Replies: 1
    Last Post: 2011-03-04, 13:23
  3. how to display a new window
    By delicowa in forum [Archived] Beginning Qt
    Replies: 22
    Last Post: 2011-01-28, 07:26
  4. How to display jpeg image on separate window
    By amol_benare604 in forum Symbian C++
    Replies: 2
    Last Post: 2009-03-21, 11:00
  5. Replies: 3
    Last Post: 2008-08-11, 05:11

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved