GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
service.h File Reference
#include <gpac/mpeg4_odf.h>
#include <gpac/events.h>
#include <gpac/download.h>
#include <gpac/module.h>
+ Include dependency graph for service.h:
+ This graph shows which files directly or indirectly include this file:

Data Structures

struct  GF_NetComBase
 
struct  GF_NetComPlay
 
struct  GF_NetComConfig
 
struct  GF_NetComBuffer
 
struct  GF_NetComDuration
 
struct  GF_NetComGetDSI
 
struct  GF_NetComPadding
 
struct  GF_NetComMapTime
 
struct  GF_NetComDRMConfigPSSH
 
struct  GF_NetComDRMConfig
 
struct  GF_NetComGetESD
 
struct  GF_NetComStats
 
struct  GF_NetComPixelAR
 
struct  GF_NetComInfo
 
struct  GF_NetComHasAudio
 
struct  GF_NetComMigration
 
struct  GF_NetURLQuery
 
struct  GF_NetQualitySwitch
 
struct  GF_NetServiceStatus
 
struct  GF_MediaCapQuery
 
union  GF_NetworkCommand
 
struct  GF_InputService
 
struct  GF_StreamingCache
 

Macros

#define GF_NET_CLIENT_INTERFACE   GF_4CC('G', 'I', 'S', '1')
 
#define GF_STREAMING_MEDIA_CACHE   GF_4CC('G', 'M', 'C', 0x01)
 

Typedefs

typedef void * LPNETCHANNEL
 

Enumerations

enum  GF_NET_CHAN_CMD {
  GF_NET_CHAN_PLAY, GF_NET_CHAN_STOP, GF_NET_CHAN_PAUSE, GF_NET_CHAN_RESUME,
  GF_NET_CHAN_SET_SPEED, GF_NET_CHAN_CONFIG, GF_NET_CHAN_DURATION, GF_NET_CHAN_BUFFER,
  GF_NET_CHAN_BUFFER_QUERY, GF_NET_CHAN_GET_DSI, GF_NET_CHAN_SET_PADDING, GF_NET_CHAN_SET_PULL,
  GF_NET_CHAN_INTERACTIVE, GF_NET_CHAN_MAP_TIME, GF_NET_CHAN_RECONFIG, GF_NET_CHAN_DRM_CFG,
  GF_NET_CHAN_RESET, GF_NET_CHAN_GET_ESD, GF_NET_CHAN_GET_PIXEL_AR, GF_NET_BUFFER_QUERY,
  GF_NET_GET_STATS, GF_NET_IS_CACHABLE, GF_NET_SERVICE_INFO, GF_NET_SERVICE_HAS_AUDIO,
  GF_NET_SERVICE_FLUSH_DATA, GF_NET_SERVICE_HAS_FORCED_VIDEO_SIZE, GF_NET_SERVICE_MIGRATION_INFO, GF_NET_SERVICE_QUALITY_SWITCH,
  GF_NET_SERVICE_QUERY_NEXT, GF_NET_SERVICE_QUERY_INIT_RANGE, GF_NET_SERVICE_STATUS_PROXY, GF_NET_SERVICE_PROXY_CHUNK_RECEIVE,
  GF_NET_SERVICE_PROXY_SEGMENT_RECEIVE, GF_NET_SERVICE_MEDIA_CAP_QUERY
}
 

Functions

void gf_term_on_message (GF_ClientService *service, GF_Err error, const char *message)
 
void gf_term_on_connect (GF_ClientService *service, LPNETCHANNEL ns, GF_Err response)
 
void gf_term_on_disconnect (GF_ClientService *service, LPNETCHANNEL ns, GF_Err response)
 
void gf_term_on_command (GF_ClientService *service, GF_NetworkCommand *com, GF_Err response)
 
void gf_term_on_sl_packet (GF_ClientService *service, LPNETCHANNEL ns, char *data, u32 data_size, GF_SLHeader *hdr, GF_Err reception_status)
 
const char * gf_term_get_service_url (GF_ClientService *service)
 
void gf_term_add_media (GF_ClientService *service, GF_Descriptor *media_desc, Bool no_scene_update)
 
Bool gf_term_on_service_event (GF_ClientService *service, GF_Event *service_event)
 
Bool gf_term_check_extension (GF_InputService *ifce, const char *mimeType, const char *extList, const char *description, const char *fileExt)
 
void gf_term_register_mime_type (const GF_InputService *ifce, const char *mimeType, const char *extList, const char *description)
 
GF_InputServicegf_term_get_service_interface (GF_ClientService *service)
 
GF_DownloadSession * gf_term_download_new (GF_ClientService *service, const char *url, u32 flags, gf_dm_user_io user_io, void *cbk)
 
void gf_term_download_del (GF_DownloadSession *dnload)
 
void gf_term_download_update_stats (GF_DownloadSession *sess)
 

