GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
|
Data Structures | |
struct | s_accumulated_attributes |
Macros | |
#define | _GNU_SOURCE |
#define | MYLOG(xx) |
#define | M3U8_BUF_SIZE 2048 |
struct s_accumulated_attributes |
Data Fields | ||
---|---|---|
char * | title | |
int | durationInSeconds | |
int | bandwidth | |
int | width | |
int | height | |
int | programId | |
char * | codecs | |
int | targetDurationInSeconds | |
int | minMediaSequence | |
int | currentMediaSequence | |
Bool | isVariantPlaylist | |
Bool | isPlaylistEnded | |
u64 | byteRangeStart | |
u64 | byteRangeEnd |
#define _GNU_SOURCE |
GPAC - Multimedia Framework C SDK Authors: Pierre Souchay, Jean Le Feuvre Copyright (c) Telecom ParisTech 2010-2012 All rights reserved
This file is part of GPAC
GPAC is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.
GPAC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; see the file COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#define MYLOG | ( | xx | ) |
#define M3U8_BUF_SIZE 2048 |
GF_Err cleanup_list_of_elements | ( | GF_List * | list | ) |
GF_Err playlist_element_del | ( | PlaylistElement * | ) |
Program* program_new | ( | int | programId | ) |
Creates a new program properly initialized
Deletes the specified program
PlaylistElement* playlist_element_new | ( | PlaylistElementType | elementType, |
const char * | url, | ||
const char * | title, | ||
const char * | codecs, | ||
int | durationInfo, | ||
u64 | byteRangeStart, | ||
u64 | byteRangeEnd | ||
) |
Creates an Playlist element. This element can be either a playlist of a stream according to first parameter.
VariantPlaylist* variant_playlist_new | ( | ) |
Creates a new VariantPlaylist
GF_Err variant_playlist_del | ( | VariantPlaylist * | ) |
Deletes the given VariantPlaylist and all of its sub elements
GF_Err playlist_element_dump | ( | const PlaylistElement * | e, |
int | indent | ||
) |
GF_Err variant_playlist_dump | ( | const VariantPlaylist * | pl | ) |
Program* variant_playlist_find_matching_program | ( | const VariantPlaylist * | pl, |
const u32 | programId | ||
) |
Program* variant_playlist_get_current_program | ( | const VariantPlaylist * | pl | ) |
|
static |
|
static |
|
static |
Parses the attributes and accumulate into the attributes structure
GF_Err parse_root_playlist | ( | const char * | file, |
VariantPlaylist ** | playlist, | ||
const char * | baseURL | ||
) |
Parse the given playlist file
file | The file from cache to parse |
playlist | The playlist to fill. If argument is null, and file is valid, playlist will be allocated |
baseURL | The base URL of the playlist |
GF_Err parse_sub_playlist | ( | const char * | file, |
VariantPlaylist ** | playlist, | ||
const char * | baseURL, | ||
Program * | in_program, | ||
PlaylistElement * | sub_playlist | ||
) |
Parse the given playlist file as a subplaylist of an existing playlist
file | The file from cache to parse |
playlist | The playlist to fill. |
baseURL | base URL of the playlist |
in_program | in which the playlist is parsed |
sub_playlist | existing subplaylist element in the playlist in which the playlist is parsed |