Changeset a10edeec0fbf5a5f6e3dabd03ca3af6e428fe08f

Show
Ignore:
Timestamp:
25/06/08 03:38:33 (4 months ago)
Author:
Jean-Baptiste Kempf <jb@videolan.org>
git-committer:
Jean-Baptiste Kempf <jb@videolan.org> 1214357913 -0700
git-parent:

[16bf241c0ef8cb5ad5905817233af703080ed654]

git-author:
Jean-Baptiste Kempf <jb@videolan.org> 1214357862 -0700
Message:

Add RTMP option on the panel.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/gui/qt4/components/open_panels.cpp

    r16bf241 ra10edee  
    426426    ui.protocolCombo->addItem("UDP/RTP (unicast)", QVariant("udp")); 
    427427    ui.protocolCombo->addItem("UDP/RTP (multicast)", QVariant("udp")); 
     428    ui.protocolCombo->addItem("RTMP", QVariant("rtmp")); 
    428429} 
    429430 
     
    439440    QString proto = ui.protocolCombo->itemData( idx_proto ).toString(); 
    440441 
    441     ui.timeShift->setEnabled( idx_proto >= UDP_PROTO ); 
     442    ui.timeShift->setEnabled( idx_proto == UDP_PROTO || 
     443                              idx_proto == UDPM_PROTO ); 
    442444    ui.ipv6->setEnabled( idx_proto == UDP_PROTO ); 
    443445    ui.addressText->setEnabled( idx_proto != UDP_PROTO ); 
    444     ui.portSpin->setEnabled( idx_proto >= UDP_PROTO ); 
     446    ui.portSpin->setEnabled( idx_proto == UDP_PROTO || 
     447                             idx_proto == UDPM_PROTO ); 
    445448 
    446449    if( idx_proto == NO_PROTO ) return; 
     
    515518            mrl += QString(":%1").arg( ui.portSpin->value() ); 
    516519            emit methodChanged("udp-caching"); 
     520        case RTMP_PROTO: 
     521            mrl = "rtmp://" + addr; 
     522            emit methodChanged("rtmp-caching"); 
     523            break; 
     524 
    517525        } 
    518526    } 
  • modules/gui/qt4/components/open_panels.hpp

    r16bf241 ra10edee  
    5858    RTSP_PROTO, 
    5959    UDP_PROTO, 
    60     UDPM_PROTO 
     60    UDPM_PROTO, 
     61    RTMP_PROTO 
    6162}; 
    6263