summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRicardo Constantino <wiiaboo@gmail.com>2017-01-29 01:36:01 +0000
committerRicardo Constantino <wiiaboo@gmail.com>2017-01-29 01:45:13 +0000
commit2a7d2d1bc9b41998baff33d3282e3e862f717777 (patch)
treea00936932b90e350a309b5a2bae5644862510898
parent0aac7533dc4b7f45ff21c1f1dab9c42c58fef994 (diff)
downloadmpv-2a7d2d1bc9b41998baff33d3282e3e862f717777.tar.bz2
mpv-2a7d2d1bc9b41998baff33d3282e3e862f717777.tar.xz
ytdl_hook: fix opening hitbox.tv rtmp stream
Worked with librtmp, but ffrtmp needs to set rtmp_swfurl in addition to rtmp_swfverify, even if they're the same value.
-rw-r--r--player/lua/ytdl_hook.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/player/lua/ytdl_hook.lua b/player/lua/ytdl_hook.lua
index a2b38ba036..89f5c03600 100644
--- a/player/lua/ytdl_hook.lua
+++ b/player/lua/ytdl_hook.lua
@@ -349,6 +349,8 @@ mp.add_hook("on_load", 10, function ()
rtmp_prop = append_rtmp_prop(rtmp_prop,
"rtmp_swfverify", json.player_url)
rtmp_prop = append_rtmp_prop(rtmp_prop,
+ "rtmp_swfurl", json.player_url)
+ rtmp_prop = append_rtmp_prop(rtmp_prop,
"rtmp_app", json.app)
mp.set_property("file-local-options/stream-lavf-o", rtmp_prop)