Results 1 to 4 of 4

Thread: video-streaming MythTV

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2010
    Posts
    13
    Qt products
    Qt3 Qt4 Qt/Embedded

    Default video-streaming MythTV

    Hello I have implemented a video streaming client based on a Qt MythUI client. There is a server implemented in JAVA for sending images an frames and threre is also other client developed in Qt for reveiving all the images and representing them . The code of the client is developed in a class called NetworkControl and it is the following :

    Qt Code:
    1. void NetworkControl::aceptar_conexiones()
    2. {
    3.  
    4. QTcpSocket *soket = new QTcpSocket(this);
    5. const QString direc ="xxxxxxxxxx";
    6. quint16 port = 4445;
    7. soket->connectToHOst(direc,port)
    8. connect(soket,SIGNAL(readyRead()),this,SLOT(leercaracter()))
    9.  
    10. }
    11.  
    12.  
    13.  
    14.  
    15.  
    16. void NetworkControl::leerCaracter()
    17. {
    18.  
    19. QTcpSocket *socket (QTcpSocket *)sender();
    20. QBYteArray *b1 = socket->readAll();
    21.  
    22. QImage ax= new QImage("xxxxxxxx");
    23.  
    24. ax->Load(b1);
    25.  
    26. }
    To copy to clipboard, switch view to plain text mode 

    I am working in a Mythtv system ( http://www.mythtv.org/wiki/User_Manu...l_Installation ) . I have the following doubts:

    1 - How to obtain a QByteArray from a a QImage ( is ax->Load(b1) the correct way of obtaining it ?)
    2 - I have to represent the QImage on a screen. I am working with the class MythImage ( http://www.cuymedia.net/mythtv-0.20/...8h-source.html ) y MythUIImage ( http://cuymedia.net/mythtv-trunk/myth
    uiimage_8h-source.html ) .
    How to convert from QImage to MythImage ? How to convert from MythImage to MythUIImage ?
    3- Is there other way of representing images in Mythtv ?
    Thanks
    Gorka
    Last edited by high_flyer; 27th April 2011 at 08:31. Reason: code tags

Similar Threads

  1. Video Streaming
    By Madhumitha in forum Newbie
    Replies: 1
    Last Post: 23rd February 2011, 07:31
  2. Video streaming
    By somnathbanik in forum Newbie
    Replies: 9
    Last Post: 4th November 2010, 10:38
  3. Video Streaming
    By stefandetter in forum Qt Programming
    Replies: 1
    Last Post: 4th June 2008, 09:59
  4. Video streaming with QT4
    By QiT in forum Qt Programming
    Replies: 1
    Last Post: 10th April 2008, 18:09

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.