Servoy Media Player PlugIn available for beta test

Hi all:)

I have written a plugin which supports movie playback and import into the servoy database via the scripting functions.

The application leverages the java media framework.

I have a sample database and intend to make it available to developers who may be interested in beta-testing.

I am in the process of completing some unit and system testing and should have it completed within the week.

Capture support is also there but will not be included with the initial release.
This will come shortly after we have written the servoy support for capture.
(I guess probably within a month for capture integration into Servoy.)

What I need right now is for somebody to tell me how to “export” a Servoy solution (sorry, but i really don’t know how to do it).
I need only to export the database structure and scripts.
I will provide a the plugin as part of the package.

There are some performance issues with loading large data back into Servoy.
I am aware of this and it relates to threading and I will probably address it with the Servoy developers when they have some free time.

Please send an email to julian@practica.com.au if you would like to be included in this beta test phase.
I would be very appreciative of any participation.
Please enter the email subject as “Servoy Media Beta” so that I can discern it from the swamp of crap-mail :)

cheers
julian

This is wonderful Julien!
Does it also capture stills ? Like someone looked for earlier on this forum.

Anyway, to export a solution:

Menubar > File > Repository
Then double click your solution-node so it expands and select the release you want to export.
Press “Export To File” and give it a name ending with .servoy.

Hi Everyone.

The public beta has been released and can be downloaded for use.
You should send me an email requesting a licence if you wish to try this software.

The software can be downloaded from http://www.practica.com.au/cybersack/me … -1.0a1.zip

Enjoy :)

Julian Salerno

Hi all.

Some people are having trouble with playback of MPEG files.

Enrico and Harjo have each reported an error whereby audio is intact but no video is observed (blank playback ui intact with controls but no frames displayed).

The sample URL (or file) can be used for this test.
http://www.practica.com.au/cybersack/me … bongos.mpg

Of course, on my own XP system, this file plays back just fine [loaded either as a files or as a url] :(

So, what are the differences ?

Well, comparing systems :

  • I use JVM 1.4.2_06 (Enrico uses Java 1.4.2_04
    and Harjo uses 1.4.2_05) - however, i doubt this is the culprit since the JMF functions have been stable since JVM 1.2.2

  • I use Servoy R2 2.1.2 build-315 (however, both Enrico and Harjo use 2.2RC1 build 319 )

  • I use Windows XP SP2 (Harjo the same, but Enrico has SP1)

I assume the version of the jmf.jar being loaded by Servoy is the one just installed with the media plugin release.

So, the only obvious difference is the version of Servoy.

I have also tested this on the Mac 10.3.7:
Servoy R2 2.1.2 build-315 on Mac OS X using Java 1.4.2_05
I can report that this bad behaviour is observed under these conditions.

So, it would appear to NOT be the version of Servoy.

I will delve a little deeper.
It is not obvious to me right now.

2 things would appear to be possible:

  1. that my development laptop has some hardware configuration which is significantly different to these 3 other environments.
  2. that obfuscation of the cybersack.jar has had a strange side-effect (but I run my testing against the obfuscated jar, so it seems totally unlikey)

Enrico’s console output also shows a javax.crypt error.
I do use the crypt functions, but I believe this console entry has nothing to do with the Media plugin (maybe another plugin at work ??).

Has anyone else observed a similar failure ?
Please post it if you have.

Here is Enrico’s console output:

Starting Servoy from C:\Servoy22 Servoy R2 2.2rc1 build-319 on Windows XP using Java 1.4.2_04 Looking for servoy.properties on C:\Documents and Settings\Enrico\servoy.propert ies Loading servoy.properties from C:\Servoy22\servoy.properties Loading - Done propsStream=java.util.zip.ZipFile$1@bf015 Using RMI registry on port 1099 javax.crypto.BadPaddingException: Given final block not properly padded Starting service Tomcat-Standalone Apache Tomcat/4.0.1 Starting service Tomcat-Apache Apache Tomcat/4.0.1 Unable to handle format: MPEG, 192x144, FrameRate=25.0, Length=41472 Unable to handle format: MPEG, 192x144, FrameRate=25.0, Length=41472

thanks
julian

I have done some howework and found the cause of the problem.

The issue relates to the configuration of the Java Media Framework on the client computers.

I will find a solution and post back soon :)

Thanks for being patient.

J

Hello :)

I have posted a new release at :
http://www.practica.com.au/cybersack/me … -1.0a1.zip

This fixes the problem for Windows users.
Mac users will need to wait a little. Sorry.
For mac users, i will delegate playback tasks to Quicktime…but i need a few days to get that stuff coded :(

What happened ?
Well, the java-native decoders are rather crappy, so I have shipped this release with all of the dll’s required for Windows to perform AV decoding (and encoding) at the OS level.

It is unreasonable to expect that a target environment has the JMF environment already installed. So, I have included the necessary files.

Just unpack the ZIP file as before.

THEN (unfortunately, until i know how to get items on the PATH variable in Servoy-land), add the following line to your batch file:

set PATH=%PATH%;.\plugins\jmf

This will ensure that the required codec native libraries are in scope of the application.

I did NOT change the version or licence attributes, so please simply over-write your existing installation of the plugin.

Thanks for your patience.

Julian