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. | |
| QUVIcode quvi_getprop | ( | quvi_media_t | media, |
| QUVIproperty | prop, | ||
| ... | |||
| ) |
Get media property information from a media session handle.
| media | Handle to a media session |
| prop | Property ID |
| ... | Parameter |
Example:
char *url; ... quvi_getprop(media, QUVIPROP_MEDIAURL, &url); puts(url); ...
| 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.
| media | Handle to a media session |
Example:
char *url; do { quvi_getprop(media, QUVIPROP_MEDIAURL, &url); puts(url); } while (quvi_next_media_url(media) == QUVI_OK);
| 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.
| video | Handle to a video session |
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.
| media | Pointer to a media session |
Example:
quvi_t quvi; quvi_media_t media; ... quvi_init(&quvi); quvi_parse(quvi, ..., &media); quvi_parse_close(&media); quvi_close(&quvi);
1.7.4