Commit Graph

3336 Commits

Author SHA1 Message Date
saxon 2284d38492 psi: removed more unnecessary conversions 2019-01-07 17:00:48 +10:30
saxon 83e4a4c5c5 psi: removing uneccessary conversion in psi_test.go 2019-01-07 16:58:12 +10:30
saxon b2b5db1f1f psi: using lowercase letters in hex 2019-01-07 16:32:18 +10:30
saxon 13b8c23351 psi: removed byteToBool func as can do this by other means 2019-01-07 16:30:48 +10:30
saxon ba9e5a3136 psi: renamed SD (specific data) interface to SpecificData 2019-01-07 16:27:18 +10:30
saxon 0c0afa8bde psi: removed redundent return in updateCrc 2019-01-07 16:25:08 +10:30
saxon 26f26cbeee psi: using binary.BigEndian.PutUin32 to put crc32 into the psi 2019-01-07 16:23:38 +10:30
scruzin ad55d31577 Made type and variable names idiomatic, and merged C_RTMP into Session. 2019-01-07 16:20:35 +10:30
saxon fa0154ad3d psi: using b instead of out for updateCrc 2019-01-07 16:20:06 +10:30
saxon 6ebb982238 psi: improved comment for updateCrc 2019-01-07 16:18:20 +10:30
saxon 261118187b psi: using copy inside UpdateLocation() instead of range 2019-01-07 16:16:53 +10:30
saxon 0d3abd5798 psi: using own trim function to get rid of null chars in gps string 2019-01-07 14:24:54 +10:30
saxon 8cf2181958 psi: modified error messages for updateTime and updateLocation to make clearer 2019-01-07 13:56:25 +10:30
saxon 31683b4194 psi: HasTime and HasLocation now return bool instead of error 2019-01-07 13:49:47 +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
saxon a0079ef046 psi: created crc.go to put crc stuff in and renamed op.go to helpers.go 2019-01-07 12:26:58 +10:30
saxon 239e1dfc93 psi: made TimeLocation struct member vars exported 2019-01-07 12:05:05 +10:30
saxon 7a73f69fe9 psi: MetaData struct => TimeLocation and also not initialising anymore 2019-01-07 11:59:46 +10:30
saxon 703f0a0523 revid: cleaned up send logic in httpSender send func 2019-01-07 10:45:22 +10:30
saxon 8878063dc8 revid: clean up vars for use in calculation of time between writes to packer 2019-01-07 10:43:30 +10:30
saxon fc72f0734a mts/psi: remove read funcs as we're not using them at this time 2019-01-07 10:30:13 +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 fb5acb8e6f psi: fix crc update issue by not indexing from end of pmt slice, but rather getting syntax section length field and using that to index crc 2019-01-03 17:56:08 +10:30
saxon 26a43d54bb rtp: updated error message to suit new rtpSender.send() function 2019-01-03 13:01:35 +10:30
saxon 5f20086440 rtp: removed code in rtpSender relating to chunks - something we're not using anymore in this case 2019-01-03 12:57:50 +10:30
saxon 3e5b575df0 UPdated local with remote
Merge branch 'improve-ts-encoder-performance' of http://bitbucket.org/ausocean/av into improve-ts-encoder-performance
2019-01-03 12:48:46 +10:30