Changeset 414 for pjproject


Ignore:
Timestamp:
Apr 27, 2006 11:48:08 PM (19 years ago)
Author:
bennylp
Message:

Fixed obsolete comments in stream.h and session.h about stream transmitting media immediately

Location:
pjproject/trunk/pjmedia/include/pjmedia
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/session.h

    r390 r414  
    8989 
    9090/** 
    91  * Create media session based on the local and remote SDP. 
    92  * The session will start immediately. 
    93  * 
     91 * Create media session based on the local and remote SDP. After the session 
     92 * has been created, application normally would want to get the media port  
     93 * interface of each streams, by calling #pjmedia_session_get_port(). The  
     94 * media port interface exports put_frame() and get_frame() function, used 
     95 * to transmit and receive media frames from the stream. 
     96 * 
     97 * Without application calling put_frame() and get_frame(), there will be  
     98 * no media frames transmitted or received by the session. 
     99 *  
    94100 * @param endpt         The PJMEDIA endpoint instance. 
    95101 * @param stream_cnt    Maximum number of streams to be created. This 
     
    119125 
    120126/** 
    121  * Get session info. 
     127 * Get media session info of the session. 
    122128 * 
    123129 * @param session       The session which info is being queried. 
     
    132138/** 
    133139 * Activate all streams in media session for the specified direction. 
     140 * Application only needs to call this function if it previously paused 
     141 * the session. 
    134142 * 
    135143 * @param session       The media session. 
     
    199207 
    200208/** 
    201  * Get the port interface for the specified stream. 
     209 * Get the media port interface of the specified stream. The media port 
     210 * interface declares put_frame() and get_frame() function, which is the  
     211 * only  way for application to transmit and receive media frames from the 
     212 * stream. 
     213 * 
     214 * @param session       The media session. 
     215 * @param index         Stream index. 
     216 * @param p_port        Pointer to receive the media port interface for 
     217 *                      the specified stream. 
     218 * 
     219 * @return              PJ_SUCCESS on success. 
    202220 */ 
    203221PJ_DECL(pj_status_t) pjmedia_session_get_port( pjmedia_session *session, 
  • pjproject/trunk/pjmedia/include/pjmedia/stream.h

    r390 r414  
    8484 
    8585/** 
    86  * Create a media stream based on the specified stream parameter. 
    87  * All channels in the stream initially will be inactive. 
     86 * Create a media stream based on the specified parameter. After the stream 
     87 * has been created, application normally would want to get the media port  
     88 * interface of the streams, by calling pjmedia_stream_get_port(). The  
     89 * media port interface exports put_frame() and get_frame() function, used 
     90 * to transmit and receive media frames from the stream. 
     91 * 
     92 * Without application calling put_frame() and get_frame(), there will be  
     93 * no media frames transmitted or received by the stream. 
    8894 * 
    8995 * @param endpt         Media endpoint. 
     
    112118PJ_DECL(pj_status_t) pjmedia_stream_destroy(pjmedia_stream *stream); 
    113119 
    114 /** 
    115  * Get the port interface of the stream. 
     120 
     121/** 
     122 * Get the media port interface of the stream. The media port interface 
     123 * declares put_frame() and get_frame() function, which is the only  
     124 * way for application to transmit and receive media frames from the 
     125 * stream. 
    116126 * 
    117127 * @param stream        The media stream. 
Note: See TracChangeset for help on using the changeset viewer.