Functions
Media properties
Parse

Functions

QUVIcode quvi_getprop (quvi_media_t media, QUVIproperty prop,...)
 Get media property information from a media session handle.
QUVIcode quvi_next_media_url (quvi_media_t media)
 Move to the next media URL (if any)
QUVIcode quvi_next_videolink (quvi_video_t video)
 Move to the next video URL (if any)
void quvi_parse_close (quvi_media_t *media)
 End a media parsing session.

Function Documentation

QUVIcode quvi_getprop ( quvi_media_t  media,
QUVIproperty  prop,
  ... 
)

Get media property information from a media session handle.

Parameters:
mediaHandle to a media session
propProperty ID
...Parameter
Returns:
Non-zero if an error occurred
Warning:
Do not attempt to free the memory returned by this function
See also:
QUVIproperty

Example:

 char *url;
 ...
 quvi_getprop(media, QUVIPROP_MEDIAURL, &url);
 puts(url);
 ...
Examples:
callback_libsoup.c, quvi.c, and simple.c.
QUVIcode quvi_next_media_url ( quvi_media_t  media)

Move to the next media URL (if any)

Used to iterate the parsed media URLs. Typically there is only one, although some websites have split the media into several segments.

Parameters:
mediaHandle to a media session
Returns:
Non-zero if end of list was reached (QUVI_LAST) or an error occurred
Remarks:
Historically "cctv" website used segments
Since:
0.2.15
See also:
quvi_getprop

Example:

 char *url;
 do
   {
     quvi_getprop(media, QUVIPROP_MEDIAURL, &url);
     puts(url);
   }
 while (quvi_next_media_url(media) == QUVI_OK);
Examples:
quvi.c.
QUVIcode quvi_next_videolink ( quvi_video_t  video)

Move to the next video URL (if any)

Used to iterate the parsed video URLs. Typically there is only one, although some websites have split the videos into several segments.

Parameters:
videoHandle to a video session
Returns:
Non-zero if end of list was reached (QUVI_LAST) or an error occurred
Remarks:
Historically "cctv" website used segments
Deprecated:
Since 0.2.15, use quvi_next_media_url() instead
See also:
quvi_getprop

Example:

 char *url;
 do
   {
     quvi_getprop(media, QUVIPROP_MEDIAURL, &url);
     puts(url);
   }
 while (quvi_next_videolink(video) == QUVI_OK);
void quvi_parse_close ( quvi_media_t media)

End a media parsing session.

Parameters:
mediaPointer to a media session
See also:
quvi_parse

Example:

 quvi_t quvi;
 quvi_media_t media;
 ...
 quvi_init(&quvi);
 quvi_parse(quvi, ..., &media);
 quvi_parse_close(&media);
 quvi_close(&quvi);
Examples:
callback_libsoup.c, quvi.c, and simple.c.
 All Files Functions Typedefs Enumerations Enumerator Defines