MediaInfo

MediaInfo — Media info interfaces

Functions

Types and Values

Description

Media info interfaces

Functions

flu_media_info_clear ()

void
flu_media_info_clear (FluMediaInfo *sinfo);

Clear (initialize to default values) a FluMediaInfo structure and frees associated memory.

Parameters

sinfo

The information to clear

 

flu_media_info_copy ()

void
flu_media_info_copy (FluMediaInfo *target,
                     const FluMediaInfo *src);

Copy general information of a media. This function will copy data from a source FluMediaInfo into a target structure. While doing so it will first free the members of target to avoid memory leaks. Target does not need to be of the same type as src.

WARNING: Use flu_media_info_clear() to clear and free the information of the target struct

Parameters

target

The FluMediaInfo to write the information to

 

src

The FluMediaInfo to copy the information from

 

Types and Values

enum FluMediaInfoFormat

Enum values used to describe the different known formats available

Members

FLU_MEDIA_INFO_FORMAT_UNKNOWN

Unknown format

 

FLU_MEDIA_INFO_FORMAT_AUDIO_ONLY

Audio only format

 

FLU_MEDIA_INFO_FORMAT_ASF

ASF Format

 

FLU_MEDIA_INFO_FORMAT_MP4

MPEG4 Format

 

FLU_MEDIA_INFO_FORMAT_WEBM

WEBM Format

 

FLU_MEDIA_INFO_FORMAT_MPEGTS

   

FluMediaInfo

typedef struct {
  gchar *title;
  gchar *author;
  gchar *copyright;
  gchar *container;
  gint64 duration;
  gint64 start_date;
  FluMediaInfoFormat format;
  GList *covers;
} FluMediaInfo;

General information about the media currently opened by a FluPlayer or generated by a FluRecorder.

Members

gchar *title;

Media title potentially provided by a container or the resource description from streams

 

gchar *author;

Author information

 

gchar *copyright;

Copyright information

 

gchar *container;

Container format name (for example Matroska, ASF, QuickTime, etc...)

 

gint64 duration;

Duration of the media in nanoseconds

 

gint64 start_date;

Start date of content availability in nanoseconds

 

FluMediaInfoFormat format;

Container format

 

GList *covers;

information about any covers embedded in the media (with ID3/APE/Vorbis tags for example). May be NULL if there is no cover embedded.

[element-type FluCoverInfo]