In Sample01_SWF_And_FLV_Player, I modifed some code to test what I want.
To play Flash Video,
I use http://www.xxx.com/flvplayer.swf and http://www.xxx.com/sample.flv !
(I have to put swf and flv files at web server!)
It works normally,
But after FPC_UnloadCode() is called,
program crash sometimes occurs somewhere in urlmon.dll (maybe urlmon callback function)
When deleting Temporary Internet Files(cached files) and executing quickly FPC_UnloadCode() after FPCM_PUT_MOVIE,
the crash often occurs.
Code: Select all
CString strFlashVars = _T("FLVPath=");
strFlashVars += "http://www.xxx.com/sample.flv";
FPC_PutFlashVars(m_hwndFlashPlayerControl, strFlashVars);
SFPCPutMovie FPCPutMovie;
FPCPutMovie.lpszBuffer = "http://www.xxx.com/flvplayer.swf"
::SendMessage(m_hwndFlashPlayerControl, FPCM_PUT_MOVIE, 0, (LPARAM)&FPCPutMovie);
Code: Select all
::DestroyWindow(m_hwndFlashPlayerControl);
FPC_UnloadCode(hFPC);
please give me advise.
thank you.
(I purchased f-in-box license last year)