Could you plz add support for the securestreaming plugin ?
See : http://flowplayer.org/plugins/streaming/secure.html

Guess data type will mostly look like rtmp plugin ...

Thank you.

CommentFileSizeAuthor
#7 flowplayer3.zip4.34 KBebremer
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

adVid’s picture

Assigned: Unassigned » adVid
Status: Active » Needs review

I've made the need changes but I don't know how to make a patch :(

You'll need to :
- get the secure streaming sources from flowplayer.org,
- re-compile it with your own key,
- set this key as SecureToken in your streaming server app config,
- edit flowplayer3.admin.inc to add a specific field :

  $form['flowplayer3_files']['flowplayer3_mediaplayer_securestream_plugin'] = array(
    '#type' => 'textfield',
    '#default_value' => variable_get('flowplayer3_mediaplayer_securestream_plugin', FLOWPLAYER3_MEDIAPLAYER_SECURESTREAM_PLUGIN),
    '#title' => t('Secure streaming plugin'),
    '#description' => t('Specify the name of the secure streaming plugin.'),
    '#size' => 30,
  );

- edit flowplayer.module to handle new FLOWPLAYER3_MEDIAPLAYER_SECURESTREAM_PLUGIN const and a new $secure var :

define('FLOWPLAYER3_MEDIAPLAYER_SECURESTREAM_PLUGIN', 'flowplayer.securestreaming-3.1.1.swf');
  // Initialise flag to show it this content is being secure streamed
  $secure = FALSE;

  // Is this file to be secure streamed? Check for the secure variable being set
  if (isset($vars->othervars['secure'])) {

    // Set secure flag to true
    $secure = TRUE;

  }
  // If we are secure streaming this file, add the securestreaming plugin
  if (isset($vars->othervars['secure'])) {

    // Define the clip connection provider as 'secure'
    $flowplayer['clip']['connectionProvider'] = 'secure';

    // Get the name of the secure stream plugin
    $flowplayer['plugins']['secure']['url'] = variable_get('flowplayer3_mediaplayer_securestream_plugin', FLOWPLAYER3_MEDIAPLAYER_SECURESTREAM_PLUGIN);

  }

HTH

ebremer’s picture

I just modified SWF Tools to support secure streaming too. I was going to submit the code changes but I don't know how to make a patch either :-( My project couples Drupal, Flowplayer, and Wowza as a integrated streaming management solution. http://www.ebremer.com/encore

ebremer’s picture

I just found the instructions for creating a patch. Looks easy:

http://drupal.org/patch/create

shadysamir’s picture

I am really interested in your solution here. I am implementing the same thing with wowzamedia 2. I compiled secure plugin with my own key, works fine outside drupal. Only diff from your setup is the use of m4v files which need the "mp4:" key before the filename and ".m4v" at the end. Any thoughts?

I also will not make it an option to choose non-secure. It has to be secure.

ebremer’s picture

Sorry for the delay in response. As long as Flowplayer can handle it (and/or Wowza), the code could be modified accordingly. I'm hoping to add integration with Tandberg's Content Server this summer.

jhrizz’s picture

Howdy!

So I have the custom flowplayer SWF and have implemented the code in the flowplayer.admin file (classy touch) but I am a bit unsure about the editing of the flowplayer.module file as part of SWF Tools. Specifically I am not clear on where I should be inserting each snipit of code. I am still learning Drupal, so it is not obvious to me what to do if I am to add "a new $secure var" other than copy and past the following line in to the .module file.

Also, is there anything that needs to be done to the content type to invoke the security?

As of now Wowza server (which I have configured properly and tested with the new flowplayer SWF) simply rejects the attempt to stream, as it seems the regular flowplayer RTMP SWF is being invoked.

Any help (and more detailed instruction would be appreciated!

Thank you,

- Josh

ebremer’s picture

FileSize
4.34 KB

The modification I made are in the drupal/sites/all/modules/swftools/flowplayer3 folder. My actual flowplayer.module is in the attached zip file. The actual section is:

// EB Hack - define connectionProvider
if (isset($vars->othervars['lock'])) {
$flowplayer['clip']['connectionProvider'] = 'lock';
$flowplayer['plugins']['lock']['url'] = $vars->othervars['lock'];
}

The secure token is compiled into the flowplayer player itself. I hope this helps. - Erich

jhrizz’s picture

Issue tags: +swf tools, +secure streaming

Hey all, still looking for help with how to invoke the Flowplayer securestreaming plug-in via the SWFTools input filter. All patches have been applied and custom compiled player has been acquired and installed. Wowza has been configured with the secret token and rejects any attempt to stream from it.

My standard input:

[swf file="live01" stream="rtmpe://live.company.com/secure" live="true"]

What do I need to do to invoke the Flowplayer securestreaming plugin?

The code in the swftools_flowplayer3.module:

// Initialise flag to show it this content is being secure streamed
  $secure = FALSE;

  // Is this file to be secure streamed? Check for the secure variable being set
  if (isset($vars->othervars['secure'])) {

    // Set secure flag to true
    $secure = TRUE;

  }
// If we are secure streaming this file, add the securestreaming plugin
  if (isset($vars->othervars['secure'])) {

    // Define the clip connection provider as 'secure'
    $flowplayer['clip']['connectionProvider'] = 'secure';

    // Get the name of the secure stream plugin
    $flowplayer['plugins']['secure']['url'] = variable_get('flowplayer3_mediaplayer_securestream_plugin', FLOWPLAYER3_MEDIAPLAYER_SECURESTREAM_PLUGIN);

Thank you in advance!

ebremer’s picture

Which version of SWFTools are you using? - Erich

jhrizz’s picture

Version: 6.x-2.5 » 6.x-3.0-beta5

@ebremer

Howdy!

6.x-3.0-beta5

Applied the patches as described. Not certain on how to invoke to secure plugin with the quicktag. Any ideas?

Thanks!

- Josh

fugazi’s picture

Subscribe

ebremer’s picture

I've only worked with the SWFTools 2.5, not the 3.0 beta version. But, I have to update my encore server this month (while classes are still out at my university for the summer) and I am looking to update everything to latest greatest. I am also going to try to spin my encore project into a Drupal 7 module which will make it my first module.

ebremer’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)