1

I have some .flv files on my site and I've been using JWplayer to embed them into my webpages. The embedding looks like this:

<embed
flashvars="file=/tmp/<?php echo $row["location"]; ?>&autostart=true"
allowfullscreen="true"
allowscripaccess="always"
id="player1"
name="player1"
src="/jwplayer/player.swf"
width="500"
height="350"
/>

The file is coming from directory tmp and is is saved in a format *.flv. Recently, I have been noticing really slow streaming. The video will stop almost every 5 seconds. This is happening on multiple computers on multiple networks and I'm not having the same problem on different sites (i.e. youtube). I'm hosting the site through Yahoo Small Business and I have a lot of video files in the tmp directory.

Could anyone recommend me a way to allow my videos to be streamed faster?

2
  • 3
    This is almost certainly a hosting problem, not a programming problem. As such, I've voted to move it to the appropriate forum.
    – wallyk
    Commented Apr 6, 2011 at 19:55
  • Maybe your server's internet connection is too slow and overloads because of many views. What is you server's internet s
    – Searush
    Commented Aug 17, 2012 at 16:50

1 Answer 1

3

There is nothing wrong with configuration of JWplayer, most likely it's network issue, most hosting providers are not optimised for media streaming, for that purposes you have to use Content Delivery Network also known as CDN like akamai, edgecast or maxcdn

3
  • I'm not that good with website management yet, which do you think would be the best for me to use, that is, which is the easiest to use? Also, will it be hard to transfer everything over to a CDN?
    – Mike
    Commented Apr 6, 2011 at 20:11
  • To piggy-back on the off-loading suggestion, you might also consider that the Longtail people have a media hosting solution of their own.
    – Su'
    Commented Apr 6, 2011 at 22:26
  • @Mike, most CDN providers support content mirroring, usually you have to change your media url from mydomain.com/media/file.flv to something like mydomain.com.cdnprovider.net/media/file.flv or bind it via DNS to cdn.mydomain.com/media/file.flv
    – Nazariy
    Commented Apr 8, 2011 at 17:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.