Add dashUrl to /api/v1/videos

pull/366/head
Omar Roth 2019-04-11 15:28:03 -05:00
rodzic aa8ff7ace3
commit d522c864d4
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -3036,6 +3036,8 @@ get "/api/v1/videos/:id" do |env|
json.field "hlsUrl", hlsvp json.field "hlsUrl", hlsvp
end end
json.field "dashUrl", "#{make_host_url(config, Kemal.config)}/api/manifest/dash/id/#{id}"
json.field "adaptiveFormats" do json.field "adaptiveFormats" do
json.array do json.array do
adaptive_fmts.each do |fmt| adaptive_fmts.each do |fmt|