Author: adrian
Date: Tue Jan 26 14:38:49 2010
New Revision: 8407
URL: http://svn.slimdevices.com/jive?rev=8407&view=rev
Log:
Bug: N/A
Description: only return rtmp meta data to the server if requested
Modified:
7.5/trunk/squeezeplay/src/squeezeplay/share/jive/audio/Rtmp.lua
Modified: 7.5/trunk/squeezeplay/src/squeezeplay/share/jive/audio/Rtmp.lua
URL:
http://svn.slimdevices.com/jive/7.5/trunk/squeezeplay/src/squeezeplay/share/jive/audio/Rtmp.lua?rev=8407&r1=8406&r2=8407&view=diff
==============================================================================
--- 7.5/trunk/squeezeplay/src/squeezeplay/share/jive/audio/Rtmp.lua (original)
+++ 7.5/trunk/squeezeplay/src/squeezeplay/share/jive/audio/Rtmp.lua Tue Jan 26
14:38:49 2010
@@ -275,6 +275,9 @@
return 0
else
changeState("Playing")
+ if rtmpMessages["meta"] ~= nil then
+ slimproto:send({ opcode =
"RESP", headers = "" })
+ end
end
end
@@ -288,13 +291,18 @@
[18] = function(stream, rtmp)
log:info("message type 18 - metadata")
- slimproto:send({ opcode = "META", data =
rtmp["body"] })
+
+ if rtmpMessages["meta"] == nil or
rtmpMessages["meta"] == "send" then
+ slimproto:send({ opcode = "META", data =
rtmp["body"] })
+ end
end,
[20] = function(stream, rtmp)
log:info("message type 20")
- slimproto:send({ opcode = "META", data =
rtmp["body"] })
+ if rtmpMessages["meta"] == nil or
rtmpMessages["meta"] == "send" then
+ slimproto:send({ opcode = "META", data =
rtmp["body"] })
+ end
if string.match(rtmp["body"], "_result") then
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive-checkins