We are evaluating flashplayercontrol for our app. We need to have our C++ code control the FLVs that are being played. I have a swf that will play a flv passed in as a url=... parameter, which works fine on a web page.
<embed src="320x240.swf" Flashvars="url=http://localhost/flv/HaveGunWillTravelSea.flv" width="320" height="240" name="320x240" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
But if I load the same SWF from C++, set the flash param with FPCM_PUT_FLASHVARS it doesn't work. I just get a Flash logo screen with a downloading of the FLV and nothing happens. On the web page I get the same screen for a fraction of a second before the flv starts playing. Any ideas?
I altered your sample using GlobalOnLoadExternalResourceHandler, which works, but doesn't stream since it loads the entire file before returning the stream.
Thanks,
Jim W.