|
|||
|
Hello, First off, thanks to all the forum users and moderators for providing indepth knowledge about a powerful product. I've been reading about the external playback issue for FLVs in the forum. It seems that the "setBasePath" method doesn't have any effect on the mediaplayback component and NetStream object. And as a result it's been suggested in this forum to use absolute pathes. The problem is I want to package external video files into the SWFKit-compiled EXE. What kind of options do I have? Can I package FLV at all? Is there another solution than the "setBasePath" method? Can SWFKit package MOV or AVI file within the EXE file? Thank you for your help. |
|
|||
|
Sure, you can pack them into the exe file. Just add them into the attachment list.
The attached sample shows how to play an external flv file. If you want to play the packed flv, please replace the "loadflv" script with the following code: Code:
// suppose the added flv file is myflv.flv
var flvfile = getAdditionalFile("myflv.flv");
var index = flvfile.lastIndexOf(".");
var ext = "FLV";
if (index >= 0)ext = flvfile.substr(index + 1);
FlashPlayer.setVariable("_root.trigger.fArg", flvfile + "," + ext.toUpperCase());
|
|
|||
|
i have checked your flvsample.zip file . it is working fine .
but when i add all this code in my flash file then it is not working WHY ?? ok i will tell u what i do... make button and write script on (release){ fscommand("ffish_run", "loadFLV"); } take mediaplayer component and named it "player" on first keyrame i have added all code which u have in ur first frame then in first frame of trigger component i have added all code which u have in ur file .then in swfkit script window i have replace the code which u given above in loadflv. but it is not working CAN U SEND Me STEP BY STEP DESCRIPTION THAT HOW I CAN PLAY FLV FILE please help me i have deadline. |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|