×

Discussion Board

Results 1 to 2 of 2

Thread: media player

  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    95

    media player

    how to play a video using qt mobility api
    this is my code

    QMediaPlayer player ;
    QMediaPlaylist playlist;
    playlist.addMedia(QUrl("http://www.youtube.com/watch?v=JKAnROktnbY&feature=share"));
    playlist.setCurrentIndex(0);
    player.setPlaylist(&playlist);
    player.play();
    if (!player.isAvailable()) {
    QMessageBox::warning(0, ("Service not available"),
    ("The QMediaPlayer object does not have a valid service.\n"\
    "Please check the media service plugins are installed."));
    }

    QVideoWidget widget;
    player.setVideoOutput(&widget);
    widget.show();



    it only show black screen

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,169

    Re: media player

    I would suggest you to check our wiki for examples, here's one to get you started: http://www.developer.nokia.com/Commu...ilityYouPlayer

Similar Threads

  1. How to play media file in System media player in j2me????
    By mohammad_kaied in forum Mobile Java Media (Graphics & Sounds)
    Replies: 14
    Last Post: 2014-05-25, 14:57
  2. Things I miss in new Media Player and prefer old Music Player instead.
    By haroonbarech in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2012-04-12, 06:27
  3. e51 media player hangs on microSD media scaning
    By antonioriva in forum Audio
    Replies: 0
    Last Post: 2009-08-09, 20:50
  4. Replies: 1
    Last Post: 2008-10-15, 16:08

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×