summaryrefslogtreecommitdiffstats
path: root/core/resolve.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-06-27 18:21:07 +0200
committerwm4 <wm4@nowhere>2013-06-28 15:47:35 +0200
commit5f664d78e6e9bd5809dc7d0f12c4099e76582cb3 (patch)
tree618ad84b255a8f99afbb196a71d0d29eec90faac /core/resolve.h
parentac79eb733741d8d22bbd550be39fe63c28a575f9 (diff)
downloadmpv-5f664d78e6e9bd5809dc7d0f12c4099e76582cb3.tar.bz2
mpv-5f664d78e6e9bd5809dc7d0f12c4099e76582cb3.tar.xz
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.
Diffstat (limited to 'core/resolve.h')
-rw-r--r--core/resolve.h21
1 files changed, 21 insertions, 0 deletions
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);