I am having trouble getting javascript controls to work on the flvplayer.swf. I think this is related to the flvplayer.swf being located on a external server.
All the javascript methods like Play,Pause works fine if I give physical location of an swf src, like: -
[code=html]
<object>
<embed width="640" height="380" type="applicati on/x-shockwave-flash" src="player/flvplayer.swf" >
</object>[/code]
But when I give the src location as an virtual path,... like an swf file present in different server, then i am not able to access the play/pause methods thru javascript .... Example....
[code=html]
<object>
<embed width="640" height="380" type="applicati on/x-shockwave-flash" src="http://505.12.125.87/playflash/flvplayer.swf" >
</object>[/code]
I have tried using crossdomain.xml file and had put the file in the root directory whr swf files r present like .....
[code=xml]
<?xml version="1.0"?>
<cross-domain-policy>
<allow-access-from domain="http://159.138.4.56/playflash" secure="false" />
</cross-domain-policy>[/code]
But still no luck..... is thr nething else i need to do or did i do nething wrong till now.....
The javascript code and the whole program is present in 159.138.4.56
The swf files r present in 505.12.125.87.
please help me .... the flash file is playing fine, but i am not able to play/pause it if the path is virtual(http://.....)
Thanking you,
Kiran Ragiru
All the javascript methods like Play,Pause works fine if I give physical location of an swf src, like: -
[code=html]
<object>
<embed width="640" height="380" type="applicati on/x-shockwave-flash" src="player/flvplayer.swf" >
</object>[/code]
But when I give the src location as an virtual path,... like an swf file present in different server, then i am not able to access the play/pause methods thru javascript .... Example....
[code=html]
<object>
<embed width="640" height="380" type="applicati on/x-shockwave-flash" src="http://505.12.125.87/playflash/flvplayer.swf" >
</object>[/code]
I have tried using crossdomain.xml file and had put the file in the root directory whr swf files r present like .....
[code=xml]
<?xml version="1.0"?>
<cross-domain-policy>
<allow-access-from domain="http://159.138.4.56/playflash" secure="false" />
</cross-domain-policy>[/code]
But still no luck..... is thr nething else i need to do or did i do nething wrong till now.....
The javascript code and the whole program is present in 159.138.4.56
The swf files r present in 505.12.125.87.
please help me .... the flash file is playing fine, but i am not able to play/pause it if the path is virtual(http://.....)
Thanking you,
Kiran Ragiru