Could you give a simple example?
Error checking and handling omitted for brevity.
libquvi 0.9+
/*
* libquvi 0.9+ -- Parse media properties for a media URL.
*/
#include <stdio.h>
#include <quvi.h>
int main(int argc, char **argv)
{
quvi_media_t qm;
gchar *m_url;
quvi_t q;
q = quvi_new();
qm = quvi_media_new(q, URL);
quvi_media_get(qm, QUVI_MEDIA_STREAM_PROPERTY_URL, &m_url);
puts(m_url);
quvi_media_free(qm);
quvi_free(q);
return (0);
}
libquvi 0.4
/*
* libquvi 0.4 -- Parse media properties for a media URL.
*/
#include <stdio.h>
#include <quvi/quvi.h>
int main(int argc, char **argv)
{
quvi_media_t m;
gchar *m_url;
quvi_t q;
quvi_init(&q);
quvi_parse(q, URL, &m);
quvi_getprop(m, QUVIPROP_MEDIAURL, &m_url);
puts(m_url);
quvi_parse_close(&m);
quvi_close(&q);
return (0);
}
More examples
The C API reference documentation contains introductory examples. It is recommended reading for anyone interested in using the library. libquvi source tree contains also the examples/ subdir.