Results 1 to 6 of 6

Thread: playing mplayer within a Qwidget in windows environment

Threaded View

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

    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.

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
  •  
Qt is a trademark of The Qt Company.