Functions
Utility functions
Parsing media URLs

Functions

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)

Function Documentation

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);
 All Files Functions Typedefs Enumerations Enumerator Defines