From d303ebd9b6d46be4681b47043fda102811a36239 Mon Sep 17 00:00:00 2001 From: Ricardo Constantino Date: Wed, 25 Jan 2017 15:33:05 +0000 Subject: stream_lavf: add support for data URIs Only FFmpeg supports them and they need to be in the format data:// like other protocols or prefixed with ffmpeg:// or lavf://. Closes #4058 --- player/lua/ytdl_hook.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player') diff --git a/player/lua/ytdl_hook.lua b/player/lua/ytdl_hook.lua index 1bae4f398c..a2b38ba036 100644 --- a/player/lua/ytdl_hook.lua +++ b/player/lua/ytdl_hook.lua @@ -295,7 +295,7 @@ mp.add_hook("on_load", 10, function () msg.debug("streamurl: " .. streamurl) - mp.set_property("stream-open-filename", streamurl) + mp.set_property("stream-open-filename", streamurl:gsub("^data:", "data://", 1)) mp.set_property("file-local-options/force-media-title", json.title) -- cgit v1.2.3