Data Structure Documentation

struct GF_NetComBase
+ Collaboration diagram for GF_NetComBase:
Data Fields
u32 command_type
LPNETCHANNEL on_channel
struct GF_NetComPlay
+ Collaboration diagram for GF_NetComPlay:
Data Fields
u32 command_type
LPNETCHANNEL on_channel
Double start_range
Double end_range
Double speed
Bool dash_segment_switch
Bool initial_broadcast_play
struct GF_NetComConfig
+ Collaboration diagram for GF_NetComConfig:
Data Fields
u32 command_type
LPNETCHANNEL on_channel
GF_SLConfig sl_config
u32 priority
u32 sync_id
u32 frame_duration
u32 sample_rate
Bool use_m2ts_sections
struct GF_NetComBuffer
+ Collaboration diagram for GF_NetComBuffer:
Data Fields
u32 command_type
LPNETCHANNEL on_channel
u32 min
u32 max
u32 occupancy
struct GF_NetComDuration
+ Collaboration diagram for GF_NetComDuration:
Data Fields
u32 command_type
LPNETCHANNEL on_channel
Double duration
struct GF_NetComGetDSI
+ Collaboration diagram for GF_NetComGetDSI:
Data Fields
u32 command_type
LPNETCHANNEL on_channel
char * dsi
u32 dsi_len
struct GF_NetComPadding
+ Collaboration diagram for GF_NetComPadding:
Data Fields
u32 command_type
LPNETCHANNEL on_channel
u32 padding_bytes
struct GF_NetComMapTime
+ Collaboration diagram for GF_NetComMapTime:
Data Fields
u32 command_type
LPNETCHANNEL on_channel
Double media_time
u64 timestamp
Bool reset_buffers
struct GF_NetComDRMConfigPSSH
+ Collaboration diagram for GF_NetComDRMConfigPSSH:
Data Fields
bin128 SystemID
u32 KID_count
bin128 * KIDs
u32 private_data_size
u8 * private_data
struct GF_NetComDRMConfig
+ Collaboration diagram for GF_NetComDRMConfig:
Data Fields
u32 command_type
LPNETCHANNEL on_channel
u32 scheme_version
u32 scheme_type
const char * scheme_uri
const char * kms_uri
const char * contentID
u32 oma_drm_crypt_type
Bool oma_drm_use_pad
Bool oma_drm_use_hdr
const char * oma_drm_textual_headers
u32 oma_drm_textual_headers_len
u8 hash[20]
u32 PSSH_count
GF_NetComDRMConfigPSSH * PSSHs
struct GF_NetComGetESD
+ Collaboration diagram for GF_NetComGetESD:
Data Fields
u32 command_type
LPNETCHANNEL on_channel
const GF_ESD * esd
Bool is_iod_stream
struct GF_NetComStats
+ Collaboration diagram for GF_NetComStats:
Data Fields
u32 command_type
LPNETCHANNEL on_channel
Float pck_loss_percentage
u16 port
u16 ctrl_port
u32 bw_up
u32 bw_down
u32 ctrl_bw_down
u32 ctrl_bw_up
u16 multiplex_port
struct GF_NetComPixelAR
+ Collaboration diagram for GF_NetComPixelAR:
Data Fields
u32 command_type
LPNETCHANNEL on_channel
u32 hSpacing
u32 vSpacing
u32 width
u32 height
u32 pixel_format
struct GF_NetComInfo
+ Collaboration diagram for GF_NetComInfo:
Data Fields
u32 command_type
LPNETCHANNEL on_channel
u32 track_info
u32 genre
const char * album
const char * artist
const char * comment
const char * composer
const char * name
const char * writer
struct GF_NetComHasAudio
+ Collaboration diagram for GF_NetComHasAudio:
Data Fields
u32 command_type
char * base_url
struct GF_NetComMigration
+ Collaboration diagram for GF_NetComMigration:
Data Fields
u32 command_type
char * data
u32 data_len
struct GF_NetURLQuery
+ Collaboration diagram for GF_NetURLQuery:
Data Fields
u32 command_type
Bool drop_first_segment
u32 dependent_representation_index
const char * next_url
u64 start_range
u64 end_range
u32 discontinuity_type
const char * next_url_init_or_switch_segment
u64 switch_start_range
u64 switch_end_range
Bool has_next
Bool current_download
Bool has_new_data
struct GF_NetQualitySwitch
+ Collaboration diagram for GF_NetQualitySwitch:
Data Fields
u32 command_type
LPNETCHANNEL on_channel
Bool up
struct GF_NetServiceStatus
+ Collaboration diagram for GF_NetServiceStatus:
Data Fields
u32 command_type
LPNETCHANNEL channel
GF_Err e
Bool is_disconnect
Bool is_add_media
GF_Descriptor * desc
struct GF_MediaCapQuery
+ Collaboration diagram for GF_MediaCapQuery:
Data Fields
u32 command_type
LPNETCHANNEL channel
u32 width
u32 height
u32 bpp
u32 channels
u32 sample_rate
const char * mime_query
const char * mime_params
Bool mime_supported
union GF_NetworkCommand
+ Collaboration diagram for GF_NetworkCommand:
Data Fields
u32 command_type
GF_NetComBase base
GF_NetComPlay play
GF_NetComConfig cfg
GF_NetComBuffer buffer
GF_NetComDuration duration
GF_NetComGetDSI get_dsi
GF_NetComPadding pad
GF_NetComMapTime map_time
GF_NetComStats net_stats
GF_NetComDRMConfig drm_cfg
GF_NetComGetESD cache_esd
GF_NetComInfo info
GF_NetComPixelAR par
GF_NetComHasAudio audio
GF_NetComMigration migrate
GF_NetURLQuery url_query
GF_NetQualitySwitch switch_quality
GF_NetServiceStatus status
GF_MediaCapQuery mcaps

