ImTheSquid/Tuxphones

Clicking Go Live with Sound does nothing.

Closed this issue · 4 comments

The daemon recieves a invalid type

   ~/source/Tuxphones/daemon    main  cargo run  ✔  4s 
warning: unused variable: gst_resize_rx
--> src/lib.rs:110:53
|
110 | ... let (gst_resize_tx, gst_resize_rx) = channel(10);
| ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: _gst_resize_rx
|
= note: #[warn(unused_variables)] on by default

warning: field encoder is never read
--> src/gstreamer.rs:98:5
|
94 | pub struct GstHandle {
| --------- field in this struct
...
98 | encoder: Element,
| ^^^^^^^
|
= note: #[warn(dead_code)] on by default

warning: tuxphones (lib) generated 2 warnings
Finished dev [unoptimized + debuginfo] target(s) in 0.10s
Running target/debug/tuxphones
2022-12-02T02:01:28.122999Z INFO tuxphones: Daemon started
2022-12-02T02:01:47.400511Z INFO tuxphones: [GetInfo] Command received
2022-12-02T02:01:47.415168Z INFO tuxphones: [GetInfo] Command processed (applications found: 1)
2022-12-02T02:01:48.921137Z INFO tuxphones: [GetInfo] Command received
2022-12-02T02:01:48.934695Z INFO tuxphones: [GetInfo] Command processed (applications found: 1)
2022-12-02T02:01:49.941016Z INFO tuxphones: [GetInfo] Command received
2022-12-02T02:01:49.947888Z INFO tuxphones: [GetInfo] Command processed (applications found: 1)
2022-12-02T02:01:50.952460Z INFO tuxphones: [GetInfo] Command received
2022-12-02T02:01:50.965792Z INFO tuxphones: [GetInfo] Command processed (applications found: 1)
2022-12-02T02:01:56.615958Z ERROR tuxphones::socket: Failed to deserialize command: invalid type: null, expected a string

This is one of the issues we're having, try reloading Discord (Cmd/Ctrl+R) then try to go live again. It comes from us being unable to get an IP address that we need. Once I resume development on the plugin around mid-December I will try to fix it.

2022-12-02T02:21:54.097748Z INFO tuxphones: Daemon started
String: {"type":"GetInfo","xids":[29360136,100663306,100666156,4194307,106954785,134217729,106954871,106954865,58720263]}
2022-12-02T02:22:04.828261Z INFO tuxphones: [GetInfo] Command received
2022-12-02T02:22:04.850224Z INFO tuxphones: [GetInfo] Command processed (applications found: 1)
String: {"type":"GetInfo","xids":[29360136,100663306,100666156,4194307,106954785,134217729,106954871,106954865,58720263]}
2022-12-02T02:22:06.360372Z INFO tuxphones: [GetInfo] Command received
2022-12-02T02:22:06.380296Z INFO tuxphones: [GetInfo] Command processed (applications found: 1)
String: {"type":"GetInfo","xids":[29360136,100663306,100666156,4194307,106954785,134217729,106954871,106954865,58720263]}
2022-12-02T02:22:07.386118Z INFO tuxphones: [GetInfo] Command received
2022-12-02T02:22:07.427607Z INFO tuxphones: [GetInfo] Command processed (applications found: 1)
String: {"type":"StartStream","pid":26752,"xid":134217729,"resolution":{"width":0,"height":0,"is_fixed":false},"framerate":60,"server_id":"1048061479917727825","user_id":"147892034932441088","token":"08cf4e400ec6991c","session_id":"58b06360538e03801016934d09971136","rtc_connection_id":"4165cf79-3f39-4534-b49b-717127022b22","endpoint":"us-east11072.discord.media:443","ip":null,"ice":{"type":"IceData","urls":["stun:global.stun.twilio.com:3478?transport=udp","turn:global.turn.twilio.com:3478?transport=tcp","turn:global.turn.twilio.com:3478?transport=udp"],"username":"4aac1e53ade1a5473f8b5da67be3b591113cad11a9c75f957537026f628111fa","credential":"dyH2YPGFDI8rgDcaAl73jJOR7ga/st4/YpNxsVJ498A="}}
2022-12-02T02:22:09.038634Z ERROR tuxphones::socket: Failed to deserialize command: invalid type: null, expected a string

Thanks for such a quick response! Keep at it, you've given me a great reason to learn rust. <3

This should be fixed by e1ae4cb