Commit Graph

623 Commits

Author SHA1 Message Date
scruzin 0105c76dc5 Move port defaulting logic to parseURL(). 2019-01-20 13:33:44 +10:30
scruzin 89d9bf3eef Return errors from the loop in connect() rather than breaking. 2019-01-20 10:28:05 +10:30
scruzin efe40a6778 Move test for empty RTMP 'app' into parseURL(). 2019-01-20 09:59:28 +10:30
scruzin a362d1d2ab connect() now closes c.link.conn upon an error. 2019-01-20 09:50:51 +10:30
scruzin 04ad1fec25 Log packet size before la and ra. 2019-01-20 09:20:56 +10:30
scruzin fbad21bc76 connect() now constructs its packet with a buf to avoid needless packet resizing later. 2019-01-20 08:52:58 +10:30
scruzin 969e2f4fa9 packet.resize() now only makes a new buf when necessary. 2019-01-20 08:41:32 +10:30
scruzin ddd1e4ab17 readFrom() now logs a warning if it is reading a large packet (which I suspect never happens). 2019-01-20 08:09:49 +10:30
scruzin 828cc3780a Removed superfluous packet.bytesRead. 2019-01-20 07:56:55 +10:30
scruzin 42be87d98a sendConnectPacket() now encodes required link info in one go using amf.Encode(). 2019-01-20 07:33:43 +10:30
scruzin adfb87dcf9 TypeString now exported (was typeString). 2019-01-20 07:30:24 +10:30
scruzin 6959243d50 packet.info renamed streamID and made a uint32 along with Conn.streamID. 2019-01-19 17:51:34 +10:30
scruzin de07f1ae40 dStreamId renamed streamID. 2019-01-19 17:20:34 +10:30
scruzin 45f5817307 headBytes renamed buf. 2019-01-19 16:41:22 +10:30
scruzin b77283aa3b packet.header renamed buf. 2019-01-19 16:38:40 +10:30
scruzin 5548345439 Fix comments munged by /.s/.c search and replaces. 2019-01-19 15:18:10 +10:30
scruzin 9cc0e5631c Session now Conn, and NewSession()+Open() replaced by Dial(). 2019-01-19 13:25:05 +10:30
scruzin fc7ae413d3 Session renamed Conn. 2019-01-19 13:18:15 +10:30
scruzin ce95901b66 Session renamed Conn and NewSession() and Open() replaced with Dial(). 2019-01-19 13:16:46 +10:30
scruzin 998d41c96f Session now Conn, init() moved into Dial(), and connectStream() merged into connect(). 2019-01-19 13:12:24 +10:30
scruzin a73c73617a Session now Conn. 2019-01-19 13:11:19 +10:30
scruzin 974d9a484b Fixed packetTypeBytesReadReport case in handlePacket and added debug logging. 2019-01-19 11:30:59 +10:30
Dan Kortschak 7d989a17f2 rtmp: fix build 2019-01-17 16:20:51 +10:30
Saxon Milton a76be1fd5b Merged in single-frame-h264 (pull request #108)
av: allow for single h264 frame streaming

Approved-by: kortschak <dan@kortschak.io>
2019-01-16 05:28:20 +00:00
Alan Noble b9d99cc78a Merged in rtmp-refactoring-2 (pull request #107)
Second pass at RTMP refactoring.

Approved-by: Saxon Milton <saxon.milton@gmail.com>
Approved-by: kortschak <dan@kortschak.io>
Approved-by: Alan Noble <anoble@gmail.com>
2019-01-15 04:31:26 +00:00
scruzin 9e6d875089 Remove ! after Dan. 2019-01-15 14:59:30 +10:30
scruzin a1d328b376 Remove unnecessary underscores from for loops with ranges. 2019-01-15 10:04:36 +10:30
scruzin 65d0952dd3 Improved Property doc comment. 2019-01-15 09:57:59 +10:30
scruzin 3ab2c1f69a Reverted Session.clientBW2 to uint8. 2019-01-14 10:31:42 +10:30
scruzin e778488aba Session.inChunkSize, outChunkSize, nBytesIn, nBytesInSent, serverBW, clientBW and clientBW2 now all uint32 to avoid needless conversions. 2019-01-14 10:17:47 +10:30
scruzin b680e3e164 EncodeInt24 and EncodeInt32 now take unsigned integers for consistency with decoder counterparts. 2019-01-14 10:14:25 +10:30
scruzin ffcd011220 Added more number and string encoding/decoding tests. 2019-01-13 19:06:04 +10:30
scruzin 137ff7990a Removed unnecessary conversions. 2019-01-13 16:18:25 +10:30
scruzin a8572722b5 Uncomment accidentally commented-out code. 2019-01-13 15:55:02 +10:30
scruzin 5cf880761e Further simlified EncodeProperty and improved some comments. 2019-01-13 15:44:54 +10:30
scruzin f7c90e1093 Tested decoding of named properties. 2019-01-13 15:24:38 +10:30
scruzin aa789f7e78 TestSetupURL renamed TestInit. 2019-01-13 14:33:14 +10:30
scruzin fb36a2dccf Added TestErrorHandling which subsumes TestOpenClose. 2019-01-13 14:30:40 +10:30
scruzin 4c6c549f98 packet.writeTo now defends against a zero pkt.bodySize. 2019-01-13 14:28:24 +10:30
scruzin 9f3d49faa5 Tidied up some comments and simplified queuing logic in writeTo(). 2019-01-13 13:28:34 +10:30
scruzin dd562f1a28 Update comment to reflect new method names. 2019-01-13 13:15:03 +10:30
scruzin 21090a6595 Update doc comments to reflect new method names. 2019-01-13 13:14:12 +10:30
scruzin 82c010b6f7 packet.read/write -> readFrom/writeTo. 2019-01-13 13:09:29 +10:30
scruzin bef7177c5a Removed used Session.checkCounter and link.token. 2019-01-13 13:04:05 +10:30
scruzin 60af77017d Remove superfluous error declarations. 2019-01-13 12:52:06 +10:30
scruzin b78aae6a19 Respect decodeName param when recursively decoding objects. 2019-01-13 12:09:40 +10:30
scruzin 8cd5627974 Test nested objects. 2019-01-13 12:09:06 +10:30
scruzin f8b8d06b2e Removed ErrEndOfBuffer checks which are not required. 2019-01-13 10:10:43 +10:30
scruzin 9ff10dbbac Use amf.DecodeInt32LE() instead of decodeInt32LE(). 2019-01-13 10:01:03 +10:30
scruzin e8002582da Added DecodeInt32LE. 2019-01-13 09:59:57 +10:30