Dasha Vashchilenko added support for Secure Streaming Flowplayer. It's pretty nicely done, and I was looking for thoughts on it:
http://drupal.org/files/issues/flowplayer_secure.zip

I'd have absolutely no problem with it going into the Flowplayer namespace, what do you guys think? Maybe into contributions/modules/flowplayer/contrib/flowplayer_secure?

Well done, Dasha! It looks great!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dasha_V - old’s picture

This module extend flowplayer API module with secure plugin.
It makes videos available for being played only (deny direct download of the file).
This module make use of this flowplayer secure streaming plugin http://flowplayer.org/plugins/streaming/secure.html.

Example of usage:
1) New file field formatter: go to Content management › Content types › [Your type here] -> Display fields
and for ‘filefied’ field select 'Video player (Flowplayer secure plugin, flv only)' format.

2) Theme Function - use theme(‘flowplayer’, …) e.g. like Video module does

3) API: use flowplayer_secure_add() function instead of flowplayer_add() function (with the same parameters) – look at documentation here http://drupal.org/project/flowplayer

Dependences:
flowplayer module http://drupal.org/project/flowplayer

Integration:
File field http://drupal.org/project/filefield
Video http://drupal.org/project/video
Storage API http://drupal.org/project/storage_api
Blue Droplet Video http://drupal.org/project/bd_video (patch)

Make use of drupal hook_download for private download method.

Recommended:
Private upload http://drupal.org/project/private_upload

Closest solution for protecting video content was described here:
http://drupal.org/node/235667
But this solution still allow users (who paid) to download files (using direct link from
html or firebug), and flowplayer_secure module allow to play only.

paranormals’s picture

Subscribing.. thank you. Will check this out when I get time.

Saoirse1916’s picture

Any update on this? I use Flowplayer with Blue Droplet Video and would love to see this plugin added somehow.

mwmconsulting’s picture

I'm trying to get this to work in my new Drupal 6.20 install. I have added and enabled only the modules listed above (and those which the above depend upon - i.e. mimedetect).

A few questions and concerns.

1) How can I get this to work? I'm not a Drupal newb, but I'm not expert either. I can't see how to get this up and running so that I can add new Video nodes.

2) After installing and enabling the above modules and their dependencies, I'm getting the following error when I click on the Site Configuration -> Flowplayer link:

Fatal error: Cannot use string offset as an array in /home/jones/public_html/sites/all/modules/flowplayer_secure/flowplayer_secure.module on line 209

Any help and guidance would be truly appreciated.

Cheers!

- MWM

dasha_blink’s picture

FileSize
23.18 KB

Here is quick fix for the fatal error.

Dasha_V - old’s picture

The simplest example (even without the private module) is this:

E.g. You have the video file uploaded to the sites/default/files/video,
E.g. /sites/default/files/video/video.flv there

Copy .htaccess file form /sites/all/modules/flowplayer_secure/private to the /sites/default/files/video

Done.

To test that the files are private do this:

Try to access http://example.com/sites/default/files/video/video.flv.
You should get "Forbidden, You don't have permission to access ... on this server."

Now try to play your video in the flowplayer.
Should work.

The private module will do the same with additional features. Check the help there.

Hope this helps.

Dasha_V - old’s picture

Re #3 about the Blue Droplet Video
In January 2010 I had this path for the bd_video\includes\player.inc (6.x-1.x-dev)

Index: player.inc
================================================================
@@ -216,7 +216,8 @@
     );
   }
   
-  flowplayer_add('#flowplayer' . $player_id, $config);
+  //flowplayer_add('#flowplayer' . $player_id, $config);
+  flowplayer_secure_add('#flowplayer' . $player_id, $config);
   
   $player_id++;
   return $output;

Hope this helps.

PI_Ron’s picture

Any chance of getting a Drupal 7 version of this module?

drupal9months’s picture

#6

I tried this and I just get stream error 200 on all my videos....to correct it I just have to delete the .htaccess file but it's hidden so it's gonna be a task.

Ill try the private module, thanks anyway Dasha!

gajanannehul’s picture

hi
I am having same issue but with .mp3 file i tried this but its only supports flv file please help me how to add .mp3 files also

gajanannehul’s picture

hi
Can i used this module for windows server.

rajiv.singh’s picture

the .htaccess files inside private folder contains :
SetHandler This_is_a_Drupal_security_line_do_not_remove
Deny from all

What should be there in the file?

Thanks

Farreres’s picture

Issue summary: View changes

Check my new approach to secure video streaming: https://www.drupal.org/node/2672400 now with HLS instead of Flash