Commit Graph

1338 Commits

Author SHA1 Message Date
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
Alan Noble f564a4927d Merged in rtmp-renaming (pull request #100)
Rtmp renaming

Approved-by: Saxon Milton <saxon.milton@gmail.com>
Approved-by: kortschak <dan@kortschak.io>
2019-01-07 11:44:46 +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
Alan Noble 705fedc532 Merged in use-go-errors (pull request #97)
Use Go errors for all rtmp functions.
Approved-by: Saxon Milton <saxon.milton@gmail.com>
Approved-by: Alan Noble <anoble@gmail.com>
2019-01-06 23:18:35 +00:00
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
Alan Noble 8381d1b1e8 Merged in sockets-cleanup (pull request #96)
Socket-related code cleanup #2

Approved-by: Saxon Milton <saxon.milton@gmail.com>
Approved-by: kortschak <dan@kortschak.io>
2019-01-05 22:38:08 +00:00
scruzin 4d767f106c Make for Go idiomatic. 2019-01-06 08:25:46 +10:30
kortschak c0d0eebf1a Merged in no-empty-header (pull request #95)
stream/flv: remove unnecessary header write on creation

Approved-by: Alan Noble <anoble@gmail.com>
Approved-by: Saxon Milton <saxon.milton@gmail.com>
2019-01-05 20:29:31 +00:00
scruzin 513b84ad87 Further cleaned up sockets related code. 2019-01-05 23:13:19 +10:30
Dan Kortschak 05e0672e89 stream/flv: remove unnecessary header write on creation 2019-01-05 17:56:55 +10:30
Dan Kortschak b46e267983 cmd/revid-cli: use sensible default for encoding option 2019-01-05 10:33:32 +10:30
Alan Noble 250da4232a Merged in configurable-log-path (pull request #93)
Added LogPath and ConfigFile command line flags.

Approved-by: kortschak <dan@kortschak.io>
2019-01-04 23:40:13 +00:00
scruzin 04a76e424a Added LogPath and ConfigFile command line flags. 2019-01-05 08:48:47 +10:30
Alan Noble c971d4b225 Merged in portable-sockets (pull request #92)
Replaced Unix sockets with IPConn. Sock_XXX funtions have been left as is for PR readability.

Approved-by: Saxon Milton <saxon.milton@gmail.com>
Approved-by: kortschak <dan@kortschak.io>
2019-01-04 20:37:23 +00:00
saxon e340c9b9be rtmp: removed debug prints 2019-01-02 21:55:43 +10:30
saxon cec95cd652 rtmp: using TCP rather IP 2019-01-02 21:54:01 +10:30
saxon 0b2c38117f revid: trying to fix rtmp 2019-01-02 21:28:20 +10:30
saxon 30f3f0558f Fixing smartlogger build error
Merge branch 'master' into portable-sockets
2019-01-02 20:51:46 +10:30
scruzin 04d7540b34 Replaced Unix sockets with IPConn. Sock_XXX funtions have been left as is for PR readability. 2019-01-02 18:20:30 +10:30
Saxon Milton 6d61ff7c25 Merged in change-of-logger-package (pull request #91)
Change of logger package

Approved-by: Alan Noble <anoble@gmail.com>
2019-01-02 07:05:21 +00:00
saxon cca95f1c5d revid: fixed cmds used for testing 2019-01-02 17:32:20 +10:30
saxon 686a507ff8 revid: fixed smartlogger import path 2019-01-02 17:21:33 +10:30
saxon 94e4397594 revid: trying to work out bug 2019-01-02 17:21:03 +10:30
Saxon Milton 38998ab848 Merged in change-of-logger-package (pull request #89)
av: updated logging to suit changes made on iot and utils

Approved-by: Alan Noble <anoble@gmail.com>
2019-01-02 06:25:24 +00:00
saxon a4c73cf6c5 av: updated logging to suit changes made on iot and utils 2019-01-02 15:39:47 +10:30
Saxon Milton ebccfa1a54 Merged in raspivid-no-start-fatal (pull request #87)
revid: fatal when raspivid cannot be started

Approved-by: kortschak <dan@kortschak.io>
2018-12-29 10:57:49 +00:00