anyone usinng amazon s3 and cloudfront with JW player or flowplayer?

8 replies
I am having trouble integrating them i have tried many online tutorials but can't stream the video.Even official tutorial of jw player didn't help much.here's the tut i am reffering to Using CloudFront | LongTail Video | Home of the JW Player .can anyone help me with that?
#amazon #cloudfront #flowplayer #player #usinng
  • Profile picture of the author gcbmark20
    I tried to use that myself but haven't got round to asking here at the forum yet.

    Hopefully we will see some pretty good examples to put it right soon.
    {{ DiscussionBoard.errors[6742933].message }}
    • Profile picture of the author Martin Avis
      What exactly is the problem?

      I run videos on S3 with JW Player with no problem.

      You have to put the following files in your S3 bucket with the .mp4 file: jwplayer.js, player.swf, swfobject.js, title.jpg (the still image to display before your video starts) and index.htm

      The index file contains the HTML code for your video page, and somewhere needs to include the following:

      Code:
      <!-- START OF THE PLAYER EMBEDDING TO COPY-PASTE -->
      	<div id="mediaplayer">JW Player goes here</div>
      	<script type="text/javascript" src="jwplayer.js"></script>
      	<script type="text/javascript">
      		jwplayer("mediaplayer").setup({
      			flashplayer: "player.swf",
      			file: "yourvideofile.mp4",
      			image: "title.jpg",
      			height: 360,
      			width: 640
      		});
      	</script>
      <!-- END OF THE PLAYER EMBEDDING -->
      Height and width should be changed to whatever your video is set to.

      One thing to remember with .mp4 videos is that some programs that create them (Sony Movie Studio, for example) put the file that tells the player where everything on the video is right at the end. This means that JWPLayer will appear to freeze when you try to play the video as it is downloading the entire file to find the index that tell it how to play it.

      Stupid, but true.

      The way around this, to make your video play instantly no matter how long it is, is to download a piece of free software called QTIndexSwapper2 and run your video through it first. QTIndexSwapper simply moves the video's index from the end to the beginning and it works like a charm.


      Martin
      Signature
      Martin Avis publishes Kickstart Newsletter - Subscribe free at http://kickstartnewsletter.com
      {{ DiscussionBoard.errors[6743024].message }}
  • Profile picture of the author wahidswebgarage
    But the problem is i am using it in a dynamic site,i am calling the files from index.php.As far i know s3 doesn't support dynamic site.And i don't see anything about cloudfront in your code.
    {{ DiscussionBoard.errors[6743107].message }}
  • Profile picture of the author Martin Avis
    That was why I asked exactly what the problem was.
    Signature
    Martin Avis publishes Kickstart Newsletter - Subscribe free at http://kickstartnewsletter.com
    {{ DiscussionBoard.errors[6743216].message }}
  • Profile picture of the author pdrs
    Yeah what's the problem - I've been using it for almost a year with no issues
    Signature
    RemoteControlHelicopterReviews.(com/net) - Up for sale! No reasonable offer refused. Great branding for a super hot niche!
    {{ DiscussionBoard.errors[6743242].message }}
  • Profile picture of the author wahidswebgarage
    The problem is the player shows up but the video doesn't play...can any of you give me the code that u use in your index page.
    {{ DiscussionBoard.errors[6743307].message }}
  • Profile picture of the author Martin Avis
    Is it an mp4 video, and if so, could it be connected to the phenomenon I mentioned in the second half of my post?
    Signature
    Martin Avis publishes Kickstart Newsletter - Subscribe free at http://kickstartnewsletter.com
    {{ DiscussionBoard.errors[6743359].message }}
    • Profile picture of the author wahidswebgarage
      Originally Posted by Martin.Avis View Post

      Is it an mp4 video, and if so, could it be connected to the phenomenon I mentioned in the second half of my post?
      The video is in avi format.
      {{ DiscussionBoard.errors[6743378].message }}

Trending Topics