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
libplayer.c File Reference
#include <gpac/modules/service.h>
#include <gpac/modules/codec.h>
#include <gpac/constants.h>
#include <gpac/download.h>
#include "player.h"
+ Include dependency graph for libplayer.c:

Data Structures

struct  LibPlayerIn
 

Enumerations

enum  { PLAYER_FILE = 0, PLAYER_DVB = 1 }
 

Functions

static u32 LIBPLAYER_RegisterMimeTypes (const GF_InputService *plug)
 
Bool LIBPLAYER_CanHandleURL (GF_InputService *plug, const char *url)
 
static int on_libplayer_event (player_event_t e, void *data)
 
GF_Err LIBPLAYER_ConnectService (GF_InputService *plug, GF_ClientService *serv, const char *url)
 
GF_Err LIBPLAYER_CloseService (GF_InputService *plug)
 
static GF_DescriptorLIBPLAYER_GetServiceDesc (GF_InputService *plug, u32 expect_type, const char *sub_url)
 
GF_Err LIBPLAYER_ServiceCommand (GF_InputService *plug, GF_NetworkCommand *com)
 
GF_Err LIBPLAYER_ConnectChannel (GF_InputService *plug, LPNETCHANNEL channel, const char *url, Bool upstream)
 
GF_Err LIBPLAYER_DisconnectChannel (GF_InputService *plug, LPNETCHANNEL channel)
 
Bool LIBPLAYER_CanHandleURLInService (GF_InputService *plug, const char *url)
 
static GF_Err LIBPLAYER_AttachStream (GF_BaseDecoder *dec, GF_ESD *esd)
 
static GF_Err LIBPLAYER_DetachStream (GF_BaseDecoder *dec, u16 ES_ID)
 
static GF_Err LIBPLAYER_GetCapabilities (GF_BaseDecoder *dec, GF_CodecCapability *capability)
 
static GF_Err LIBPLAYER_SetCapabilities (GF_BaseDecoder *dec, GF_CodecCapability capability)
 
static u32 LIBPLAYER_CanHandleStream (GF_BaseDecoder *dec, u32 StreamType, GF_ESD *esd, u8 PL)
 
static const char * LIBPLAYER_GetName (GF_BaseDecoder *dec)
 
static GF_Err LIBPLAYER_Control (GF_PrivateMediaDecoder *dec, Bool mute, GF_Window *src, GF_Window *dst)
 
const u32QueryInterfaces ()
 
GF_BaseInterfaceLoadInterface (u32 InterfaceType)
 
void ShutdownInterface (GF_BaseInterface *bi)
 

Variables

static int libplayer_id = 0
 
static int start_dvb = 0
 
static const char * LIBPLAYER_MIME_TYPES []
 

Data Structure Documentation

struct LibPlayerIn
+ Collaboration diagram for LibPlayerIn:
Data Fields
GF_ClientService * service
u32 init
u32 state
u32 player_id
u32 player_type
u32 width
u32 height
char * url
player_t * player

Enumeration Type Documentation

anonymous enum
Enumerator
PLAYER_FILE 
PLAYER_DVB 

Function Documentation

static u32 LIBPLAYER_RegisterMimeTypes ( const GF_InputService plug)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool LIBPLAYER_CanHandleURL ( GF_InputService plug,
const char *  url 
)

+ Here is the caller graph for this function:

static int on_libplayer_event ( player_event_t  e,
void *  data 
)
static

+ Here is the caller graph for this function:

GF_Err LIBPLAYER_ConnectService ( GF_InputService plug,
GF_ClientService *  serv,
const char *  url 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err LIBPLAYER_CloseService ( GF_InputService plug)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Descriptor* LIBPLAYER_GetServiceDesc ( GF_InputService plug,
u32  expect_type,
const char *  sub_url 
)
static

+ Here is the caller graph for this function:

GF_Err LIBPLAYER_ServiceCommand ( GF_InputService plug,
GF_NetworkCommand com 
)

+ Here is the caller graph for this function:

GF_Err LIBPLAYER_ConnectChannel ( GF_InputService plug,
LPNETCHANNEL  channel,
const char *  url,
Bool  upstream 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err LIBPLAYER_DisconnectChannel ( GF_InputService plug,
LPNETCHANNEL  channel 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool LIBPLAYER_CanHandleURLInService ( GF_InputService plug,
const char *  url 
)

+ Here is the caller graph for this function:

static GF_Err LIBPLAYER_AttachStream ( GF_BaseDecoder dec,
GF_ESD esd 
)
static

+ Here is the caller graph for this function:

static GF_Err LIBPLAYER_DetachStream ( GF_BaseDecoder dec,
u16  ES_ID 
)
static

+ Here is the caller graph for this function:

static GF_Err LIBPLAYER_GetCapabilities ( GF_BaseDecoder dec,
GF_CodecCapability capability 
)
static

+ Here is the caller graph for this function:

static GF_Err LIBPLAYER_SetCapabilities ( GF_BaseDecoder dec,
GF_CodecCapability  capability 
)
static

+ Here is the caller graph for this function:

static u32 LIBPLAYER_CanHandleStream ( GF_BaseDecoder dec,
u32  StreamType,
GF_ESD esd,
u8  PL 
)
static

+ Here is the caller graph for this function:

static const char* LIBPLAYER_GetName ( GF_BaseDecoder dec)
static

+ Here is the caller graph for this function:

static GF_Err LIBPLAYER_Control ( GF_PrivateMediaDecoder dec,
Bool  mute,
GF_Window src,
GF_Window dst 
)
static

unfortunately, saving data would not be a good solution for Mosaic Mode in ESG Application since the position changes everytime user uses the navigation button

unfortunately, saving data would not be a good solution for Mosaic Mode in ESG Application since the position changes everytime user uses the navigation button

+ Here is the caller graph for this function:

const u32* QueryInterfaces ( )
GF_BaseInterface* LoadInterface ( u32  InterfaceType)

+ Here is the call graph for this function:

void ShutdownInterface ( GF_BaseInterface bi)

+ Here is the call graph for this function:

Variable Documentation

int libplayer_id = 0
static
int start_dvb = 0
static

unfortunately, saving data would not be a good solution for Mosaic Mode in ESG Application since the position changes everytime user uses the navigation button

const char* LIBPLAYER_MIME_TYPES[]
static
Initial value:
= {
"video/x-mpeg", "mpg mpeg mp2 mpa mpe mpv2 ts", "MPEG 1/2 Movies",
"video/x-mpeg-systems", "mpg mpeg mp2 mpa mpe mpv2", "MPEG 1/2 Movies",
"audio/basic", "snd au", "Basic Audio",
"audio/x-wav", "wav", "WAV Audio",
"audio/vnd.wave", "wav", "WAV Audio",
"video/x-ms-asf", "asf wma wmv asx asr", "WindowsMedia Movies",
"video/x-ms-wmv", "asf wma wmv asx asr", "WindowsMedia Movies",
"video/x-msvideo", "avi", "AVI Movies",
"video/x-ms-video", "avi", "AVI Movies",
"video/avi", "avi", "AVI Movies",
"video/vnd.avi", "avi", "AVI Movies",
"video/H263", "h263 263", "H263 Video",
"video/H264", "h264 264", "H264 Video",
"video/MPEG4", "cmp", "MPEG-4 Video",
"video/mp4", "mp4", "MPEG-4 Movie",
"video/quicktime", "mov qt", "QuickTime Movies",
"video/webm", "webm", "Google WebM Movies",
"audio/webm", "webm", "Google WebM Music",
0
}