all groups > macromedia flash flashcom > february 2006 >
You're in the

macromedia flash flashcom

group:

FMS2 - main.asc - smil.xml


FMS2 - main.asc - smil.xml funk101
2/28/2006 12:00:00 AM
macromedia flash flashcom: I've read that in order to use FLV Playback and FMS2 you need to have an
smil.xml file. I have the sample main.asc from Flash 8 directory, and smil.xml
in my_app/script directory. And I'm calling the smil.xml in the contentPath of
FLV Playback. Nothing happens. Do I have make net connection, like my_nc = new
Netconnetion() etc? I have no clue where to put this if so, and can I use the
default main.asc file. The doc's on this, for me, are really sparse. I'm
actually quite taken back that after paying $4500.00 you STILL have to jump
through hoops to get FLV Playback to work. I hope someone can point me in the
right direction, even point me to a tutorial that can explain.
Thanks.
Jeff
Re: FMS2 - main.asc - smil.xml PetterUiS
2/28/2006 1:42:05 PM
I have the exact same questions and problems. Nothing happens when calling the
SMiL file. I have no clue if we can use the main.asc from the tutorial folder
as it is either. I'm also using flash com server MX. Does that have an impact?
I find it amazing that this things are not better explained anywhere and I feel
really lost. I haven't found any tutorials either.
Re: FMS2 - main.asc - smil.xml nickdjones
7/7/2006 4:43:56 AM
I'm also having this issue. I've spent most of the last couple of days crawling
through the PDFs for client and server side AS, along with the technotes and
samples, attempting to get a clear understanding of how to get SMIL XML based
dynamic bandwidth streaming from FMS2. I've been able to code from scratch a
nice NetStream based solution, but really want to use the dynamic bandwidth
management and loose coupling of the SMIL based solution. Currently I've got
the following setup:

Windows 2003 Server
IIS 6
serving a swf containg the following button which dynamically loads the smil
file from the same directory as the swf:
on( click ){
import mx.video.*;
_root.vid_ctrl.contentPath = "http://localhost/flashVid/streams.xml";
trace( "contentPath: "+ _root.vid_ctrl.contentPath );
var listenerObject:Object = new Object();
listenerObject.metadataReceived = function(eventObject:Object):Void {
_root.vid_ctrl.setSize(vid_ctrl.preferredWidth, vid_ctrl.preferredHeight);
_root.vid_ctrl.seek(4);
trace( "contentPath after metadata: "+ _root.vid_ctrl.contentPath );
}
_root.vid_ctrl.addEventListener("metadataReceived", listenerObject);
}
[from livedocs article:
http://livedocs.macromedia.com/flash/8/main/00003539.html]

This is the content of the XML SMIL file:
<smil>
<head>
<meta base="rtmp://localhost/bls_videos/_definst_" />
<layout>
<root-layout width="320" height="256" />
</layout>
</head>
<body>
<switch>
<video src="Bag-mask 1 resc (512)" system-bitrate="512000" />
<video src="Bag-mask 2 resc (512)" system-bitrate="128000" />
</switch>
</body>
</smil>

I can see in my server log for the bls_videos app that a connection is being
made, but no streams are showing on the streams tab, and no response on the
client. The following is logged on server when the connection is made:
welcome[object Client]
Error : command msg sent before client connection has been accepted.
Error : command msg sent before client connection has been accepted.

The Welcome is a trace line I put into the main.asc to ensure it was getting
called. Not sure what the error is about.

Any more detailed information on using the SMIL XML files for streaming -
particularly a fully worked end to end example, would be useful.After trawling
through the various online and offline docs on this subject there is very
little to guide anyone.

thanks
Nick
Re: FMS2 - main.asc - smil.xml splatter2
12/22/2006 6:08:14 PM
I agree, ?4900 for me and my god I cant even find the main.asc file, cant find
any samples and just trapsing through the forum here to find how to work it all
out.

I have done a lot of variations on the folders under applications with
_definst_ folder and the lot and done this on TWO SEPERATE computers, cannot
see my flv files in the streams on the console and cannot call it from .swf.

I mean come on here, Ive bought software for $30 that had more help than this.

Get your act together Adobe.
Re: FMS2 - main.asc - smil.xml Detroit_Galaxian
12/29/2006 5:01:04 PM
Here's a "me too"!

We were exploring the use of Flash Media Server as a means for streaming
longer-length video content. It seems like we have tried everything and still
cannot get a simple test ".flv" to stream to clients. I've read the same
information as the others here concerning the "main.asc" and "smil.xml" files -
and it is very unclear.

I would like to see a step-by-step set of instructions explaining how to build
a "hello world" streaming video player. This should cover 1) how to put a test
FLV file on the server. and 2) how to use the FLVplayback component to display
it.

I've blown a LOT of time on this and am now going back to Quicktime or Windows
Media streaming. But I would LOVE to take advantage of using Flash for this
purpose.

Re: FMS2 - main.asc - smil.xml Detroit_Galaxian
12/29/2006 5:12:19 PM
Hmm - I may have this figured out. I found the missing link
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&catid=57
8&threadid=1223209&enterthread=y .

1) the .FLV video file needs to be in a "_definst_" directory inside your
streams folder. (I never saw that in any of the documentation!)
2) ignore all of that stuff about the "main.asc" and "smil.xml" files. I think
some of us may have gone on the same wile goose chase due to that confusing
tech note.
Re: FMS2 - main.asc - smil.xml morharro
12/31/2006 5:42:29 PM
I also had struggled with all the same things as everyone has posted above. I
just wanted to stream a .flv from the server but for days and days could not
get it to work.
I have it working now and will run through the steps I have and hopefullythat
will help some of you also .

[b]On the server side [/b]
1) I have made a folder under the apps called "movie"
My server is Linux and this is what I have on the server for stucture
"/opt/macromedia/fms/applications/Movie"
In this folder I have put the "main asc" file.
The main asc file can be found in your hard drive under " Macromedia\Flash
8\Samples and Tutorials\Samples\Components\FLVPlayback\main.asc"
2) Under the folder called "movie", I made another folder called "streams".
3) Under the folder called "streams I have made another folder called "test"
4) In the "test" folder is where I have uploaded all the .flv files in which I
would like to stream. In this case lets say I have 1.flv in that folder.
5) Server side is now all set except for the swf inwhich I will get into
latter.

[b]Setting up your swf and html.[/b]
1) Open flash 8 and create a new flash document.
2) Under the "components" find and drag "FLVPlayback" component onto the stage.
3) Go to "parameters", find the "contentPath" and double click it. In the box
that comes up put in the rtmp valves to your .flv file on the server.
Example.......rtmp://whatever.com/movie/test/1 This is following the
structure I have set up on the server from above "set up of server".
Notice how the folder structure is set,
rtmp://whatever.com/movie/test/1
and also that I do not use the .flv extension,
rtmp://whatever.com = your localhost or domain name if on the web
rtmp://whatever.com/movie = the main app called "movie",
streams folder is not called in the rtmp since FMS knows it is a stream,
rtmp://whatever.com/movie/test = the stream folder called 'test"
rtmp://whatever.com/movie/test /1 = "1" the .flv file name.
4) Test movie. If everything is working correctly the flv on the server should
start to stream in the test.
5) save and publish.
6) Upload the swf and html to your public html folder on the web or localhost.
7) Browse or go to your website with the swf and html and enjoy.

I hope I have explained this correctly and you can understand the steps I
have. Good luck
AddThis Social Bookmark Button