deleolajide / red5-screenshare

An Open Source Screen Share Java application using Red5 RTMPClientare
24 stars 10 forks source link

ScreenClientHandler - channel closed: #40

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

I am using windows 8 and working red 5 server on localhost:5080.Application 
runs succesfully but when i click on start sharing button of application, i got 
a channel closed exception.Below is the log generated by application on 
pressing "start sharing":

captureScreenStart
ScreenShare startStream
[INFO] [pool-1-thread-1] org.redfire.screen.ScreenClientHandler - channel 
opened: [id: 0x01aead2b] OPEN
[INFO] [New I/O client worker #1-1] 
org.redfire.screen.ScreenClientHandshakeHandler - connected, starting handshake
[INFO] [New I/O client worker #1-1] com.flazr.rtmp.RtmpHandshake - using client 
version 00000000
[INFO] [New I/O client worker #1-1] org.redfire.screen.ScreenClientHandler - 
handshake complete, sending 'connect'
[INFO] [New I/O client worker #1-1] org.redfire.screen.ScreenClientHandler - 
sending command (expecting result): [0 COMMAND_AMF0 c3 #0 t0 (0) s0] name: 
connect, transactionId: 1, object: {app=screenshare, flashVer=WIN 9,0,124,2, 
tcUrl=rtmp://localhost:1935/screenshare, fpad=false, audioCodecs=1639.0, 
videoCodecs=252.0, objectEncoding=0.0, capabilities=15.0, videoFunction=1.0}, 
args: null
[INFO] [New I/O client worker #1-1] org.redfire.screen.ScreenClientHandler - 
channel closed: [id: 0x01aead2b, /127.0.0.1:51640 => localhost/127.0.0.1:1935] 
CLOSED
ScreenShare stopStream

My jnlp file is like:

<?xml version='1.0' encoding='utf-8'?>
<jnlp spec='1.0+' codebase='http://localhost:5080/screenshare'> 
    <information> 
        <title>Red5 ScreenShare</title> 
        <vendor>Dele Olajide</vendor> 
        <homepage>http://code.google.com/p/red5screnshare/</homepage>
        <description>Red5 ScreenShare</description> 
        <description kind='short'>An Open Source Screen Share Java application for Adobe Flash using Red5</description> 
        <offline-allowed/> 
    </information>
    <security>
        <all-permissions/>
    </security> 
    <resources> 
    <j2se version='1.6+'/> 
        <jar href='screenshare.jar'/> 
    </resources> 
    <application-desc main-class='org.redfire.screen.ScreenShare'>
        <argument>localhost</argument> 
        <argument>screenshare</argument> 
        <argument>1935</argument> 
        <argument>screen_share</argument>   
        <argument>flashsv2</argument>       
    </application-desc> 
</jnlp>

and screenshare.html has content like:

<script type="text/javascript">

    var stream = getPageParameter('stream', 'screen_share');
    var url = getPageParameter('url', 'rtmp://localhost:1935/screenshare');
    var control = getPageParameter('control', 'true');

        fo = new SWFObject("ScreenViewer.swf?rtmpUrl=" + url + "&recieverStream=" + stream + "&control=" + control, "screenViewerID", "100%", "100%", "9");
        fo.addParam("swLiveConnect", "true");
        fo.addParam("name", "screenViewerID");
        fo.write("screenViewerDIV");
</script>

Any help, idea is highly appreciated.

Original issue reported on code.google.com by lakhan...@gmail.com on 22 Jun 2015 at 7:17

GoogleCodeExporter commented 9 years ago
I am getting following error while connecting to screenshare.html and 
screenpublisher.jnlp

"ScreenClientHandler - channel closed:|

Original comment by ExpertsM...@gmail.com on 17 Jul 2015 at 11:50