I'm trying to use the Media Playback Component to stream video from my Flash Communication Server and am not sure how to set the url property. In the examples I've been able to get to work without the playback component, I am using a video object and the code looks like this: nc = new NetConnection(); nc.connect("rtmp:/video_tutorial/video"); streamName = "somevideo"; ns = new NetStream(nc); my_video.attachVideo(ns); ns.play(streamName); My flv file for the above example are stored in applications/video_tutorial/streams/video/somevideo.flv This works, but I would rather use the Media Playback Component than build all the controls myself. How would I do the same thing using the Playback component? Thanks!
I figured out the answer to my own question. Hey this means I'm learning right? The path for the flv needs to be the rtmp string. So in this example, rtmp:/video_tutorial/video/somevideo It's impotant to note that you leave the ..flv extension off and that my actual flv is located at applications/video_tutorial/streams/video/somevideo.flv Not sure why the .flv is left off or why the streams directory is also absent. Sure would be nice to see some of this documented along with the FCS software!
Don't see what you're looking for? Try a search.
|