b-deng / red5-screenshare

Automatically exported from code.google.com/p/red5-screenshare
0 stars 0 forks source link

Scope not found on server #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
-------------------------------
1. Downloaded the following files into 
"<RED5_TOP_DIR>/dist/webapps/red5-screenshare"...
- screenshare.jar
- screenshare.jnlp
- publisher.swf

2. Modified screenshare.jnlp as follows...
<jnlp spec='1.0+' codebase='http://<MY_IP_ADDRESS>:5080/red5-screenshare' 
href='screenshare.jnlp'> 
...
    <application-desc main-class='org.redfire.screen.ScreenShare'>
        <argument><MY_IP_ADDRESS></argument> 
        <argument>red5-screenshare</argument> 
        <argument>1935</argument> 
        <argument>screen_share</argument>       
    </application-desc> 

3. Launched Red5 server. (Verified it's correct operation using the included 
demo applications e.g. oflaDemo). 

4. Launched screenshare.jnlp and clicked "start Sharing". 

What is the expected output? What do you see instead?
------------------------------------------
I expected my desktop to be streamed to the Red5 server and consequently to the 
Internet. 

Instead, I get the following error in my Red5 output log... 

     ...
     [java] [INFO] [NioProcessor-1] org.red5.server.net.rtmp.codec.RTMPProtocolDecoder - Action connect
     [java] [DEBUG] [NioProcessor-1] org.red5.server.Scope - Has child scope? red5-screenshare in [GlobalScope@1d4d493 Depth = 0, Path = '', Name = 'd
efault']
     [java] [DEBUG] [NioProcessor-1] org.red5.server.Scope - Child scope does not exist
     [java] [INFO] [NioProcessor-1] org.red5.server.net.rtmp.RTMPHandler - Scope red5-screenshare not found on <MY_IP_ADDRESS>
     [java] [WARN] [Red5_Scheduler_Worker-1] org.red5.server.net.rtmp.RTMPConnection - Closing RTMPMinaConnection from <MY_IP_ADDRESS> : 2941 to <MY_IP_ADDRESS>
 (in: 3332 out 3223 ), with id 11 due to long handshake

What version of the product are you using? On what operating system?
------------------------------------------------------
Windows XP Professional SP 3, Java version 1.6.0_24

Please provide any additional information below.
--------------------------------------
I want to be able to view my server's desktop from another computer by pointing 
the client machine's browser to the Red5 server. Do I need to do anything more 
than copy the jnlp and jar to a directory under my Red5 directory? Perhaps I 
need metadata files? Any help would be greatly appreciated as I'm obviously new 
to this. 

Original issue reported on code.google.com by ahuan...@gmail.com on 25 Mar 2011 at 9:33

GoogleCodeExporter commented 9 years ago
I'm also running Red5 1.0 RC1. 

Original comment by ahuan...@gmail.com on 25 Mar 2011 at 9:35

GoogleCodeExporter commented 9 years ago
You need to use an existing and installed red5 application like oflaDemo and 
use that name and not red5-screenshare

<argument>red5-screenshare</argument> 

should be

<argument>oflaDemo</argument> 

or whatever red5 application you have installed

Original comment by olajide....@gmail.com on 1 Apr 2011 at 2:52

GoogleCodeExporter commented 9 years ago
Thanks. I was able to successfully establish the connection by using the 
existing oflaDemo application. However, I'm still not able to view the shared 
desktop. 

- I downloaded the latest screenshare.jnlp and screenshare.jar. 

- I placed those files in "<RED5_TOP_DIR>\dist\webapps\oflaDemo".

- I modified screenshare.jnlp as such...

    <jnlp spec='1.0+' codebase='http://<MY_IP_ADDRESS>:5080/oflaDemo' href='screenshare.jnlp'> 
    ...
    <application-desc main-class='org.redfire.screen.ScreenShare'>
        <argument><MY_IP_ADDRESS></argument> 
        <argument>oflaDemo</argument> 
        <argument>1935</argument> 
        <argument>screen_share</argument>   
        <argument>flashsv2</argument>       
    </application-desc> 

- I launched the screenshare.jnlp application and clicked "start Sharing" and 
the Red5 log shows... 

     [java] [INFO] [NioProcessor-1] org.red5.server.stream.ClientBroadcastStream - Provider connect
     [java] [INFO] [NioProcessor-1] org.red5.server.stream.ClientBroadcastStream - Stream start
     [java] [INFO] [NioProcessor-1] org.red5.server.stream.ClientBroadcastStream - Provider connect
     [java] [INFO] [NioProcessor-1] org.red5.server.stream.codec.ScreenVideo - Allocating memory for 462 compressed blocks.

- I downloaded and unzipped the screenviewer.zip file.

- I modified the screenviewer.html file as such...

    var stream = getPageParameter('stream', 'screen_share');
    var url = getPageParameter('url', 'rtmp://<MY_IP_ADDRESS>:1935/oflaDemo');
    var control = getPageParameter('control', 'true');

- I open screenviewer.html in my browser and see a loading bar momentarily and 
then just a white screen. 

Am I missing something again? Maybe I'm not setting the 'url' variable 
correctly? I've also tried changing "flashsv2" to "flashsv1". 

Original comment by ahuan...@gmail.com on 6 Apr 2011 at 3:47

GoogleCodeExporter commented 9 years ago
Let me check. I have not tested it with Red5 server. I have only used with 
Redfire plugin for Openfire.

Original comment by olajide....@gmail.com on 7 Apr 2011 at 8:01

GoogleCodeExporter commented 9 years ago
Now working with Red5 server. You nned to deploy the screenshare webapp and use 
that instead of oflaDemo as it needs the server-side application for remote 
control.

Original comment by olajide....@gmail.com on 8 Apr 2011 at 9:36