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.
| Comment | File | Size | Author |
|---|---|---|---|
| service.inc | 753 bytes | robloach |
Comments
Comment #1
robloachHrmmm....
Comment #2
jbrown commentedI have no idea what this does, but I'll put it in the next release.
Comment #3
robloachIt lets you do things like query the video information through Flash or Flex!
Comment #4
jbrown commentedthis is now applied to 5.x-3.x-dev
Comment #5
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #6
robloachUnfortunately 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!