Commit Graph

3707 Commits

Author SHA1 Message Date
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
Saxon Milton af6c8d875f Merged in improve-ts-encoder-performance (pull request #83)
Improve ts encoder performance

Approved-by: kortschak <dan@kortschak.io>
2019-01-13 00:13:38 +00:00
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
saxon c4e2ca64a9 psi: modified addPadding to only do one resize 2019-01-12 17:51:39 +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
saxon 46f5ffd6f2 mts: PktSize to PacketSize 2019-01-12 17:36:35 +10:30
saxon 010abcfd0c mts: ccMask to continuityCounterMask in encoder.go 2019-01-12 17:34:43 +10:30
saxon 662d71bf54 mts+psi: fixed conflicts with master 2019-01-12 17:03:55 +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 27081e1ea9 flv: added back dans NewEncoder write fail code 2019-01-11 23:39:49 +10:30
Dan Kortschak 65e2ab3f6a stream/mts{,psi}: fix comments 2019-01-11 22:29:48 +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 9d70949e2e stream/flv: write first previous tag size 2019-01-11 14:55:05 +10:30
Dan Kortschak 7f07c4cb20 revid,stream/flv: add back initial header write 2019-01-11 13:53:05 +10:30
Saxon Milton 9eeefef8c7 Merged in psi-pr-cleanup (pull request #101)
psi: clean up

Approved-by: kortschak <dan@kortschak.io>
2019-01-11 02:48:35 +00:00
saxon 9ca7288622 psi: removed conflict with master 2019-01-11 13:17:14 +10:30
saxon 4e62606622 updating this branch with master
Merge branch 'master' into psi-pr-cleanup
2019-01-11 13:15:23 +10:30