Commit Graph

1410 Commits

Author SHA1 Message Date
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
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
scruzin e78cc93432 minDataSize is out and flvTagheaderSize is in! 2019-01-11 16:00:00 +10:30
Alan Noble d87dfca283 Merged in rtmp-refactoring (pull request #103)
Rtmp refactoring

Approved-by: kortschak <dan@kortschak.io>
Approved-by: Saxon Milton <saxon.milton@gmail.com>
Approved-by: Alan Noble <anoble@gmail.com>
2019-01-11 01:18:35 +00:00
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