views:

110

answers:

3

i am using jwplayer on my site but the problem is that i cant play the video...there is an error.....access denied and then it shows the flv files path........

i am cofused how to use the relative path for player and flv files..... i am using windows hosting and here is the link to my video page link text

and here is the code i am using

<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="400" height="315">
        <param name="movie" value="http://www.parasfoundation.com/player.swf" />
        <param name="allowfullscreen" value="true" />
        <param name="allowscriptaccess" value="always" />
        <param name="flashvars" value="file=../media/paras2.flv&image=media/preview1.jpg" />
        <embed
            type="application/x-shockwave-flash"
            id="player2"
            name="player2"
            src="player.swf" 
            width="400" 
            height="315"
            allowscriptaccess="always" 
            allowfullscreen="true"
            flashvars="file=http://www.parasfoundation.com/media/paras2.flv&amp;image=media/preview1.jpg" 
        />

first i was using the path for the file like this

flashvars="file=media/paras2.flv&image=media/preview1.jpg" 

and it was working fine locally on my WAMP server....but when i uploaded it the video doesn't play

A: 

I have found the issue, i think you need to add a mime type in your IIS server by going to website control panel

Type ".flv" as the associated extension and "video/x-flv" as the content type.

and this works for me.....

Muhammad Ahsan
A: 
dmillfree
A: 

Hi Ahsan

I am trying to do almost the same thing on my apache server. My media content is rendered in JWPlayer.

When i run the youtube media url, it works fine but when i try to give the local url of the downloaded .MP4/.flv video, the player shows: Video not found or deleted.

snippet:

flashvars="file=/media/test.flv"

When i hit the media content url in browser (http://localhost/media/test.flv), it starts downloading means the content does exit.

What wrong am i doing? Does the apache server need to be a streaming server?

Harshil
You need to give full URL of video in the flashvars like this flashvars="file=http://www.yourwebsite.com/foldername/filename.flv just use full path including
Muhammad Ahsan