Now That's What I Call A Broadcast
- 6 Devlogs
- 13 Total hours
App that can receive/send simple pixel-grid broadcasts not unlike analog television
App that can receive/send simple pixel-grid broadcasts not unlike analog television
Working on receiving network streams. Over TCP because the header kinda messes up the broadcast part unless i change it so it’s multiplexed so the header will be sent over individually and only then will a client join the broadcast. Had trouble with how to make both receiving packets and displaying the stream happen simultaneously, but maybe hopefully this should work? i think that’s how it’s used
A demonstration of everything that works* now, including the main menu, opening the file, showing the video, changing the stream metadata and ending the stream.
Adjusting for framerate uses delta time between the start and end of frame, and if it’s smaller than the allocated time for one frame, it waits. Of course I couldn’t just do Thread.Sleep() because if someone sets the stream to 1fp4s then you’d have to wait the full 4 seconds before being to exit, so it just continues the loop and on each next iteration checks if the time has passed. Janky? Maybe. works? well enough.
Reading a stream from file is now possible :D
Framerate will be measured in Frames per 4 seconds (hence fp4s) to make slow streams not painful to make while fast videos can be played up to 255fp4s so 63,75fps.
This didn’t very much focus on reading files as it was reading streams in general so a big part of the groundwork for playing from remote is now done!
edit: Well, delta time for frame rate isn’t implemented yet so that will also need to be done
Made the layout for the stream viewer. Uses a few Panel widgets inside a Layout. Next to implement actually parsing the image data and drawing it.
Made a .ntwicab file parser (well, the metadata part). The stream player will include metadata like video name, author and a broadcast identification thingy (like a network bug but made from Unicode characters). Currently the string limit is 32, wilk probably double that. I think I’ll also make the bug bigger (it’s currently 4 rows x 16 chars )
Made a simple banner and a simple main menu with Spectre Console (only the quit button works; embarrassing for 2hrs of work lmao)