BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJMEDIA Reference

event.h File Reference

Event framework. More...

Data Structures

struct  pjmedia_event_fmt_changed_data
 
struct  pjmedia_event_dummy_data
 
struct  pjmedia_event_wnd_resized_data
 
struct  pjmedia_event_wnd_closing_data
 
struct  pjmedia_event_aud_dev_err_data
 
struct  pjmedia_event_vid_dev_err_data
 
struct  pjmedia_event_media_tp_err_data
 
struct  pjmedia_event
 

Macros

#define PJMEDIA_EVENT_DATA_MAX_SIZE   sizeof(pjmedia_event_fmt_changed_data)
 

Typedefs

typedef pjmedia_event_dummy_data pjmedia_event_wnd_closed_data
 
typedef pjmedia_event_dummy_data pjmedia_event_mouse_btn_down_data
 
typedef pjmedia_event_dummy_data pjmedia_event_keyframe_found_data
 
typedef pjmedia_event_dummy_data pjmedia_event_keyframe_missing_data
 
typedef char pjmedia_event_user_data[sizeof(pjmedia_event_fmt_changed_data)]
 
typedef pj_status_t pjmedia_event_cb(pjmedia_event *event, void *user_data)
 
typedef struct pjmedia_event_mgr pjmedia_event_mgr
 

Enumerations

enum  pjmedia_event_type {
  PJMEDIA_EVENT_NONE ,
  PJMEDIA_EVENT_FMT_CHANGED = PJMEDIA_FOURCC('F', 'M', 'C', 'H') ,
  PJMEDIA_EVENT_WND_CLOSING = PJMEDIA_FOURCC('W', 'N', 'C', 'L') ,
  PJMEDIA_EVENT_WND_CLOSED = PJMEDIA_FOURCC('W', 'N', 'C', 'O') ,
  PJMEDIA_EVENT_WND_RESIZED = PJMEDIA_FOURCC('W', 'N', 'R', 'Z') ,
  PJMEDIA_EVENT_MOUSE_BTN_DOWN = PJMEDIA_FOURCC('M', 'S', 'D', 'N') ,
  PJMEDIA_EVENT_KEYFRAME_FOUND = PJMEDIA_FOURCC('I', 'F', 'R', 'F') ,
  PJMEDIA_EVENT_KEYFRAME_MISSING = PJMEDIA_FOURCC('I', 'F', 'R', 'M') ,
  PJMEDIA_EVENT_ORIENT_CHANGED = PJMEDIA_FOURCC('O', 'R', 'N', 'T') ,
  PJMEDIA_EVENT_RX_RTCP_FB = PJMEDIA_FOURCC('R', 'T', 'F', 'B') ,
  PJMEDIA_EVENT_AUD_DEV_ERROR = PJMEDIA_FOURCC('A', 'E', 'R', 'R') ,
  PJMEDIA_EVENT_VID_DEV_ERROR = PJMEDIA_FOURCC('V', 'E', 'R', 'R') ,
  PJMEDIA_EVENT_MEDIA_TP_ERR = PJMEDIA_FOURCC('T', 'E', 'R', 'R') ,
  PJMEDIA_EVENT_CALLBACK = PJMEDIA_FOURCC('C', 'B', ' ', ' ')
}
 
enum  pjmedia_event_publish_flag {
  PJMEDIA_EVENT_PUBLISH_DEFAULT ,
  PJMEDIA_EVENT_PUBLISH_POST_EVENT = 1
}
 
enum  pjmedia_event_mgr_flag { PJMEDIA_EVENT_MGR_NO_THREAD = 1 }
 

Functions

pj_status_t pjmedia_event_mgr_create (pj_pool_t *pool, unsigned options, pjmedia_event_mgr **mgr)
 
pjmedia_event_mgrpjmedia_event_mgr_instance (void)
 
void pjmedia_event_mgr_set_instance (pjmedia_event_mgr *mgr)
 
void pjmedia_event_mgr_destroy (pjmedia_event_mgr *mgr)
 
void pjmedia_event_init (pjmedia_event *event, pjmedia_event_type type, const pj_timestamp *ts, const void *src)
 
pj_status_t pjmedia_event_subscribe (pjmedia_event_mgr *mgr, pjmedia_event_cb *cb, void *user_data, void *epub)
 
pj_status_t pjmedia_event_unsubscribe (pjmedia_event_mgr *mgr, pjmedia_event_cb *cb, void *user_data, void *epub)
 
pj_status_t pjmedia_event_publish (pjmedia_event_mgr *mgr, void *epub, pjmedia_event *event, pjmedia_event_publish_flag flag)
 

 


PJMEDIA small footprint Open Source media stack
Copyright (C) 2006-2008 Teluu Inc.