Relative File Path Issue - "Video not found or access denied"

This thread may refer to an older version of JW Player! Check our articles for the most up-to-date information.
This Q&A thread was imported from our previous system and could apply to an older product.
  • So I am trying to use an MP4 video with H.264 encoding with JW Player but am not having much luck. When I attempt to load the video, I get the following error:

    *Video not found or access denied: jorik-dozy.mp4*

    You can view my page here:

    gnomonschool.com/student_work/reels/modal-reels/jorik-dozy.html

    This is a direct link to the MP4:

    gnomonschool.com/student_work/reels/modal-reels/jorik-dozy.mp4

    If I use an FLV the video plays fine. I've tried exporting the MP4 from Handbrake, MPEG Streamclip and Quicktime Pro, but none of them have worked. As far as I can tell, everything is in order and _should_ be working. It's starting to drive me nuts, thanks for any help!

  • Oh geeze, I think I just found the solution. I tried using a full path directly to my mp4 file (starting with http://www...) and now the video works. Before I linked straight to the file relative to the HTML page the player is embedded on, as the HTML page and MP4 are in the same directory.

    I really have no idea why using the full URL works. It's really unclear exactly how the player determines the path to the video file. I even read in another thread that the file type affects how the path is determined, which makes no sense at all to me.

    Up Down 0 rated
  • From this thread: longtailvideo.com/support/forums/jw-player/setup-issues-and-embedding/9219/relative-path

    bc.. "All other relative paths for media & data files start at the location of the HTML document that has the embedded Flash content."


    So if my HTML document is here:

    bc.. gnomonschool.com/student_work/reels/modal-reels/jorik-dozy.html


    ...and my MP4 is here:

    bc.. gnomonschool.com/student_work/reels/modal-reels/jorik-dozy.mp4


    ...shouldn't my path to the MP4 in the embed code look like this?

    bc.. so.addVariable('file','jorik-dozy.mp4');


    When I try that, the video says it is not found. Only the full URL works. Apparently this is an embedding problem and not an encoding problem, so this thread can probably be moved to the correct section. Thanks for any help!

    Up Down 0 rated
  • I got it.

    I had to reference the location of the MP4 *relative to the location of the SWF file*, like this:

    bc.. so.addVariable('file','../student_work/reels/modal-reels/jorik-dozy.mp4');


    This is the *opposite* of how it is supposed to work according to the Support documentation:

    bc.. When using relative links to MP3, image and XML files, you should always start from the location of the HTML in which the SWF is embedded. The one exception is that the path of FLV files should be given relatively from the SWF file. In order to prevent confusion, you can always point to files using an absolute URL (including the "http://www").


    Totally confusing!

    Up Down 0 rated
  • Hey

    Actually just want to say thanks Eric Carl!! Got the same problem as you had and solved it the same way as you did ;)

    I took a short look at the code, but could not initially find the bug. But the relative path to mp4 files is definitely strange...

    Again thanks for your help!!

    dave

    Up Down 0 rated
  • very confusing.

    you just also saved me some headaches as well. I was searching for the very same problem all day. Thankfully I kept searching through forums before posting. I knew I would find the solution. Thanks Eric Carl!

    Up Down 0 rated
  • Thanks from me as well - you just saved a few strands of hair on my head - I was starting to pull a few out in frustration!

    Up Down 0 rated
  • What a total shambles...
    How many hours have people around the world wasted following the instruction and getting frustrated ??

    Thanks for providing a fix what the makers plainly could not be bothered to fix...

    Up Down 0 rated
  • @Richard – This will be fixed in 5.4, sorry for any inconvenience!

     
    Up Down 0 rated
  • http://media.state.mi.us/media/budgetpresentation.mv4

    I just implemented jwplayer 5.4 and I am getting the same error.
    The page cannot be found
    The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
    --------------------------------------------------------------------------------

    Up Down 0 rated
  • Can you provide a link to where you are running the player?

     
    Up Down 0 rated
  • check if the mime type for flv is registered in your iis or apache configuraion... this sorted my problem

    Up Down 0 rated
  • ...and i didnt have to change the url to begin wih the domain (http://mysite.com/filepath) I was able to maintain the absolute paths from the root (/absolutePathToMyFile.ext)

    Up Down 0 rated
  • Why can I play a .mp4 video OK and when I try to play a .mov file I get the 'Video not found or access denied' message?

    It's exactly the same set up, both vids produced from the same machine, all I did was create a new Media item. With one it works OK, the other I get the error message.

    Cheers,

    Martin.

    Up Down 0 rated
  • @Martin

    Can you provide a link?

    are the mime type properly declared on the server?

    Since .mov is QuickTime multimedia file format, is Quicktime installed?

    what OS are you using?

    Up Down 0 rated
  • Hi Willie,

    Thanks for getting back to me...

    Re the server details - can you tell me what the mime type should be? I'm hosting with Hostgator (dedicated server) so I'll need to get them to check and update if necessary.

    Re Quicktime - this is installed on my local machine (v. 7)

    My local machine is on XP Pro, server is Linux/Apache.

    Cheers,

    Martin.

    Up Down 0 rated
  • @Martin

    No need to check with your ISP you can do this via the .htaccess file

    The mime type for mov

    bc.. video/quicktime qt mov




    Here is a good resource on mime types and worthwhile noting

    http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types

    If you need help in setting up a .htaccess file then contact me from off my web site, www.mirana.net

    Up Down 0 rated
  • Willie, hi,

    That's great - many thanks!

    I'm familiar enough with .htaccess, but many thanks for the offer :)

    Cheers,

    Martin.

    Up Down 0 rated
  • @Martin

    happy that it's working now.

    when all done send me a link to look at

    Up Down 0 rated
  • Thank god I found this thread...

    All along I had to reference the movie relative to the swf not the html file.
    Phew!

    Up Down 0 rated
  • Some folks may have been able to solve this issue but I still have not. Let me start by saying I am using ASP.Net 4.0. As people have mentioned if I have my MP4 video, HTML/ASPX page and my JWplayer all on the root director the video plays fine. However, if I starting using sub-directories or folders I get the error message. This is a major problem for us. There is no way we can have a site with everything sitting on the root directory. So...I will explain my set up and see if anyone has suggestions.

    I have this current folder structure.

    Path to html/aspx pages
    Root--->mobile--->html/aspx pages (the actual page that plays the file is mplayvid.aspx)

    Path to MP4 video
    Root--->034c (034c is the folder where the actual mp4 video resides)

    On the mplayvid.aspx I have the following code in the head:
    <script type="text/javascript" src="mobile/jwplayer/jwplayer.js"></script>

    On the mplayvid.aspx I have the following code in the body:
    <video
    src="<%# Eval("demolink") %>"
    height="240"
    id="container"
    poster="3jw.gif"


    width="320">
    </video>

    <script type="text/javascript">
    jwplayer("container").setup({
    autostart: false,
    flashplayer: "mobile/jwplayer/player.swf"
    });
    </script>
    My assumption of this would be root-->mobile(folder)-->jwplayer(folder)-->jwplayer.js

    and root-->mobile(folder)-->jwplayer(folder)-->player.swf

    This obviously is wrong because I keep getting the access denied or video not found error message. This is sooooooooo FRUSTRATING!!!!!!. Can anyone please give me the correct path. Moving the video folder is not an option.

    Up Down 0 rated
  • Can you provide a link?

     
    Up Down 0 rated
  • Trying again. The original post:
    I get the "video not found or access denied" error... even when I try and play the default "readme.html" file. The files have been dropped on the server the way they were unpacked. I've tried it on two servers (W2003, IIS6) with the same result. I know the video file is there, so I'm assuming it's an access issue. But I can't figure it out!?! The non-functioning "readme" file can be viewed at http://www.brilliantbuildings.net/jwplayer/readme.html. Help!

    The reply from Ethan Longtail:
    @DrewW - Your video file is returning a 404 not found error - http://www.brilliantbuildings.net/jwplayer/video.mp4 , please check your paths.

    The problem:
    I can see the video.mp4 file in the jwplayer folder which is in the root directory of the website, sitting right next to http://www.brilliantbuildings.net/jwplayer/preview.jpg, which you can see. I'm pretty sure the paths are good.

    I put the video.mp4 in the root directory at http://www.brilliantbuildings.net/video.mp4, and you still get a 404 error. Are you sure that's a valid test in the case of .mp4 files?

    Up Down 0 rated
  • Solved it! I'm user #4,556,667,032 who didn't set the mime types properly. Added a .mp4 mime type and restarted World Wide Web Publishing Service on IIS6. All is now good.

    Up Down 0 rated
  • Great, glad you got it! :)

     
    Up Down 0 rated
  • I run in IE9 that is running, but I run in Opera (version 11.11), firefox (4.0.1), and Safari (5.0.5 (7533.21.1)), all of them can not run video (FLV)
    "Video not found or access denied: http://www.domainname.com/demo/wp-content/video/filename.flv"

    I've test 10 times to try and try, I'm very confuse how to use it.
    FYI, I try and run in wordpress 3.1.3.

    So, how should I do?

    Thank you.
    Regards,
    Rileks

    Up Down 0 rated
  • hmmm

    If I click on that link I get a 404 message

    Up Down 0 rated
  • @Willie – Obviously domainname.com is just an example…

    @Rileks – Can you provide a link?

     
    Up Down 0 rated
  • Hi Ethan,

    I'm using a playlist and I get "Video not found or access denied".

    http://www.njnpc.com/2011/Shows/MidAtlantic/Videos.aspx

    I'm using an absolute path for the videos. If you go to the file directly, it's there. I have no problem without a playlist so I'm stuck. I also created a crossdomain file, but that's not the problem.

    Followed the example on this page:
    http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/24/creating-a-playlist

    Using SWFObject 1.5.

    Appreciate your assistance.

    Spence

    Up Down 0 rated
  • On your page, I am getting this error. http://www.njnpc.com/2011/Shows/MidAtlantic/player.swf – 404 Not found.

     
    Up Down 0 rated
  • Ok, I figured it out. It was a combination of a cached page, videos that had to load completely before playing, corrupt files.

    Is there a way to display a picture as a cover not related to any specific video like a cover sheet?

    Up Down 0 rated
  • Great, glad you got that sorted.

    Yes, you can use the “image” variable to point to an image on your server.

     
    Up Down 0 rated
  • Hi Ethan,

    I tried adding the image variable with a relative and absolute path - still nothing.


    so.addVariable('image', 'http://www.njnpc.com/2011/Shows/MidAtlantic/Vendors/sm_2011MidAtlantic_01.jpg');

    Am I missing someything?

    Thanks,

    Spence

    Up Down 0 rated
  • @Spense

    Question:

    Where in relation to the player is the image located?

    May I suggest that you place your player in the root directory, that is where your html files are and then just make sure that the image(s) are located in a directory off the root. Equally it goes with the js files that may be needed.


    Hope this gives you a greater insight.

    btw, it may also be prudent to correct the errors that you have on your web site as it does not validate ONE of which is where you use the id twice when it should only be used once on a page if you need to use it more than once then change it from id to class in your CSS

    feel free to peek through on my web site in the multimedia section there you'll find a button to view the coding used for the examples present. www.mirana.net

    Up Down 0 rated
  • @Spence – When you use an XML playlist, it overrides the “image” flashvar.

    To sort this, you just need to add the images to your XML playlist entries. Then, they will show up.

     
    Up Down 0 rated
  • Hi Ethan,

    <item>
    <title>2011 Mid-Atlantic Natural Championships</title>
    <media:thumbnail url="http://www.njnpc.com/2011/Shows/MidAtlantic/Vendors/sm_2011MidAtlantic_0 o1.jpg" />
    <description>2011 Mid-Atlantic Natural Championships</description>
    </item>

    Is this code right? I can't get it to work?

    Up Down 0 rated
  • Hi Willie,

    Thanks for your advice. I'm keeping my player and files off the root since I will be referencing these files quite frequently.

    Were you talking about WC3 validation the video page or for the main site?

    Here is the video page.

    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.njnpc.com%2F2011%2FShows%2FMidAtlantic%2FVideos.aspx&charset=%28detect+automatically%29&doctype=Inline&ss=1&outline=1&group=0&No200=1&user-agent=W3C_Validator%2F1.2

    Up Down 0 rated
  • @Spence – That code looks right, but you are only specifying a preview image in that entry, not a file.

     
    Up Down 0 rated
  • Ethan,

    What's the syntax for that?

    Up Down 0 rated
  • See – http://www.longtailvideo.com/jw/upload/mrss.xml

    <media:content url="http://www.longtailvideo.com/jw/upload/bunny.flv" type="video/x-flv" duration="33" />

    You need that for a “file”.

     
    Up Down 0 rated
  • Ethan,

    Still doesn't work.

    http://www.njnpc.com/2011/Shows/MidAtlantic/playlist5.xml

    <item>
    <title>2011 Mid-Atlantic Natural Championships</title>
    <media:content url="http://www.njnpc.com/2011/Shows/MidAtlantic/Vendors/sm_2011MidAtlantic_01.jpg" />
    <description>2011 Mid-Atlantic Natural Championships</description>
    <jwplayer:duration>0</jwplayer:duration>
    </item>

    I know we are getting closer.

    Up Down 0 rated
  • Make it like this:

    <item> <title>2011 Mid-Atlantic Natural Championships</title> <media:content url="http://www.njnpc.com/2011/Shows/MidAtlantic/Vendors/sm_2011MidAtlantic_01.jpg" /> <media:thumbnail url="http://www.njnpc.com/2011/Shows/MidAtlantic/Vendors/sm_2011MidAtlantic_01.jpg" /> <description>2011 Mid-Atlantic Natural Championships</description> <jwplayer:duration>30</jwplayer:duration> </item>

     
    Up Down 0 rated
  • OK, I got it working - Finally!!

    What's so annoying is that I am caching my XML files in the public domain so even if I upload a revised xml file, it doesn't reflect the changes so you think nothing is happening.

    Thanks Ethan!!

    Up Down 0 rated
  • Np!

     
    Up Down 0 rated
  • problem is : 1,2,3 video work. 4,5,6 not : http://warseo.com/money-video-tips-1/zero_to_six_figures_the_blueprint/


    "Video not found or access denied"
    NED HELP contact: PAYPAL3@YANDEX.RU
    CODE HERE :


    <p> </p>
    <table border="1" width="37%">
    <tr>
    <td><div id="mediaspace">_*<font size="4">Video1-KeywordResearch</font>*_<p><embed type="application/x-shockwave-flash" src="http://warseo.com/player.swf" style="" id="mpl" name="mpl" quality="high" allowfullscreen="false" allowscriptaccess="always" wmode="opaque" flashvars="file=http://warseo.com/wp-video/Video1KeywordResearch.mp4&autostart=false&image=/mmm/1/images/mattproof.jpg&controlbar=over&stretching=exactfit" height="400" width="580"></div></td>
    </tr>
    <tr>
    <td>_*<font size="4">Video2-SniperSiteCreation</font>*_<div id="mediaspace"><embed type="application/x-shockwave-flash" src="http://warseo.com/player.swf" style="" id="mpl" name="mpl" quality="high" allowfullscreen="false" allowscriptaccess="always" wmode="opaque" flashvars="file=http://warseo.com/wp-video/Video2SniperSiteCreation.mp4&autostart=false&image=/mmm/1/images/mattproof.jpg&controlbar=over&stretching=exactfit" height="400" width="580"></div></td>
    </tr>
    <tr>
    <td>_*<font size="4">Video3-Preselling</font>*_<div id="mediaspace"><embed type="application/x-shockwave-flash" src="http://warseo.com/player.swf" style="" id="mpl" name="mpl" quality="high" allowfullscreen="false" allowscriptaccess="always" wmode="opaque" flashvars="file=http://warseo.com/wp-video/Video3Preselling.mp4&autostart=false&image=/mmm/1/images/mattproof.jpg&controlbar=over&stretching=exactfit" height="400" width="580"></div></td>
    </tr>
    <tr>
    <td>_*<font size="4">Video4-LinkCloaking</font>*_<div id="mediaspace"><embed type="application/x-shockwave-flash" src="http://warseo.com/player.swf" style="" id="mpl" name="mpl" quality="high" allowfullscreen="false" allowscriptaccess="always" wmode="opaque" flashvars="file=http://warseo.com/wp-video/Video4LinkCloaking.mp4&autostart=false&image=/mmm/1/images/mattproof.jpg&controlbar=over&stretching=exactfit" height="400" width="580"></div></td>
    </tr>
    <tr>
    <td>*<font size="4">Video5-SniperSiteContent</font>*<div id="mediaspace"><embed type="application/x-shockwave-flash" src="http://warseo.com/player.swf" style="" id="mpl" name="mpl" quality="high" allowfullscreen="false" allowscriptaccess="always" wmode="opaque" flashvars="file=http://warseo.com//Video5SniperSiteContent.mp4&autostart=false&image=/mmm/1/images/mattproof.jpg&controlbar=over&stretching=exactfit" height="400" width="580"></div></td>
    </tr>
    <tr>
    <td>_*<font size="4">Video6-FinalSteps</font>*_<div id="mediaspace"><embed type="application/x-shockwave-flash" src="http://www.warseo.com/player.swf" style="" id="mpl" name="mpl" quality="high" allowfullscreen="false" allowscriptaccess="always" wmode="opaque" flashvars="file=http://warseo.com/Video6FinalSteps.mp4&autostart=false&controlbar=over&stretching=exactfit" height="400" width="580"></div></td>
    </tr>
    </table>


    Up Down 0 rated
  • According to Firebug you 6th video is only 200 KB – http://warseo.com/Video6FinalSteps.mp4

    I would:

    Make sure you have the MP4 MIME-TYPE set on your server.
    Disable GZIP Compression.

     
    Up Down 0 rated
  • no its 15mb

    Up Down 0 rated
  • application/mp4 mp4s

    Up Down 0 rated
  • Yes, so since Firebug is reporting that incorrect size, your server has an issue.

    Again:

    Make sure you have the MP4 MIME-TYPE set on your server.
    Disable GZIP Compression.

     
    Up Down 0 rated
  • Using the Wordpress plugin with .mov files. Get the Video Not Found or Access denied message. Help!

    Up Down 0 rated
  • Well, the .mov file finally loaded (took quite a while) but only get audio. Using the Wordpress Plugin.

    Up Down 0 rated
  • http://warseo.com/money-video-tips-1/downloadable-products-from-popular-money-making-sites/

    looks like work :)

    Up Down 0 rated
  • @Ruslan – Glad you got it working :)

    @Holroyd Hammond – Provide a link.

     
    Up Down 0 rated
  • Hi, and thanks. Here's the link -
    http://guitarskool.com/jw-player-test/

    Up Down 0 rated
  • Your video is not encoded in H.264, that is the issue.

    I would encode using this program – http://handbrake.fr/

     
    Up Down 0 rated
  • Thanks for the help. Got it working. I use a Zoom Q3 for recording which only records in .mov format. Encode with HandBrake to mp4 and works fine.

    Up Down 0 rated
  • Great, np!

     
    Up Down 0 rated
  • I first had this issue running on a remote IIS server. So I tried running locally on my apache server on my mac. But I get the same error. Does anyone have a solution for the mac?

    Thanks,

    David

    Up Down 0 rated
  • nvm figured it out.

    I replaced /jwplayer/video.mp4 with video.mp4. In other words it didn't like the path to the root, even though the jwplayer is *in* the root.

    -- David

    Up Down 0 rated
  • Glad you got it working. Generally, absolute paths are recommended, though.

     
    Up Down 0 rated
  • Hi,

    I am using JoomlaWorks AllVideos player. I don't know how jwplayer comes in while I am using JoomlaWorks AllVideos. Regardless of that, I come to the problem. The player plays mp4, mp3, wmv. But when I play flv, I get error Video not found or access denied. The syntax to use files is:

    {type}name without path or extension {/type}

    Example: {mp3}abc{/mp3} OR
    {mp4}abc{/mp4}

    As per instructions of JoomlaWorks, file must be in the folder of:

    /site/images/stories/video or
    /site/images/stories/audio

    I am hosting with a company on IIS. I added flv in .htaccess file like this:

    addtype video/x-flv flv

    I am a newbie, any help would be appreciated.

    Up Down 0 rated
  • Can you provide a link?

     
    Up Down 0 rated
  • Hello,

    I am having same problem like many others, video not found message. Here is my link:

    http://al-keetab.com/index.php?option=com_content&view=article&id=10:test&catid=2:video-lectures-of-moulana-muhammad-ishaq-punjabi&Itemid=2

    Up Down 0 rated
  • @khalid

    Assalamo Alaikum

    I would check if this is perhaps a relative path issue that is to say in relation to where you have your files.

    May I suggest the following?

    Check your video file's location in relationship to the JWPlayer.

    On my web site I place the JWPlayer within the root directory then from there I have my needed directories such as my CSS, javascript files, my video files and my audio files as well as my images.

    If you wish feel free to visit my web site particularly the multimedia section there you'll find examples of audio and video in both the flashmode and html5mode and as well to click on the view code button to view the coding used for that particular feature of the JWPlayer.

    I am not sure if this answers your query BUT it is a place to start.

    Shukran

    Up Down 0 rated
  • According to Firebug, this file does not exist – http://al-keetab.com/images/stories/video/sun.flv

     
    Up Down 0 rated
  • Hello Willie,

    I don't have the liberty to change file path or its relative path. Joomla requires me to put in a specific directory. What is the URL of your web site?

    Hello Ethan,

    The file does exist. You can try clicking on the following URL:

    http://al-keetab.com/index.php?option=com_content&view=article&id=10:test&catid=2:video-lectures-of-moulana-muhammad-ishaq-punjabi&Itemid=2

    But you can't access it directly with the URL you mentioned:

    http://al-keetab.com/images/stories/video/sun.flv

    Up Down 0 rated
  • @khalid – I got that URL from Firebug. Maybe you should consider using absolute paths instead of relative paths.

    http://al-keetab.com/index.php?option=com_content&view=article&id=10:test&catid=2:video-lectures-of-moulana-muhammad-ishaq-punjabi&Itemid=2 is just a link to the player, where you are incorrectly linking to the FLV. Where is the FLV location?

     
    Up Down 0 rated
  • PLAYER/VIDEO WORKS FINE ON EVERYTHING EXCEPT APPLE STUFF
    I've set up a test site for you at: www.922B.com
    Hi, Ethan, forgive my ignorance. Yes, I've read the threads and tried to find the solution. I can't figure it out. I used the wizard and the player and all my videos work fine thru the computer on the internet, but, they don't work on APPLE itouch/ipad. The site loads and the JPG appears and I click on the arrow and an error appears:
    "the video could not be loaded either because the server or network failed or because the format is not supported".
    After trying numerous videos, at last resort, I put the bunny video up there and lo and behold it WORKED!! So, it appears to be an encoding issue. Well, I tried multiple videos, 2-encoders and different formats. I tried lowering the quality of the videos from 13mb to where it is now at 4mb, I used Main Concept H264 settings,etc. Right now, the video is Apple H264 at a low quality 4mb file setting. What am I doing wrong that I can't get it to work on the APPLE except with the bunny video? Again, all videos are H264 mp4s using either Main Concept or Apple settings. Thanks.

    Up Down 0 rated
  • @Burt

    have you checked that the video format is H.264 mp4 iso v2

    It could very well be that the video which you are using is
    H.263 mp4 which will not work on the itouch/iPAD.

    If this is the case then simply convert to the H.264 mp4 iso v2 format

    Btw, this is the format that mobile devices are implemnting in their newer software from the older iso

    Up Down 0 rated
  • @Burt – I would check your video encoding.

    Try to test with this file, it works on iOS – http://www.longtailvideo.com/jw/upload/bunny.mp4

     
    Up Down 0 rated
  • Hi, Ethan, Hi, guys!
    Very strange problem. But, it is resolved. If this helps anyone to see the formula. It went from a Canon VIXIA camcorder which spits out that MTS format into the computer. To edit in I-Movie, it had to be converted first to MOV. Then, after being edited as an MOV in I-Movie,
    it was mastered off from I-Movie at the highest MOV setting and then
    converted to FLV. Somehow, the conversion from the FLV to MP4 just didn't work. I had to go back and find the MOV master after editing in I-Movie which was a huge highest quality file at 160mb and converting off that master direct to MP4 did work. So, I guess, beware of taking an FLV and converting to MP4. At least, that is, in some cases. Thanks.

    Up Down 0 rated
  • Glad you got it working.

     
    Up Down 0 rated
  • Hi Ethan,

    Referring to above thread, I am using AllVideos plugin from joomlaworks. it plays successfully all files (mp4, wmv, mp3) except flv. For flv, it calls jwplayer. In the plugin configuration, I have defined location of the video folder. As per plugin doc, to play any video, just write following code (no path is required):

    {format}fileame{/format}
    e.g. {wmv}filename{/wmv} or
    {flv}filename{/flv}

    Following is the code which calls the flv file

    "flv" => "
    <object type=\"application/x-shockwave-flash\" style=\"width:{WIDTH}px;height:{HEIGHT}px;\" data=\"{SITEURL}/plugins/content/jw_allvideos/includes/players/mediaplayer/player.swf\" title=\"JoomlaWorks AllVideos Player\">
    <param name=\"movie\" value=\"{SITEURL}/plugins/content/jw_allvideos/includes/players/mediaplayer/player.swf\" />
    <param name=\"quality\" value=\"high\" />
    <param name=\"wmode\" value=\"{TRANSPARENCY}\" />
    <param name=\"bgcolor\" value=\"{BACKGROUND}\" />
    <param name=\"autoplay\" value=\"{AUTOPLAY}\" />
    <param name=\"allowfullscreen\" value=\"true\" />
    <param name=\"allowscriptaccess\" value=\"always\" />
    <param name=\"flashvars\" value=\"file={SITEURL}/{FOLDER}/{SOURCE}.flv&image={SITEURL}/{FOLDER}/{SOURCE}.jpg&autostart={AUTOPLAY}{CONTROLBAR}&fullscreen=true\" />
    </object>
    ",

    The file does exist at location /al-keetab.com/images/stories/video.
    I have put one wmv file and another flv. The first one plays while the 2nd doesn't. If you look at source (View Source), both files are at the same location.

    Pls try at this url:


    http://al-keetab.com/index.php?option=com_content&view=article&id=10:test&catid=10:test&Itemid=2

    Up Down 0 rated
  • 1) You need a crossdomain.xml file here – http://www.al-keetab.com/crossdomain.xml

    2) This file is returning a 404 – http://www.al-keetab.com/images/stories/video/sun.flv

     
    Up Down 0 rated
  • I wonder if this is crossdomain issue? Anyway, I have put a crossdomain.xml file at the root of al-keetab.com domain with following entries, problem is still there (sorry I am newbie, I took sample of the file from adobe site, hope it is OK):

    <?xml version="1.0"?>


    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">


    <cross-domain-policy>


    <allow-access-from domain="www.al-keetab.com" />


    <allow-access-from domain="www.al-keetab.com/images/stories/video" />


    <allow-access-from domain="al-keetab.com" />


    <allow-access-from domain="al-keetab.com/images/stories/video" />


    </cross-domain-policy>

    Is there any XML tag which says "allow-access-from folder"?

    Up Down 0 rated
  • I would make your crossdomain.xml allow access from everywhere, just to test this out.

     
    Up Down 0 rated
  • I added a mime type (video/x-flv) via Control Panel of the of the hosting provider, that resolved flv problem.

    Up Down 0 rated
  • Cool!

     
    Up Down 0 rated
  • I get the "Video not found or access denied message" and i'm unable to fix it. Can anyone help me? Its driving me nuts. Here is my code (with a fake domain name):

    <html>
    <head>
    <script type="text/javascript" src="http://www.domain.nl/jwplayer/jwplayer.js"></script>
    </head>

    <body>
    <div id="container">Loading the player ...</div> <script type="text/javascript"> jwplayer("container").setup({ flashplayer: "http://www.domain.nl/jwplayer/player.swf", file: "http://www.domain.nl/jwplayer/video.mp4", height: 270, width: 480 }); </script>
    </body>
    </html>

    Up Down 0 rated
  • A link would be nice.

     
    Up Down 0 rated
  • Hi Ethan,

    Here is the link:
    http://www.spazzola.nl/jwplayer/

    Up Down 0 rated
  • Hi Ethan,

    Sorry, i just tried adding the mime type via my control panel and now it works.

    Up Down 0 rated
  • Do you know how to remove the menu which is shown when the movie ends playing?

    i tried:

    menu: false,

    allowscriptaccess: never,

    events: {
    onComplete: jwplayer("container").remove();
    }

    None of these seem to work.

    Up Down 0 rated
  • I have the same problem. Some videos are playing, while others no.

    Check this out :

    This one loads -> http://www.paixnidakia.gr/file.php?f=558

    this one no -> http://www.paixnidakia.gr/file.php?f=737

    Any ideas ?

    Up Down 0 rated
  • Your 2nd link =

    Error!

    Cannot modify header information – headers already sent by (output started at /home2/katsixti/public_html/paixnidakia.gr/templates/default/file.template.php:1)

    File: /home2/katsixti/public_html/paixnidakia.gr/includes/template.php (227)

    Please advise.

     
    Up Down 0 rated
  • I am using JW Player Plugin for WordPress v1.4.3
    WordPress v3.2.1

    Using shortcode to play an flv video, I am getting
    Video not found or access denied.
    Shortcode I am using in the post is
    bc.. [jwplayer config="Custom Player" file="<?php bloginfo('template_url'); ?>/video/promo.flv" image="<?php bloginfo('template_url'); ?>/media/thumbs/intro.png" autostart="true"]

    Which produces http://mikdagoproductions.com/wp-content/themes/MikDago/video/promo.flv
    url is http://mikdagoproductions.com/

    I use the same shortcode on another page with a different flv file and it works. The only difference other than file name is autostart="false"
    Don't understand why one will play and one will not.

    Up Down 0 rated
  • http://mikdagoproductions.com/wp-content/themes/MikDago/video/promo.flv = 404 not found.

    Check it in your browser…

     
    Up Down 0 rated
  • I can see the video on the server in the video folder. If I change the name and play another video from the same folder it works.
    Could it possibly be the encoding of the video?

    Up Down 0 rated
  • Ok, solved.
    It doesn't like me shortening the name of the file.

    Up Down 0 rated
  • Glad you got it!

     
    Up Down 0 rated
  • hi! since uploaded mp4 files didn't work i used the bunny video http://www.longtailvideo.com/jw/upload/bunny.mp4

    now the video is working when viewing in chrome windows xp but not when viewing on iphone/ipad - i get the "... server or network failed or because the format is not supported" error message

    I added the following line to my .htaccess file:
    AddType video/mp4 mp4 mp4v mpg4

    this video is working on my pc: http://www.summersplash.at/videos/bunny.mp4

    this video isn't working on the pc and on iphone/ipad: http://www.summersplash.at/videos/promovideo.mp4

    how can i get the videos working on iOS

    Up Down 0 rated
  • Hi,

    In my case even relative path works only on local-host.
    When I use the same code on hosting server ( with url replaced), it shows me player, but the video never loads, keeps showing loading gif.
    What may be missing/wrong? The file size is small (for time being I am using the sample video.mp4), so it should load with in few seconds.

    Regards,
    Yo

    Up Down 0 rated
  • Can both of you guys please provide links to where you are running the JW Player?

     
    Up Down 0 rated
  • http://talentserv.net/videotests/

    Up Down 0 rated
  • http://www.summersplash.at/mp4-test-2/

    Up Down 0 rated
  • It can play files in any format from external source,
    but somehow it can not play files from same server

    Up Down 0 rated
  • Markus, your promo video is working on my pc ( xp sp3, ff 5)

    Up Down 0 rated
  • but the html5 backup isn't working on iOS although its the mp4 bunny video from this site http://www.summersplash.at/videos/bunny.mp4

    Up Down 0 rated
  • @Yo – Your 2nd video does not work.

    I would check the following:

    - Is the video encoded in H.264?
    - If so, run it through this tool – http://renaun.com/blog/2010/06/qtindexswapper-2/
    - If that does not fix the issue, make sure that your server has the MP4 MIME-TYPE set and that GZIP Compression is disabled.

    @Markus – Try to use this file – http://www.longtailvideo.com/jw/upload/bunny.mp4 , please note, there is an issue with the WP plugin and adding html5_file in your shortcode. You need to add the html5 fallback file via the media manager.

     
    Up Down 0 rated
  • Thanks for the pointers.

    I am using the video which came with the JWplayer download zip. As it is working fine in readme.html on localhost, I guess its H.264 encoded.

    I will check for the compression settings & get back.



    Up Down 0 rated
  • Now the local video is working after index swapping with QTIndexSwapper 2.

    Now iOS html5 fallback is not working ! need some more pointers.

    Up Down 0 rated

This QA is closed.

Still don't have JW Player? Get It Here