Skip to content

Instantly share code, notes, and snippets.

@maxlapshin
Created December 7, 2009 06:46
Show Gist options
  • Save maxlapshin/250672 to your computer and use it in GitHub Desktop.
Save maxlapshin/250672 to your computer and use it in GitHub Desktop.
checkBandwidth(#amf{args = [null | Args]} = AMF, #rtmp_session{current_speed = Speed} = State) when is_number(Speed) ->
?D({"checkBandwidth", Args}),
apps_rtmp:reply(AMF#amf{args = [null, Speed]}),
State;
checkBandwidth(#amf{args = [null | Args]} = AMF, State) when is_number(Speed) ->
?D({"checkBandwidth", Args}),
apps_rtmp:reply(AMF#amf{args = [null, null]}),
State.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment