Results 1 to 6 of 6

Thread: playing mplayer within a Qwidget in windows environment

  1. #1
    Join Date
    Mar 2008
    Posts
    7
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default playing mplayer within a Qwidget in windows environment

    i am trying for play mplayer within a qwidget in windows environment.

    qxmp a mplayer developed in qt4 for linux & unix.

    problum is windows qt4 not support QX11EmbedContainer .




    qxmp a mplayer for linux & unix





    QX11EmbedContainer *container=new QX11EmbedContainer(ui.frame);

    command=otherOptions+mplayerOptions+" -wid "+QString::number(container->winId())+" -zoom -vf scale="+QString::number(w)+":"+QString::number(h)+ " -slave "+playfile;

    mp->start("mplayer "+command);



    another way is

    void VistaVideoMedia:: playMplayer()
    {
    QWidget *player;
    player =new QWidget(0);
    mp=new QProcess(0);
    player ->setGeometry(0,0,500,400);//this set the geometry of player
    QString program = "mplayer";
    QStringList argu;


    argu<< "-fs" <<"-cache"<<"45231"<< "-slave" << "-wid"<<QString ::number(player->winId()) <<"-playlist"<<"playlist.txt";

    mp->start(program,argu);
    player->show();
    }


    problum come in this i cannot pass media id.


    if you have any idea told me.

    thanks in advance
    Last edited by ag.sitesh; 15th April 2008 at 07:06.

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: playing mplayer within a Qwidget in windows environment

    Is this same prob as -
    http://www.qtcentre.org/forum/f-qt-p...get-13043.html


    seems u two are one people or working in same company

  3. #3
    Join Date
    Mar 2008
    Posts
    7
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: playing mplayer within a Qwidget in windows environment

    working in same company

    but you say nothing about problum solution
    Last edited by ag.sitesh; 15th April 2008 at 13:10.

  4. #4
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: playing mplayer within a Qwidget in windows environment

    probably u didnt read that thread completely.
    There was advised to look for Phonon in upcoming 4.4 + version of Qt.

  5. #5
    Join Date
    Mar 2008
    Posts
    7
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: playing mplayer within a Qwidget in windows environment

    i read it but problum is we cannot use windows media player because it not support all type of media.

    so i want use MPlayer.
    Phonon is used for windows media player

  6. #6
    Join Date
    Mar 2008
    Posts
    7
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Talking Re: playing mplayer within a Qwidget in windows environment


    i solve it ...............

    i play mplayer in qwidget in windows o/s................

Similar Threads

  1. Playing mplayer inside QWidget
    By sinha.ashish in forum Qt Programming
    Replies: 21
    Last Post: 14th January 2011, 12:14
  2. problem with indexes
    By MarkoSan in forum Qt Programming
    Replies: 5
    Last Post: 10th December 2007, 14:55

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.