Commit Graph

626 Commits

Author SHA1 Message Date
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
scruzin 40ce3357eb Removed unused code for unwritable links, and collapsed unhandled cases in switch statments. 2019-01-13 09:47:04 +10:30
scruzin 8898ee3add setupURL() now a method on Session and renamed init(). 2019-01-13 09:18:52 +10:30
scruzin f1e46461c3 Removed unused swfUrl, pageUrl, swfAge and flashVer from link and renamed tcUrl to url. 2019-01-13 09:12:41 +10:30
scruzin 8f2a8ced9d More idiomatic names for Object's property getters. 2019-01-13 08:09:54 +10:30
scruzin 8a68cbca2f PropEncode/PropDecode -> EncodeProperty/DecodeProperty. 2019-01-13 07:51:35 +10:30
scruzin 9ca1a49178 Removed unused chunk type and associated unused code. 2019-01-13 07:46:47 +10:30
scruzin 2219a26890 Removed unused Session.encoding and sendEncoding. 2019-01-13 07:29:36 +10:30
scruzin 40806d4de7 Removed unused extras from rtmp.link. 2019-01-13 07:11:25 +10:30
scruzin e0a4c39c8b Fix typo in comment. 2019-01-12 20:07:56 +10:30
scruzin 32c281d2dc Added type-specific wrappers for amf.Object.GetProperty, namely GetNumber, GetString and GetObject. 2019-01-12 18:43:51 +10:30
scruzin 5b94ddfbe9 Renamed Object.Props to Properties. 2019-01-12 18:04:04 +10:30
scruzin 5505edab5a Remove reference to deprecated invalidType data type. 2019-01-12 17:53:02 +10:30
scruzin cb2ea08fff Use literal values for data type consts per the AMF spec, rather than iota. 2019-01-12 17:48:17 +10:30
scruzin b31c65001e Implemented boolean properties (although our rtmp implementation does not seem to require it at present). 2019-01-12 17:39:32 +10:30
scruzin 2105339657 Export Property members so getters are no longer required and made amf.GetProp a method on Object. 2019-01-12 16:10:09 +10:30
scruzin 396c809424 Documented methods and standardized on 'buf' for parameter name. 2019-01-12 15:33:14 +10:30
scruzin f7de9526c8 Removed Reset and PropReset which are not required. 2019-01-12 15:29:58 +10:30
scruzin 1fe1849393 amf.Decode and amf.PropDecode now return an error. 2019-01-12 14:55:12 +10:30
scruzin b79a035d0f Added error return value to all encoding functions. 2019-01-12 14:18:50 +10:30
scruzin f0b98ab371 Added TestProperties and TestObjects. 2019-01-12 13:46:21 +10:30
scruzin c2d4e0b4a2 Initial revision. 2019-01-12 08:57:53 +10:30
scruzin 255464d85a amf.AMF now amf.Object, amf type consts now prefixed with type and vu struct merged into Property. 2019-01-12 08:56:57 +10:30
scruzin f13d4010cc Moved AMF functions into a new rtmp/amf package; names otherwise unchanged. 2019-01-12 07:13:27 +10:30
scruzin 355e069b5b Improved description. 2019-01-12 06:48:33 +10:30
scruzin de8c3ab64d Remove unused file. 2019-01-12 06:45:27 +10:30
scruzin 19f245ae76 First cut at AMF refactoring; use idiomatic names. 2019-01-12 06:42:34 +10:30
saxon 1e1a6bf0eb rtmp: re-added blank line in rtmp_test.go and renamed sei to suppEnhInfo 2019-01-11 23:43:54 +10:30
saxon 61c1ff6ee4 rtmp: got handle errors that should stop the encoding with a middle man rtmpSender 2019-01-11 18:19:58 +10:30
saxon b63c55ae48 flv: fixed NewEncoder so that we still create encoder even if the HeaderByte write fails 2019-01-11 18:09:32 +10:30
saxon 83f5e9e68d rtmp: no longer hardcoding frame test file path 2019-01-11 18:03:07 +10:30
saxon 10860e4e48 lex: modified h264 lexer to consider nal type 6 packets, i.e. sei packets, which seem important fro repeating single frames 2019-01-11 17:20:56 +10:30
scruzin e78cc93432 minDataSize is out and flvTagheaderSize is in! 2019-01-11 16:00:00 +10:30
Dan Kortschak 7f07c4cb20 revid,stream/flv: add back initial header write 2019-01-11 13:53:05 +10:30
scruzin 2f3c2cc0e2 Added ToDo. 2019-01-11 11:17:14 +10:30
scruzin 22b76b5bda Session.read()/write() both now return (int, error). 2019-01-11 10:35:20 +10:30
scruzin 67cc591dd2 Use idiomatic consts. 2019-01-11 10:27:41 +10:30
scruzin fc815c23e7 Session.Write() now checks len(data) before the FLV test. 2019-01-11 10:10:27 +10:30
scruzin 5be5aad6cf Idiomatic names for constants (1st pass). 2019-01-11 09:52:21 +10:30
scruzin 8a23609f6e Exit test for errors and fatals errors regardless of testVerbosity. 2019-01-11 07:24:31 +10:30
scruzin 82522643bb First cut at refactoring packet.write(). 2019-01-11 00:41:28 +10:30
scruzin b3b1b04814 Merged Session.start()/close() into Open()/Close() respectively. 2019-01-11 00:29:51 +10:30
scruzin d4a0fad2be Removed now unused rtmp_headers.go. 2019-01-11 00:22:32 +10:30
scruzin 94446beddb Split remaining code in rtmp_headers across rtmp.go and session.go. 2019-01-11 00:19:50 +10:30
scruzin 7bb9fcc2c7 Remove superfluous call to handlePacket() from connectStream(). 2019-01-11 00:10:29 +10:30
scruzin b388f5374f Removed superfluous url param from setupURL() and obtain it from the Session object instead. 2019-01-11 00:06:44 +10:30
scruzin 53bccaaaa7 Simplifed connectStream(). 2019-01-11 00:01:26 +10:30
scruzin f635be6712 Propagate errors from handleInvoke(). 2019-01-10 23:48:11 +10:30
scruzin 058cc41356 readPacket(), sendPacket() and resizePacket() now Packet methods read(), write() and resize() respectively. 2019-01-10 23:29:51 +10:30
scruzin 6a8e78a256 readN()/writeN() now Session.read()/write() respectfully. 2019-01-10 23:16:20 +10:30
scruzin 26e8133a6e Merge Session.write() into Session.Write(). 2019-01-10 23:05:24 +10:30
scruzin 56a3bf8b26 Simplified Session.write(). 2019-01-10 22:52:43 +10:30
scruzin e6504734d0 Rate limit TestFromFrame output to 25 FPS. 2019-01-10 21:22:00 +10:30
scruzin 3c83ba0022 Added RTMP_PACKET_SIZE_AUTO. 2019-01-10 16:34:00 +10:30
scruzin a318f9c3eb Added media streaming tests and improved comments. 2019-01-10 15:33:24 +10:30
saxon b219690b10 rtmp: added streaming from file test 2019-01-10 13:58:58 +10:30
saxon d9c98a0341 rtmp: added streaming from file testing 2019-01-10 13:56:20 +10:30
scruzin 2333d1953e packetSize -> headerSizes. 2019-01-10 13:23:12 +10:30
scruzin 9796465018 Exit if RTMP_TEST_KEY not defined. 2019-01-10 12:51:18 +10:30
scruzin 3dbaa810fc Additional logging. 2019-01-10 12:49:52 +10:30
scruzin e772d37a1b Warn about EOF errors. 2019-01-10 12:48:31 +10:30
scruzin 076a9c030a Better field names. 2019-01-09 22:51:07 +10:30
scruzin c386f45bbd Removed out of date comment. 2019-01-09 22:25:10 +10:30
scruzin c8ec317823 Merge init into NewSession. 2019-01-09 22:05:04 +10:30
scruzin d1958ff75d Initial revision. 2019-01-09 17:34:38 +10:30
scruzin 0a69c59f50 Additional logging. 2019-01-09 17:33:19 +10:30
scruzin 88e1415b10 Include pkg name in fatal log messages. 2019-01-09 16:08:02 +10:30
scruzin cbe6149c8f Added proper logging. 2019-01-07 23:59:41 +10:30
Alan Noble c4bc4f7c61 Set debugMode false by default. 2019-01-07 11:49:14 +00:00
scruzin 9b7feb4dfc Fix typo. 2019-01-07 22:11:35 +10:30
scruzin 1fe011b5fb Reinitialize *s in close(). 2019-01-07 21:58:19 +10:30
scruzin 04679e4757 Removed used fields and initalize packets lazily. 2019-01-07 21:45:00 +10:30
scruzin 0b869523b4 Removed packet member from Session. 2019-01-07 20:16:11 +10:30
scruzin 8ed3c04186 Change log messages to reflect new function names. 2019-01-07 20:15:12 +10:30
scruzin ad43420270 Remove another unused file. 2019-01-07 19:31:54 +10:30
scruzin 1a7048e9f3 Updated copyright year. 2019-01-07 18:01:22 +10:30
scruzin 31b1a6a7d3 Made function names camel case and factored packet functions into packet.go. 2019-01-07 18:00:42 +10:30
scruzin ad55d31577 Made type and variable names idiomatic, and merged C_RTMP into Session. 2019-01-07 16:20:35 +10:30
scruzin 6975f5172e Make member names camel case. 2019-01-07 13:33:07 +10:30
scruzin 189338d81b Removed since unused. 2019-01-07 13:25:14 +10:30
scruzin 9b14883bd3 Log packetType when sending. 2019-01-07 10:22:04 +10:30
scruzin 647f10f212 Only set ts in C_RTMP_SendPacket() when prevPacket != nil. 2019-01-07 08:44:04 +10:30
scruzin 3dccec4f35 Removed C_RTMP_SetBufferMS(). 2019-01-06 17:43:48 +10:30
scruzin 9335e2701d Fixed debug mode for C_RTMP_SendPacket(). 2019-01-06 17:17:51 +10:30
scruzin 309680f019 Removed references to C.RTMP_Free(). 2019-01-06 16:13:06 +10:30
scruzin 6133032a05 Moved conn from C_RTMPSockBuf to C_RTMP_LNK and deleted the former. 2019-01-06 15:54:49 +10:30
scruzin 474642f53b Simplified C_RTMP_IsConnected(). 2019-01-06 15:35:55 +10:30
scruzin c7b96f1c31 Check for an propagate encoding errors. 2019-01-06 15:19:58 +10:30
scruzin e876491f24 Removed since now obsolete. 2019-01-06 14:44:29 +10:30
scruzin 81b92b2302 All rmtp functions now return an error (or nothing), except for C_RTMP_IsConnected() which now returns a bool instead of an int. 2019-01-06 14:42:51 +10:30
scruzin b7871cb2f2 Prefix errors with rtmp: 2019-01-06 12:06:16 +10:30
scruzin 26157f47a2 Refactored C_ReadN() to use io.ReadFull() and removed now obsolete RTMPSockBuf_Fill(). 2019-01-06 10:11:31 +10:30
scruzin be1610b67f Use unsigned ints for timeouts. 2019-01-06 09:37:21 +10:30
scruzin e173153ca6 Use Go errors for C_RTMP_ParseURL, C_RTMP_SetupURL, C_RTMP_Connect1, and C_RTMP_ConnectStream. 2019-01-06 09:20:32 +10:30
scruzin 4d767f106c Make for Go idiomatic. 2019-01-06 08:25:46 +10:30
scruzin 513b84ad87 Further cleaned up sockets related code. 2019-01-05 23:13:19 +10:30
saxon e340c9b9be rtmp: removed debug prints 2019-01-02 21:55:43 +10:30
saxon 0b2c38117f revid: trying to fix rtmp 2019-01-02 21:28:20 +10:30