Commit d3e3fc40 authored by Anssi Piirainen's avatar Anssi Piirainen
Browse files

Fix for passing onTextData event’s info object to JavaScript event listeners. (#140)

parent 1195ca0e
......@@ -36,6 +36,6 @@ package org.flowplayer.controller {
function RtmpSampleAccess(obj:Object):void;
function onTextData(obj:Object):void;
function onTextData(info:Object):void;
}
}
......@@ -135,8 +135,12 @@ package org.flowplayer.controller {
_clip.dispatchNetStreamEvent("RtmpSampleAccess", infoObject);
}
public function onTextData(infoObject:Object):void {
_clip.dispatchNetStreamEvent("onTextData", infoObject);
public function onTextData(info:Object):void {
var eventInfo:Object = {};
for (var prop:String in info) {
eventInfo[prop] = info[prop];
}
_clip.dispatchNetStreamEvent("onTextData", eventInfo);
}
public function onPlayStatus(...rest):void {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment