Commit Graph

119 Commits

Author SHA1 Message Date
Alexandre Iooss 772ddb1994
Fix typo in occurred 2020-10-14 21:36:12 +02:00
Alexandre Iooss c3629bdbb5
Remove ineffectual assignments 2020-10-14 21:33:51 +02:00
Yohann D'ANELLO e53d5a02ab More coverage on telnet package 2020-10-14 20:01:07 +02:00
Yohann D'ANELLO 1f0dc64c35 Ensure that one telnet client is connected in tests 2020-10-14 19:46:53 +02:00
Yohann D'ANELLO 8590f23039 Test telnet package 2020-10-14 19:42:23 +02:00
Yohann D'ANELLO e5f4c3a7e6 FFMPEG is a dependency, don't check if it is installed 2020-10-14 19:04:50 +02:00
Alexandre Iooss e56b21b819
Do not export ASCII chars 2020-10-14 19:02:03 +02:00
Alexandre Iooss 177ed189ff
Test WebRTC Serve 2020-10-14 18:57:37 +02:00
Alexandre Iooss 099fb8e203
Disable Trickle ICE 2020-10-14 18:37:51 +02:00
Alexandre Iooss 7d8c16fbb7
Pass webrtc sdp chan in newPeerHandler 2020-10-14 18:34:14 +02:00
Yohann D'ANELLO f21ad568cc Don't always reallocate memory to store ascii chars 2020-10-14 17:10:31 +02:00
Alexandre Iooss 36a890a914
Grow buffer each time 2020-10-14 16:46:39 +02:00
Alexandre Iooss 67ef07cac5
Preallocate text buffer for telnet 2020-10-14 16:44:13 +02:00
Alexandre Iooss 868ee12726
Telnet: Preallocate pixel variable 2020-10-14 16:10:04 +02:00
Alexandre Iooss 1e4a596131
Add test file for telnet package 2020-10-13 18:55:12 +02:00
Alexandre Iooss 4182668fcb
Reorder some imports in webrtc package 2020-10-13 18:55:02 +02:00
Yohann D'ANELLO 029633d215 Don't fail tests if the telnet module is not loaded 2020-10-13 18:40:12 +02:00
Yohann D'ANELLO 51d38f6fec Store the clients that are connected to a telnet shell in the connected viewers stats 2020-10-13 11:37:59 +02:00
Yohann D'ANELLO 88c4a037cb Add 3 seconds delay before accepting telnet inputs to avoid bruteforce attacks 2020-10-13 11:28:29 +02:00
Yohann D'ANELLO 6d9fe4a028 Use string pointers for the telnet output to avoid concurrency map read/write 2020-10-13 11:17:35 +02:00
Yohann D'ANELLO 770862cb7d Don't use -re ffmpeg option: the video speed is already cadenced by the streamer. Fix #16 2020-10-13 10:46:04 +02:00
Yohann D'ANELLO 3ce82c5d61 Allocate memory for UDP buffers only once 2020-10-13 10:10:25 +02:00
Yohann D'ANELLO 32f877508d Separate the WebRTC stream subroutine in a dedicated subroutine 2020-10-13 09:50:46 +02:00
Yohann D'ANELLO defba52569 If there is no forwarding, drop forwarding channels 2020-10-13 09:38:44 +02:00
Yohann D'ANELLO 7325301574 Comment in the right order 2020-10-13 01:41:17 +02:00
Yohann D'ANELLO 4db102c384 Ascii is a known keyword, must be in capital letters 2020-10-13 00:56:49 +02:00
Yohann D'ANELLO 727865f444 Interact with telnet to select the stream id 2020-10-13 00:52:08 +02:00
Yohann D'ANELLO 95fcedf2fa Comment telnet package 2020-10-13 00:31:47 +02:00
Yohann D'ANELLO ee76951854 Don't export to ASCII art if the telnet packet is disabled 2020-10-13 00:30:05 +02:00
Yohann D'ANELLO 61ae490a5d Make telnet output configurable 2020-10-13 00:15:23 +02:00
Yohann D'ANELLO e640450d98 Start telnet connection to send ASCII Art stream 2020-10-12 23:39:26 +02:00
Yohann D'ANELLO b675023804 Prepare ascii art quality 2020-10-12 23:11:02 +02:00
Alexandre Iooss df88fd9e99
Create config package and properly use Viper 2020-10-11 21:35:43 +02:00
Yohann D'ANELLO 4d1dff60c7 -crf is better that -quality good 2020-10-10 17:05:36 +02:00
Yohann D'ANELLO 3dd544c1e4 The FFMPEG parameters make WebRTC working 2020-10-10 17:00:25 +02:00
Yohann D'ANELLO 503649a6da Use FFMPEG settings that are recommended by pion, better performances, see #3 2020-10-10 14:19:42 +02:00
Yohann D'ANELLO a8146e7cbb Setting blocking option to 0, fix #11 2020-10-10 13:50:37 +02:00
Alexandre Iooss d1d6eb17b6
Test splitHostPort error cases 2020-10-09 23:37:08 +02:00
Alexandre Iooss 87d2992bdf
Add package comments 2020-10-09 22:36:02 +02:00
Yohann D'ANELLO 473e80c5eb Kill FFMPEG at the end of the forwarding test 2020-10-09 22:31:19 +02:00
Alexandre Iooss 811cec5626
Enable SRT server for forwarding tests 2020-10-09 22:24:01 +02:00
Alexandre Iooss 7ae82656a4
Enable SRT server during testing 2020-10-09 22:17:25 +02:00
Alexandre Iooss 45c6b5dba5
Fix #7: make each module optional 2020-10-09 22:06:30 +02:00
Yohann D'ANELLO 07983a1c71 Try to add a quality selector (WIP), see #4 2020-10-06 00:06:52 +02:00
Yohann D'ANELLO 192c86f140 Count also the viewers that are streaming directly from their video player in the connected users stats 2020-10-05 22:41:19 +02:00
Yohann D'ANELLO 635081f269 Client receives the stream corresponding to the requested stream id 2020-10-05 22:34:55 +02:00
Yohann D'ANELLO 0a1329b929 Separate statistics per stream 2020-10-05 22:09:10 +02:00
Yohann D'ANELLO 022f6fb098 💩 Split webrtc tracks by stream id (need to clean this, stream ID must pass between the session descriptor and the webrtc flux transmit) 2020-10-05 22:00:08 +02:00
Alexandre Iooss 76f009efe3
Use logger rather than panic in ingest 2020-10-05 11:38:17 +02:00
Alexandre Iooss cbe6a00d1a
Reduce verbosity of streaming 2020-10-05 11:08:22 +02:00