VideoCore-Inactive icon indicating copy to clipboard operation
VideoCore-Inactive copied to clipboard

Streaming to AllDigital broken. Bisected to commit 7dd4cfefbe68ac66c4b846d115c4355ebdbdf8ec

Open SterlingOnLoop opened this issue 10 years ago • 10 comments

VideoCore cannot stream to AllDigital servers. I have bisected the issue.

The SampleBroadcaster sample project was able to stream successfully to AllDigital servers until commit 7dd4cfefbe68ac66c4b846d115c4355ebdbdf8ec by James Hurley on Tue Dec 9 11:05:32 2014 with message use first section between slashes as appName and the rest as playPath (appInstance). This issue referenced the wrong commit before I edited it.

On and after that commit, VideoCore fails to stream to AllDigital servers.

Here is the log output of current master failing to stream:

2016-01-25 16:12:04.537 SampleBroadcaster[570:55801] Screen rect:{{0, 0}, {320, 480}}
2016-01-25 16:12:04.544 SampleBroadcaster[570:55801] Creating context
Connecting:ingest.alldigital.net:1935, stream name:00000001/test10?key=b748e428&rec=none&name=time
ClientState: 1
ClientState: 2
ClientState: 3
Want read:4096, read:1448
ClientState: 4
Not enough s1 size
Want read:2648, read:1625
ClientState: 5
ClientState: 6
Tracking command(1, connect)
Want read:4096, read:340
Steam in buffer size:340
First byte:0x2, header type:0
Handle message:5
Received server window size: 2500000
Steam in buffer size:324
First byte:0x2, header type:0
Handle message:6
Received peer bandwidth limit: 2500000 type: 2
Steam in buffer size:307
First byte:0x2, header type:0
Handle message:4
Received ping, sending pong.
Steam in buffer size:289
First byte:0x2, header type:0
Handle message:1
Request to change incoming chunk size from 128 -> 512
Steam in buffer size:273
First byte:0x3, header type:0
Handle message:20
Received invoke
Received invoke _result
Find command: connect for ID:1
Tracking command(2, releaseStream)
Tracking command(3, FCPublish)
Tracking command(4, createStream)
ClientState: 7
send pong
Want read:4096, read:41
Steam in buffer size:41
First byte:0x3, header type:0
Handle message:20
Received invoke
Received invoke _result
Find command: createStream for ID:4
Tracking command(5, publish)
ClientState: 8
Want read:4096, read:148
Steam in buffer size:148
First byte:0x3, header type:0
Handle message:20
Received invoke
Received invoke onStatus
code : NetConnection.Connect.Rejected
Want read:4096, read:0
Read from stream error:0
ClientState: 11
~RTMPSession```

SterlingOnLoop avatar Jan 26 '16 00:01 SterlingOnLoop

@SterlingOnLoop ..what you are doing to that issue.. I am also not able to stream?

satyamub avatar Mar 18 '16 10:03 satyamub

reverting that one commit works

SterlingOnLoop avatar Mar 22 '16 01:03 SterlingOnLoop

can you show me the podfile you are using or the procedure you are using to use video core as I am facing the issue?

satyamub avatar Mar 22 '16 09:03 satyamub

can you please let me know how did you actually use the video core library. I am just trying to use it through cocoapod which restricting me to use the 0.1.12 version. If you could give me steps to use it the way you are using it, I would be grateful to you. Thanks in advance

satyamub avatar Mar 22 '16 09:03 satyamub

I suggest you 1. perform a git checkout, 2. open the file "rtmp/RTMPSession.cpp", 3. do the opposite of this.

SterlingOnLoop avatar Mar 22 '16 18:03 SterlingOnLoop

I did not understand the third point? can you please elaborate?

satyamub avatar Mar 23 '16 04:03 satyamub

Thanks I resolved the issue. There is another issue which I want to ask, I am using 0.1.12 in cocoapod and now in another location I pullout github and now I made this to work, how to use this updated code in my previous example which has 0.1.12 cocoapod. (Remember when I update to 0.3.2 it does not work)

satyamub avatar Mar 23 '16 07:03 satyamub

@satyamub Hello , I have encountered this problem , I ask how to solve it. Thanks in advance.

lianleven avatar Apr 14 '16 10:04 lianleven

Please leave me the email address!!

satyamub avatar Apr 14 '16 11:04 satyamub

Thank you, my email address is [email protected].

lianleven avatar Apr 19 '16 02:04 lianleven