Skip to content

Commit

Permalink
Import BBCRadio-v1.16.zip
Browse files Browse the repository at this point in the history
  • Loading branch information
terual committed Oct 21, 2020
1 parent ef5402f commit 3519c41
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions BBCRadioMeta.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
-- BBCRadio Meta - see main applet file for details

local oo = require("loop.simple")
local os = require("os")
local io = require("io")
local mime = require("mime")

local System = require("jive.System")
Expand Down Expand Up @@ -72,6 +74,16 @@ function registerApplet(self)

Playback:registerHandler('bbcmsparser', function(...) appletManager:callService("bbcparser", "ms", ...) end)
Playback:registerHandler('bbcplsparser', function(...) appletManager:callService("bbcparser", "pls", ...) end)

-- patch rtmp binary included in firmware as it does not support latest rtmp server version
local patchfile = "/usr/share/jive/applets/BBCRadio/rtmp.so-" .. System:getMachine()
local newbinary = io.open(patchfile, "r")
if newbinary then
log:info("installing modified rtmp.so")
newbinary:close()
os.execute("mv " .. patchfile .. " /usr/lib/lua/5.1/rtmp.so")
os.execute("chmod 755 /usr/lib/lua/5.1/rtmp.so")
end
end


Expand Down
Binary file added rtmp.so-baby
Binary file not shown.
Binary file added rtmp.so-fab4
Binary file not shown.

0 comments on commit 3519c41

Please sign in to comment.