Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-13-2005, 03:19 PM
Junior Member
 
Join Date: Jul 2005
Posts: 1
Default Packaging FLV video files NetStream mediaplayback


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.

Reply With Quote
  #2 (permalink)  
Old 07-14-2005, 12:12 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Packaging FLV video files NetStream mediaplayback

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());
Reply With Quote
  #3 (permalink)  
Old 09-15-2005, 10:27 AM
Member
 
Join Date: Sep 2005
Posts: 31
Default Re:Packaging FLV video files NetStream mediaplayback

IF I DONT WANT TO PACK THE FLV THEN WHAT WILL I DO IN SCRIPT ?????????????????????
Reply With Quote
  #4 (permalink)  
Old 09-15-2005, 02:09 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Packaging FLV video files NetStream mediaplayback

Just clear the "pack attached files" option in "Operation panel"->[application definitions], the additional files won't be packed into the output exe file.
Reply With Quote
  #5 (permalink)  
Old 09-15-2005, 04:30 PM
Member
 
Join Date: Sep 2005
Posts: 31
Default Re:Packaging FLV video files NetStream mediaplayback

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.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:52 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.