Jump to content

Recommended Posts

 Hey there, sorry if this is in the wrong section. Basically what I want to do is have a link via email when it comes to a product reminder that they purchased this expensive item I am selling, while the link will take them to this free for three times use video to watch as a thank you for still sticking with the purchase.

 

 I do not want this video to get out, like if the person goes to the url, they cannot copy and paste the url to all their friends to watch the video for free. So it does have a cap on it, also would like to monitor if the button was ever gone to, how much of the video was watched, etc.

 

Just want to get some ideas from everyone to get a better picture as to where I should start...

This is a fairly standard type of request.

 

You will need a database table, where there is a row for each customer that gets inserted. This row can include the data purchased and their email, along with any other information you have on that that would be pertinent historically.

 

This same row can store the number of views, starting with 0.

 

The script that renders the video will lookup the correct row in the database using a url like this:

 

yoursite.com/showvideo?id=........

 

Where id will be a hash that is stored and indexed in each customer row. I would recommend an md5 or sha1 hash based on some random data. The insert script should take care of this, as well as storing the user and probably sending out the email.

 

When the script runs, it will verify the user, render out the player and stream the video. It's important that the video stream is also delivered programmatically via a script, so that people can not simply pull it off the server. In other words, it needs to be somewhere on the server that is not web accessible and should only be delivered as a source to the player if the access checks were added and passed. This 2nd delivery script should increment the number of views.

 

3 is a really small number, and I'd recommend you reconsider the delicate balance between pleasing your customers and being overly concerned about people who might want to take advantage. Is it worth upsetting one A quality customer who has a wonky browser and internet connection, just so you can stop a few people from watching a video associated with your product? I'd recommend being a lot more generous with views (10 at minimum) before you cut someone off, and just so you know, there will always be people who download your video.

 

I have to point this out, because these players are just code and the mechanics of delivering a video are complicated, and easily reverse engineered by people who know what they are doing.

 

I'd recommend using the longtail video player as it makes hooking up to the events system in Google analytics, which will allow you to track the percentage of video watched. See: http://www.longtailvideo.com/support/jw-player/28853/connecting-google-analytics/

 

Hope this helps you get started.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.