Skip to main content
Participant
March 7, 2007
Question

Video in Flash

  • March 7, 2007
  • 4 replies
  • 431 views
I am haveing trouble being able to view my .flv files once I get them on the web. I am using Flash Pro 8's FLVPlayback and have no problems with the video when I have the files contentPath located on my computer. I have placed the .flv along with the .swf for it on my webserver. From there I have changed the contentPath for the videos to the http address the .flvs are located. So the website .swf works fine but the videos don't show.

Note: When I have the contentPath of the .flv files on my computer, flash can find them. When I change the content path the URL location it says that it cannot find them. Why is this? Is this the problem? Am I missing something when uploading the files or with a script I should be using?

I just got Flash Pro 8 and don't know much about the video side. Done research on this and it seems like I am doing things right. Any help or iinformation will be greatly appreciated. Thanks so much.

Luke
    This topic has been closed for replies.

    4 replies

    Known Participant
    June 9, 2007
    idk if this will work but do this save it in flash then go to http://www.swfup.com/ and upload the swf files then copy the code it creates then paste it into the code part of dreamweaver or notepad or wutever up edit your html files with
    Participant
    June 8, 2007
    Having the same problem with trying to do progressive download from a web server. Tried the explicit URL in contentPath; no dice. Tried the relative path that works on the hard drive. SWF file works but the videos don't play. I've also had the SysAdmin add a MIME type to the IIS on the Windows 2003 server. Assuming he did that correctly, still no video from FLVplayback.

    I'm afraid I'm going to have to go back to embedded video if no one can explain how to fix the contentPath. At the moment, streaming from a media server is not available to me.
    June 6, 2007
    When create your flv, there is is path that is also inserted into the flv file. To change it, select the video component you created while it is on stage, then go to the parameters tab of the "properties" window. From there you can scroll down a list of parameters for your FLV file. Click the one you want to change and type in the new pathname here.
    June 7, 2007
    u can try these setting in Vhost.xml under conf directory of your FMS.

    <VirtualDirectory>
    <!-- Specifies virtual directory mapping for recorded streams. -->
    <!-- To specify multiple virtual directory mappings for stream, -->
    <!-- add additional <Streams> tags; one for each virtual dir -->
    <!-- mapping. Syntax for virtual directories is as follows: -->
    <!-- <Streams key="virtualKey">foo;c:\data</Streams>. -->
    <!-- This maps all streams whose virtual -->
    <!-- key matches the listed key, if given and -->
    <!-- names begin with "foo/" to the physical directory c:\data. -->
    <!-- For example, the stream named "foo/bar" would map to the -->
    <!-- physical file "c:\data\bar.flv". Similarly, if you had a -->
    <!-- stream named "foo/bar/x", then we first try to find a vdir -->
    <!-- mapping for "foo/bar". Failing to do so, we then check for -->
    <!-- a vdir mapping for "foo". Since there is one, the stream -->
    <!-- "foo/bar" corresponds to the file "c:\data\bar\x.flv". -->
    <!-- Virtual keys are optional, but if set allow more than one -->
    <!-- mapping -->
    <Streams>foo/bar;c:\data\bar</Streams>
    <!-- URL in this case will be rtmp://IP/app/foo/bar/<directory strucy uder -->
    <!-- "C:\data\bar" till u reach ur flv" -->

    <!-- for remote machine this can be like the following -->
    <!-- Streams> foo/bar;\\<remote machine>\data\bar</Streams -->
    </VirtualDirectory>

    Read last 7 lines carefully.
    Known Participant
    March 7, 2007
    I am facing the exact dilemma..
    Would appreciate someone who cap provide some suggestions...