libgpac
Documentation of the core library of GPAC
html5_mse.c File Reference
+ Include dependency graph for html5_mse.c:

Macros

#define SECONDS_TO_TIMESCALE(s)   ((s)*track->timescale)
 
#define TIMESCALE_TO_SECONDS(u)   ((u)*1.0/track->timescale)
 
#define MSE_TRACK_BUFFER_LENGTH   1000
 

Functions

GF_HTML_MediaSource * gf_mse_media_source_new ()
 
GF_EXPORT void gf_mse_mediasource_del (GF_HTML_MediaSource *ms, Bool del_js)
 
void gf_mse_fire_event (GF_DOMEventTarget *target, GF_EventType event_type)
 
GF_EXPORT void gf_mse_mediasource_open (GF_HTML_MediaSource *ms, struct _mediaobj *mo)
 
GF_EXPORT void gf_mse_mediasource_close (GF_HTML_MediaSource *ms)
 
GF_EXPORT void gf_mse_mediasource_end (GF_HTML_MediaSource *ms)
 
GF_HTML_SourceBuffer * gf_mse_source_buffer_new (GF_HTML_MediaSource *mediasource)
 
void gf_mse_mediasource_add_source_buffer (GF_HTML_MediaSource *ms, GF_HTML_SourceBuffer *sb)
 
void gf_mse_remove_active_source_buffer (GF_HTML_MediaSource *ms, GF_HTML_SourceBuffer *sb)
 
static void gf_mse_reset_input_buffer (GF_List *input_buffer)
 
static void gf_mse_source_buffer_reset_parser (GF_HTML_SourceBuffer *sb)
 
GF_Err gf_mse_source_buffer_abort (GF_HTML_SourceBuffer *sb)
 
GF_Err gf_mse_remove_source_buffer (GF_HTML_MediaSource *ms, GF_HTML_SourceBuffer *sb)
 
void gf_mse_source_buffer_del (GF_HTML_SourceBuffer *sb)
 
void gf_mse_source_buffer_set_update (GF_HTML_SourceBuffer *sb, Bool update)
 
GF_Err gf_mse_source_buffer_load_parser (GF_HTML_SourceBuffer *sourcebuffer, const char *mime)
 
GF_HTML_MediaTimeRanges * gf_mse_timeranges_from_track_packets (GF_HTML_Track *track)
 
void gf_mse_source_buffer_update_buffered (GF_HTML_SourceBuffer *sb)
 
void gf_mse_source_buffer_set_timestampOffset (GF_HTML_SourceBuffer *sb, double d)
 
void gf_mse_source_buffer_set_timescale (GF_HTML_SourceBuffer *sb, u32 new_timescale)
 
void gf_mse_packet_del (GF_MSE_Packet *packet)
 
static void gf_mse_remove_frames_from_to (GF_HTML_Track *track, u64 from, u64 to)
 
u32 gf_mse_parse_segment (void *par)
 
void gf_mse_source_buffer_append_arraybuffer (GF_HTML_SourceBuffer *sb, GF_HTML_ArrayBuffer *buffer)
 
static u32 gf_mse_source_buffer_remove (void *par)
 
void gf_mse_remove (GF_HTML_SourceBuffer *sb, double start, double end)
 
GF_Err gf_mse_proxy (void *parser, void *command)
 
GF_EXPORT GF_Err gf_mse_track_buffer_release_packet (GF_HTML_Track *track)
 
GF_EXPORT GF_Err gf_mse_track_buffer_get_next_packet (GF_HTML_Track *track, char **out_data_ptr, u32 *out_data_size, GF_SLHeader *out_sl_hdr, Bool *sl_compressed, GF_Err *out_reception_status, Bool *is_new_data)
 

Macro Definition Documentation

◆ SECONDS_TO_TIMESCALE

#define SECONDS_TO_TIMESCALE (   s)    ((s)*track->timescale)

◆ TIMESCALE_TO_SECONDS

#define TIMESCALE_TO_SECONDS (   u)    ((u)*1.0/track->timescale)

◆ MSE_TRACK_BUFFER_LENGTH

#define MSE_TRACK_BUFFER_LENGTH   1000

Function Documentation

◆ gf_mse_media_source_new()

GF_HTML_MediaSource* gf_mse_media_source_new ( )
+ Here is the call graph for this function:

◆ gf_mse_mediasource_del()

GF_EXPORT void gf_mse_mediasource_del ( GF_HTML_MediaSource *  ms,
Bool  del_js 
)
+ Here is the call graph for this function:

◆ gf_mse_fire_event()

