From 5f664d78e6e9bd5809dc7d0f12c4099e76582cb3 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 27 Jun 2013 18:21:07 +0200 Subject: core: add libquvi 0.9 support This adds support for libquvi 0.9.x, and these features: - start time (part of youtube URL) - youtube subtitles - alternative source switching ('l' and 'L' keys) - youtube playlists Note that libquvi 0.9 is still in development. Although this seems to be API stable now, it looks like there will be a 1.0 release, which is supposed to be the next stable release and the actual successor of libquvi 0.4.x. --- core/resolve.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'core/resolve.h') diff --git a/core/resolve.h b/core/resolve.h index d991bf1a39..91684df250 100644 --- a/core/resolve.h +++ b/core/resolve.h @@ -25,6 +25,27 @@ struct MPOpts; struct mp_resolve_result { char *url; char *title; + + struct mp_resolve_src **srcs; + int num_srcs; + + double start_time; + + struct mp_resolve_sub **subs; + int num_subs; + + struct playlist *playlist; +}; + +struct mp_resolve_src { + char *url; + char *encid; // indicates quality level, contents are libquvi specific +}; + +struct mp_resolve_sub { + char *url; + char *data; + char *lang; }; struct mp_resolve_result *mp_resolve_quvi(const char *url, struct MPOpts *opts); -- cgit v1.2.3