kingace2 / redfire

Automatically exported from code.google.com/p/redfire
0 stars 0 forks source link

screencast.jnlp (openfire 3.8.1 & redfire 0.0.3.2) #44

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Goto redfire test page
2. click "here" link on the "To publish" line under "Desktop screen 
publish/viewer"
3. java appears to launch app but nothing happens

What is the expected output? What do you see instead?
I was expecting to see the desktop publish screen

What version of the product are you using? On what operating system?
Openfire 3.8.1 & redfire 0.0.3.2 (which is reporting as 0.0.3.1 in the plugin 
listing)

Please provide any additional information below.
I've tried to publish my desktop from windows and linux (both java 1.6.x) and 
the app is not working.  This is the case with Firefox or Chrome.  It appears 
to launch but from what I remember there is a screen that should come up that 
allows me to pick the screen size and then start the publishing of the desktop. 
 No errors are reported but when I try to launch the jnlp file manually with:

javaws screencast.jnlp 

I get

Red5 SceenShare: use as java ScreenShare <host> <app name> <port> <stream name> 
<codec> <frame rate> <max width> <max height>

The contents of the jnlp look correct.  My server installation is referenced 
and all the parameters are there except the width and height.  See below (I 
purposely omitted my server address):

<?xml version='1.0' encoding='utf-8'?>
<jnlp spec='1.0+' codebase='http://__OMITTED__:7070/redfire/screen'> 
        <information> 
                <title>Redfire ScreenShare</title> 
                <vendor>Dele Olajide</vendor> 
                <homepage>http://code.google.com/p/red5screnshare</homepage>
                <description>ScreenShare Client Application</description> 
                <description kind='short'>An Java Webstart application that publishes desktop screen as RTMP video stream</description> 
                <offline-allowed/> 
        </information>
        <security>
                <all-permissions/>
        </security>
        <resources> 
        <j2se version='1.4+'/> 
                <jar href='screenshare.jar'/> 
        </resources> 
        <application-desc main-class='org.redfire.screen.ScreenShare'>
                <argument>__OMITTED__</argument>
                <argument>xmpp</argument>
                <argument>1935</argument>
                <argument>mydesktop</argument> 
                <argument>flashsv2</argument> 
                <argument>30</argument> 
        </application-desc> 
</jnlp>

This might be a duplicate of issue 37 but as that had not be answered, I though 
it would be better to open a new issue.

Another less important note for now, is that when using the SSL port with this 
(7443) there appear to be signing errors.  Is there a way to bypass that?

Original issue reported on code.google.com by kcper...@gmail.com on 21 May 2013 at 7:17

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Saw an update to issue 37 so I figured I would update mine since I've found a 
work around to the issue.  The problem is that the width and height variable 
are missing.  What you have to do is make a copy of the screencast.jnlp that 
gets downloaded to you.  Edit the <application-desc> section and add the 
arguments.  So using my original post as a base, here is what the modified 
section would looks like.

        <application-desc main-class='org.redfire.screen.ScreenShare'>
                <argument>__OMITTED__</argument>
                <argument>xmpp</argument>
                <argument>1935</argument>
                <argument>mydesktop</argument> 
                <argument>flashsv2</argument> 
                <argument>30</argument> 
                <argument>1024</argument> 
                <argument>768</argument> 
        </application-desc> 

Note the 2 extra lines containing arguments for width (1024) and height (768).

Now you can take this file and upload it to the root of the redfire plugin 
directory.  In my case, I called it "remotecontrol.jnlp".  When I call, 
http://<MY SERVER>:7070/redfire/remotecontrol.jnlp this new file gets 
downloaded and javaws is able to run the application.

You can still use the desktop viewer link if you haven't made any other 
customizations.

Original comment by kcper...@gmail.com on 9 Jun 2013 at 3:12

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I have the same problem

Desktop screen when I use publisher / viewer, screencast.jnlp file is 
generated, but it generates error opening the file, what I do is.

change the line

spec='1.0+' <jnlp codebase='http://im.xxx.com.co:7070/inspired/video'>

By the following

spec='1.0+' <jnlp codebase='http://im.xxx.com.co:7070/redfire/screen'>

and works by changing this line

as I collaborate to fix this fix

This file screencast.jnlp

<?xml version='1.0' encoding='utf-8'?>
<jnlp spec='1.0+' codebase='http://im.xxx.com.co:7070/inspired/video'> 
    <information> 
        <title>Redfire ScreenShare</title> 
        <vendor>Dele Olajide</vendor> 
        <homepage>http://code.google.com/p/inspired</homepage>
        <description>Inspired ScreenShare Client Application</description> 
        <description kind='short'>An Java Webstart application that publishes desktop screen as RTMP video stream</description> 
        <offline-allowed/> 
    </information>
    <security>
        <all-permissions/>
    </security> 
    <resources> 
    <j2se version='1.4+'/> 
        <jar href='screenshare.jar'/> 
    </resources> 
    <application-desc main-class='org.redfire.screen.ScreenShare'>
        <argument>im.xxx.com.co</argument>
        <argument>xmpp</argument>
        <argument>1935</argument>
        <argument>mydesktop</argument> 
        <argument>flashsv2</argument> 
        <argument>15</argument> 
        <argument>1024</argument> 
        <argument>768</argument> 
    </application-desc> 
</jnlp>

This is the file with the corrected line.

<?xml version='1.0' encoding='utf-8'?>
<jnlp spec='1.0+' codebase='http://im.xxx.com.co:7070/redfire/screen'>
    <information> 
        <title>Redfire ScreenShare</title> 
        <vendor>Dele Olajide</vendor> 
        <homepage>http://code.google.com/p/inspired</homepage>
        <description>Inspired ScreenShare Client Application</description> 
        <description kind='short'>An Java Webstart application that publishes desktop screen as RTMP video stream</description> 
        <offline-allowed/> 
    </information>
    <security>
        <all-permissions/>
    </security> 
    <resources> 
    <j2se version='1.4+'/> 
        <jar href='screenshare.jar'/> 
    </resources> 
    <application-desc main-class='org.redfire.screen.ScreenShare'>
        <argument>im.xxx.com.co</argument>
        <argument>xmpp</argument>
        <argument>1935</argument>
        <argument>mydesktop</argument> 
        <argument>flashsv2</argument> 
        <argument>15</argument> 
        <argument>1024</argument> 
        <argument>768</argument> 
    </application-desc> 
</jnlp>

Thank you for your help.

Original comment by mauricio...@gmail.com on 13 Aug 2013 at 11:48