void gf_mse_fire_event ( GF_DOMEventTarget target,
GF_EventType  event_type 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_mse_mediasource_open()

GF_EXPORT void gf_mse_mediasource_open ( GF_HTML_MediaSource *  ms,
struct _mediaobj mo 
)
+ Here is the call graph for this function:

◆ gf_mse_mediasource_close()

GF_EXPORT void gf_mse_mediasource_close ( GF_HTML_MediaSource *  ms)
+ Here is the call graph for this function:

◆ gf_mse_mediasource_end()

GF_EXPORT void gf_mse_mediasource_end ( GF_HTML_MediaSource *  ms)
+ Here is the call graph for this function:

◆ gf_mse_source_buffer_new()

GF_HTML_SourceBuffer* gf_mse_source_buffer_new ( GF_HTML_MediaSource *  mediasource)
+ Here is the call graph for this function:

◆ gf_mse_mediasource_add_source_buffer()

void gf_mse_mediasource_add_source_buffer ( GF_HTML_MediaSource *  ms,
GF_HTML_SourceBuffer *  sb 
)
+ Here is the call graph for this function:

◆ gf_mse_remove_active_source_buffer()

void gf_mse_remove_active_source_buffer ( GF_HTML_MediaSource *  ms,
GF_HTML_SourceBuffer *  sb 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_mse_reset_input_buffer()

static void gf_mse_reset_input_buffer ( GF_List *  input_buffer)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_mse_source_buffer_reset_parser()

static void gf_mse_source_buffer_reset_parser ( GF_HTML_SourceBuffer *  sb)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_mse_source_buffer_abort()

GF_Err gf_mse_source_buffer_abort ( GF_HTML_SourceBuffer *  sb)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_mse_remove_source_buffer()

GF_Err gf_mse_remove_source_buffer ( GF_HTML_MediaSource *  ms,
GF_HTML_SourceBuffer *  sb 
)
+ Here is the call graph for this function:

◆ gf_mse_source_buffer_del()

void gf_mse_source_buffer_del ( GF_HTML_SourceBuffer *  sb)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_mse_source_buffer_set_update()

void gf_mse_source_buffer_set_update ( GF_HTML_SourceBuffer *  sb,
Bool  update 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_mse_source_buffer_load_parser()

GF_Err gf_mse_source_buffer_load_parser ( GF_HTML_SourceBuffer *  sourcebuffer,
const char *  mime 
)
+ Here is the call graph for this function:

◆ gf_mse_timeranges_from_track_packets()

GF_HTML_MediaTimeRanges* gf_mse_timeranges_from_track_packets ( GF_HTML_Track *  track)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_mse_source_buffer_update_buffered()

void gf_mse_source_buffer_update_buffered ( GF_HTML_SourceBuffer *  sb)
+ Here is the call graph for this function:

◆ gf_mse_source_buffer_set_timestampOffset()

void gf_mse_source_buffer_set_timestampOffset ( GF_HTML_SourceBuffer *  sb,
double  d 
)
+ Here is the call graph for this function:

◆ gf_mse_source_buffer_set_timescale()

void gf_mse_source_buffer_set_timescale ( GF_HTML_SourceBuffer *  sb,
u32  new_timescale 
)
+ Here is the caller graph for this function:

◆ gf_mse_packet_del()

void gf_mse_packet_del ( GF_MSE_Packet *  packet)
+ Here is the call graph for this function:

◆ gf_mse_remove_frames_from_to()

static void gf_mse_remove_frames_from_to ( GF_HTML_Track *  track,
u64  from,
u64  to 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_mse_parse_segment()

u32 gf_mse_parse_segment ( void *  par)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_mse_source_buffer_append_arraybuffer()

void gf_mse_source_buffer_append_arraybuffer ( GF_HTML_SourceBuffer *  sb,
GF_HTML_ArrayBuffer *  buffer 
)
+ Here is the call graph for this function:

◆ gf_mse_source_buffer_remove()

static u32 gf_mse_source_buffer_remove ( void *  par)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_mse_remove()

void gf_mse_remove ( GF_HTML_SourceBuffer *  sb,
double  start,
double  end 
)
+ Here is the call graph for this function:

◆ gf_mse_proxy()

GF_Err gf_mse_proxy ( void *  parser,
void *  command 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_mse_track_buffer_release_packet()

GF_EXPORT GF_Err gf_mse_track_buffer_release_packet ( GF_HTML_Track *  track)
+ Here is the call graph for this function:

◆ gf_mse_track_buffer_get_next_packet()

GF_EXPORT GF_Err gf_mse_track_buffer_get_next_packet ( GF_HTML_Track *  track,
char **  out_data_ptr,
u32 out_data_size,
GF_SLHeader out_sl_hdr,
Bool sl_compressed,
GF_Err out_reception_status,
Bool is_new_data 
)
+ Here is the call graph for this function: