Problems compiling Jedai video publisher

11 views
Skip to first unread message

Robert Brown III

unread,
Apr 18, 2013, 4:21:24 PM4/18/13
to je...@googlegroups.com
Greetings:

   I am trying to compile the latest Jedai client UI (along with the rest of the client code) and I am seeing compiler errors in the file jedai.controls.flex.video.VideoPublisher.as.

   The error I am seeing is in lines 200 and 206: that the property audioIn.InputDevice is undefined.

   The offending lines in the code are:

            audioIn.inputDevice.gain = 0; (in the mute() function of VideoPublisher, line 200)
             audioIn.inputDevice.gain = tmpGain; (in the unmute() function of VideoPublisher, line 206)


   audioIn is an instance of AudioInputDevice. Looking at AudioInputDevice, I am not finding an inputDevice property!

   Someone please advise. How are people compiling this code with such an obvious discrepancy in the classes???

Jonathan Valliere

unread,
Apr 18, 2013, 6:22:15 PM4/18/13
to je...@googlegroups.com
This project has not received any attention since early 2009.  Dominick had rewrote most of it and was intending to put online but that hasn't happened (yet).  I branched my efforts into a currently non open sdk.

What brought you do our little stale project?

Robert Brown III

unread,
Apr 19, 2013, 10:48:11 AM4/19/13
to je...@googlegroups.com
Red5 brought me here.

   Red5 is one of the most poorly documented and poorly deployed projects on the net, but it is very desirable for use in several projects I am working on. Frankly, its uniqueness and desirability are the only reasons why I am trying to use it, because usually I wouldn't bother with a project that has such sparse documentation in addition to downloads that are incomplete and associated tools that are so poorly implemented.

   Nevertheless, I am attempting to learn how to use Red5, and am using an Eclipse extension that includes a Red5 project wizard. Aside from the fact that the wizard generates code that is out- of- date and does not compile, it also generates code for client- side components that are based on Jedai UI components. Unfortunately, as seems usual for Red5 release code, the Jedai SWC file will not integrate with the current Red5 client code.

   That is why I am here. There is no up- to- date recompiled SWC file for my current development environment, so I came here to get the source and compile it myself. And since Red5 uses Jedai UI components to communicate with a Red5 server, I am also hoping to learn more about its client API -- something I have been unable to do since (a) currently, the only thing the Red5 folks provide for client documentation is a set of incomplete Javadocs and example programs, (b) the example programs do not give a decent picture of the client- side interface (case in point: their oflaDemo application whose FLA file does not contain any code showing how to interface with a Red5 service), and (c) my inquiries for more information at different places -- including Stack Overflow (!) -- have been fruitless.

   I would like to get these components working and operating in my development environment, so that I can use them in test applications and analyze how they are interacting with the Red5 server. That is why I am here.

   Is there a time frame for when Dominick will be releasing a completed and compilable version of this code? Or perhaps someone has a SWC file that can work within Flash Builder 4?

   Failing this, can someone point me to where in the code I can look in order to fix the conpilation problems I am seeing? I really need these libraries working as soon as possible...

Tyler Kocheran

unread,
Apr 19, 2013, 10:50:01 AM4/19/13
to je...@googlegroups.com
You don't need Jedai to use Red5. You're right about the disparity of information, but there is source code.

If you'd like to hire me, I'd be more than happy to help you get the hang of working with Red5.

Thanks,
 - TK




--
You received this message because you are subscribed to the Google Groups "Jedai" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jedai+un...@googlegroups.com.
To post to this group, send email to je...@googlegroups.com.
Visit this group at http://groups.google.com/group/jedai?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Robert Brown III

unread,
Apr 19, 2013, 10:57:21 AM4/19/13
to je...@googlegroups.com
TK:

   Thanks for the offer, but I am on a budget that does not include money for a new employee.

   And I am aware of and have the Red5 source code, both client and server. As I stated in my previous post, the client source is incomplete and missing certain critical pieces of code (the oflaDemo application being an example).

   I do not need Jedai to run Red5. I do, however, need Jedai in order to examine (hopefully complete) examples of how clients interface with Red5. Once I have decent examples, I will not need anyone to show me how to use Red5.

   I will keep you in mind, though, if I need to hire someone for future media projects.

Jonathan Valliere

unread,
Apr 19, 2013, 11:46:12 AM4/19/13
to je...@googlegroups.com
Red5 works on the standard RTMP protocol.  There is no specialized API for red5.  Red5 also has a great email group.  There are a couple of reasons why Red5 is the way it is.  1) No corporate sponsorship.  2) No standardized code structure. 3) No one person knows the whole source. 4) Paul is the only one really working on it.

Attached is a sample publisher/subscriber.  There are a few missing API components you don't have but are easily replaceable with standard AS3.

BasicNetConnection = NetConnection
ScheduleExecutor = flash.utils.setInterval or flash.utils.setTimeout

The Red5 Reference Manual can be found here http://www.red5.org/downloads/docs/red5-reference-1.0.pdf

If you do ever decide to hire anyone to work with Red5 - make sure you pick a Red5 committer.
SimplePublisher.as

Robert Brown III

unread,
Apr 21, 2013, 9:35:15 PM4/21/13
to je...@googlegroups.com
Jonathan:

   Thanks for the sample. It is pretty straightforward and very helpful. Your explanation of the situation with Red5 i also very useful. It

    One question for you:

   From what I have determined from running the oflaDemo, apparently ther is some kind of RPC mechanism involving the NetConnection class that enables a client to call a function in Red5. On the Red5 side, I am seeing a Java class that generates a list of available videos, and somehow the client is calling the video function (and I suspect that it is using that NetConnection class in your example), but I cannot ascertain how the client is actually reaching the function.

   It is this RPC mechanism that I am trying to learn about. Is it possible to simply add a Java class with the appropriate methods to a Red5 service, and somehow access that service's methods from an Actionscript- based client? It looks like that is what is happening in oflaDemo, but I cannot figure out how this is being set up.

   Can you provide a sample in AS3 of how to do this, or, failing that, can you point me to where I can learn to use this mechanism?

   Please advise...


Jon V.

unread,
Apr 22, 2013, 1:52:19 AM4/22/13
to je...@googlegroups.com
RTMP provides the ability to create Invoke and Notify messages.  Invoke is a message which needs a reply an Notify does not.

NetConnection has a function "call"

call(command:String, responder:Responder... arguments):void
Calls a command or method on Flash Media Server or on an application server running Flash Remoting.

The command is the function name to be called on Red5.  These functions are ones that you must create.

Red5 has an "echo" test application which receives an object and returns it back unmodified.  This is a good example for you.



For this example the AS3 looks like this:

netconnectionobject.call("echo", some responder object, argument 1 )

I have a class which makes responders really easy to use.  You must pass in a responder otherwise the message will be marked Notify and it will not be handled the same way in Red5.


It requires FDT to compile the source but you can grab the library swc from /downloads




Reply all
Reply to author
Forward
0 new messages