Macro Definition Documentation

#define GF_NET_CLIENT_INTERFACE   GF_4CC('G', 'I', 'S', '1')
#define GF_STREAMING_MEDIA_CACHE   GF_4CC('G', 'M', 'C', 0x01)

Typedef Documentation

typedef void* LPNETCHANNEL

Enumeration Type Documentation

Enumerator
GF_NET_CHAN_PLAY 
GF_NET_CHAN_STOP 
GF_NET_CHAN_PAUSE 
GF_NET_CHAN_RESUME 
GF_NET_CHAN_SET_SPEED 
GF_NET_CHAN_CONFIG 
GF_NET_CHAN_DURATION 
GF_NET_CHAN_BUFFER 
GF_NET_CHAN_BUFFER_QUERY 
GF_NET_CHAN_GET_DSI 
GF_NET_CHAN_SET_PADDING 
GF_NET_CHAN_SET_PULL 
GF_NET_CHAN_INTERACTIVE 
GF_NET_CHAN_MAP_TIME 
GF_NET_CHAN_RECONFIG 
GF_NET_CHAN_DRM_CFG 
GF_NET_CHAN_RESET 
GF_NET_CHAN_GET_ESD 
GF_NET_CHAN_GET_PIXEL_AR 
GF_NET_BUFFER_QUERY 
GF_NET_GET_STATS 
GF_NET_IS_CACHABLE 
GF_NET_SERVICE_INFO 
GF_NET_SERVICE_HAS_AUDIO 
GF_NET_SERVICE_FLUSH_DATA 
GF_NET_SERVICE_HAS_FORCED_VIDEO_SIZE 
GF_NET_SERVICE_MIGRATION_INFO 
GF_NET_SERVICE_QUALITY_SWITCH 
GF_NET_SERVICE_QUERY_NEXT 
GF_NET_SERVICE_QUERY_INIT_RANGE 
GF_NET_SERVICE_STATUS_PROXY 
GF_NET_SERVICE_PROXY_CHUNK_RECEIVE 
GF_NET_SERVICE_PROXY_SEGMENT_RECEIVE 
GF_NET_SERVICE_MEDIA_CAP_QUERY 

Function Documentation

void gf_term_on_message ( GF_ClientService *  service,
GF_Err  error,
const char *  message 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_on_connect ( GF_ClientService *  service,
LPNETCHANNEL  ns,
GF_Err  response 
)

+ Here is the call graph for this function:

void gf_term_on_disconnect ( GF_ClientService *  service,
LPNETCHANNEL  ns,
GF_Err  response 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_on_command ( GF_ClientService *  service,
GF_NetworkCommand com,
GF_Err  response 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_on_sl_packet ( GF_ClientService *  service,
LPNETCHANNEL  ns,
char *  data,
u32  data_size,
GF_SLHeader hdr,
GF_Err  reception_status 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const char* gf_term_get_service_url ( GF_ClientService *  service)

+ Here is the caller graph for this function:

void gf_term_add_media ( GF_ClientService *  service,
GF_Descriptor media_desc,
Bool  no_scene_update 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool gf_term_on_service_event ( GF_ClientService *  service,
GF_Event service_event 
)

+ Here is the caller graph for this function:

Bool gf_term_check_extension ( GF_InputService ifce,
const char *  mimeType,
const char *  extList,
const char *  description,
const char *  fileExt 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_register_mime_type ( const GF_InputService ifce,
const char *  mimeType,
const char *  extList,
const char *  description 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_InputService* gf_term_get_service_interface ( GF_ClientService *  service)

+ Here is the caller graph for this function:

GF_DownloadSession* gf_term_download_new ( GF_ClientService *  service,
const char *  url,
u32  flags,
gf_dm_user_io  user_io,
void *  cbk 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_download_del ( GF_DownloadSession *  dnload)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_download_update_stats ( GF_DownloadSession *  sess)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: