Commit Graph

26 Commits

Author SHA1 Message Date
yutopp dd87fb56cc Use io.Reader instead of []byte for Command/DataMessage 2018-10-05 21:53:07 +09:00
yutopp ed0b9a3a27 Reduce memory copies for Audio/Video packets. Add/Fix tests 2018-10-05 20:59:56 +09:00
yutopp 21fdf81131 Use message.Encoder/Decoder caches(And change interfaces). Fix benchmarks(now, show correct costs...) 2018-10-05 17:21:35 +09:00
yutopp e2cd28edbb Merge DataMessage(AMF0|AMF3) into DataMessage. etc 2018-09-29 16:44:30 +09:00
yutopp 9a71efda61 [WIP] Support sync style RTMP client. Add transaction management. Support pluggable cmd/data body encoder/decoder. [WIP] Add a client demo. etc 2018-09-27 05:54:49 +09:00
yutopp b0ac778278 Support add UserCtrlEvent messages 2018-07-28 17:40:33 +09:00
yutopp d4b518139f go fmt 2018-07-27 18:38:12 +09:00
yutopp df93652477 Use raw cache buffer instead of using sync.Pool 2018-07-23 20:40:22 +09:00
yutopp 50b1f1fad8 Reduce memory usage. Add benchs 2018-07-23 20:31:34 +09:00
yutopp d1ddc7ab02 Change WinAckSize to signed int32 2018-07-14 21:08:04 +09:00
yutopp c8c9e17180 make connection options configurable 2018-07-09 19:01:33 +09:00
yutopp b18cac69c7 remove loggers from message package. fix log levels 2018-07-07 20:07:25 +09:00
yutopp 11a9969c52 implement setDataFrame insteadof onMetaData. add amf format type information to all AMFConveribles 2018-07-02 19:40:34 +09:00
yutopp a15a1a6095 message: implement DataMessageAMF0. fix typos. fix tests. divide/merge modules to unify logic 2018-06-21 20:23:36 +09:00
yutopp 3235ec0903 message: implement SetPeerBandwidth 2018-06-21 19:00:39 +09:00
yutopp d32d7c52a8 message: implement WinAckSize 2018-06-21 18:56:41 +09:00
yutopp 2f6483613d message: implement AbortMessage 2018-06-21 18:52:19 +09:00
yutopp f77d454e62 implement SetChunkSize message 2018-06-19 21:16:11 +09:00
yutopp 69a83eb1a5 fix message id. add template functions for all messages 2018-06-19 21:05:16 +09:00
yutopp 5f9b352c18 export state in conn as handlers. net stream and connection values are well typed. add tests 2018-06-11 00:12:29 +09:00
yutopp 9984432b5d add Ack encoder/decoder. send Ack. improve error handling 2018-06-10 20:05:37 +09:00
yutopp faefc8737d change CtrlWinAckSize to WinAckSize. add message definitions 2018-06-10 17:25:23 +09:00
yutopp 572a59c805 add tests. use TypeID explicitly 2018-06-09 08:50:42 +09:00
yutopp 10698feb78 divide handler. use raw command objects temporarily 2018-05-31 21:03:04 +09:00
yutopp a34b07c330 change amf0 package name 2018-05-28 17:51:42 +09:00