views:

33

answers:

2

I wish to play a video content (in a container) from my website/ blog, when the page is loaded . Similar to that of youtube, dailymotion etc.

I wish to give the actual Url to that container, which then plays the video in that location.

The basic idea is to hide the actual URL from the user and make the person to view the video from the current page.

Could some one suggest some feasible ideas to accomplish this.?

Thanks,

vijay

A: 

A quick Google search turned up:

JW Player

There are other FLV players out there (this one also claims to handle MP4), and that's only one possible format. Any more detailed answer would require answering what format you want to serve up, whether you want streaming capabilities, etc.

Michael Brewer-Davis
A: 

What I've seen a lot of sites do (NBC Video Player for example), is the following:

  • Create a VideoPlayer.swf which has the video player functionality.
  • Pass in a cryptic key to the VideoPlayer.swf via swfobject and flashParams
  • VideoPlayer.swf sends that key to the server.
  • Server sends back video data somehow to VideoPlayer.swf and it does its thing.

If you go to this NBC Office episode at http://www.nbc.com/The_Office/video/episodes/#vid=1200746, and look at the source, you won't find that 1200746 value anywhere, so maybe it's not in flashParams. Looks like they store that in an init.xml file via <videoID> 1200746</videoID>, and they probably use SWFAddress to map that #vid=1200746 anchor to that xml file in VideoPlayer.swf, send it to their secure server, and return the video and ads they want.

Hope that helps, Lance

viatropos