Policy file on rtmp video and BitmapData.draw()
Hi,
I hope there is answer to my dilemma from server side stand point.
I have a video asset that is streamed from rtmp. Say, url is: rtmp://blah.domain.com/directory/anotherone/asset.flv
I need to invoke BitmapData.draw() on this asset.
There is crossdomain.xml file on http://blah.domain.com/crossdomain.xml that allows all the domains.
When is instantiate stream I write:
stream.checkPolicyFile = true;
Also I load crossdomain from http://blah.domain.com/crossdomain.xml and rtmp://blah.domain.com/crossdomain.xml
I tried all the combination of the above.
In all the cases when I try BitmapData.draw() - I am getting:
cannot access rtmp://blah.domain.com/directory/anotherone/. No policy files granted access.
at flash.display::BitmapData/draw()
So, does it mean that each final folder has to have it's own crossdomain.xml? Even though the root directory has one?
Also, it feels that requesting crossdomain.xml from rtmp would be odd.
Is there way around it?
Can anyone try to resolve my confusion please?
Thank you.
