This is actually for 5.x-1.x-dev, but here we go. I've been working with op_video through Flash by using the Services module and needed to get the video information through a service. I ended up creating a service.inc that exposed some of the op_video functionality to the Services module. Right now, there's only a "video.load" service to return a bunch of information about the video, but there certainly can be more....

Index: op_video.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/op_video/op_video.module,v
retrieving revision 1.1
diff -u -r1.1 op_video.module
--- op_video.module 18 Aug 2007 15:20:28 -0000 1.1
+++ op_video.module 8 Nov 2007 16:33:33 -0000
@@ -15,6 +15,9 @@
_op_video_require('thumbs.inc');
_op_video_require('player.inc');
_op_video_require('transcoder.inc');
+if (module_exists('services')) {
+ _op_video_require('service.inc');
+}

function _op_video_require($filename) {

.... Once the service.inc is included from op_video.module, you have the ability to use the video service. Of course, you'll also need service.inc which is attached.

CommentFileSizeAuthor
service.inc753 bytesrobloach

Comments

robloach’s picture

Hrmmm....

Index: op_video.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/op_video/op_video.module,v
retrieving revision 1.1
diff -u -r1.1 op_video.module
--- op_video.module	18 Aug 2007 15:20:28 -0000	1.1
+++ op_video.module	8 Nov 2007 16:33:33 -0000
@@ -15,6 +15,9 @@
 _op_video_require('thumbs.inc');
 _op_video_require('player.inc');
 _op_video_require('transcoder.inc');
+if (module_exists('services')) {
+  _op_video_require('service.inc');
+}
 
 
 function _op_video_require($filename) {
jbrown’s picture

Assigned: Unassigned » jbrown

I have no idea what this does, but I'll put it in the next release.

robloach’s picture

It lets you do things like query the video information through Flash or Flex!

jbrown’s picture

Status: Needs review » Fixed

this is now applied to 5.x-3.x-dev

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

robloach’s picture

Project: OpenPackage Video » Blue Droplet Video
Version: 5.x-2.2 » 6.x-1.x-dev
Status: Closed (fixed) » Active

Unfortunately I haven't touched the Services module in years. If anyone uses Blue Droplet and wants some Flash integration, this is where they should upload the patch!