Custom source interface.
This interface allows to create a source supplied by the application with data using the FluPlayerEventSourceNeedData.
The application must register to FLU_PLAYER_EVENT_SOURCE_NEED_DATA to feed the custom source.
The application must also register to FLU_PLAYER_EVENT_SEEK_SOURCE to let the custom source provides a given position in the stream.
FluSource * |
|
gboolean |
FluSource * flu_source_custom_new (const char *source_name, FluFormat format, gint64 length, gboolean is_seekable);
Creates a new custom based source
Name of the new source or NULL to automatically create a new unique name.
Format from FluFormat used by the source.
The length of the data stream in bytes or in ns depending on FluFormat. Use FLU_SIZE_UNKNOWN if unknown.
Flag indicating if source is seekable or not.
A new instance of a FluSource
gboolean flu_source_custom_eos_send (FluSource *src);
Sends the EOS to the FluSource
TRUE if the operation succeed, FALSE otherwise