Video in a miniwindow

Posted by Malarious on Mon 20 Sep 2010 05:04 AM — 3 posts, 17,363 views.

#0
Is it possible to stream video into a miniwindow inside of mush if you somehow provide the link of the video to Mushclient?

If so any tips or clues?
USA #1
Not really, no. There's no encoder/decoder built into MUSHclient for videos. The best you could do is run an external application that encodes/decodes each frame, and use UdpListen and UdpSend in a MUSHclient plugin to communicate the frames to the plugin.

And then you'll need to be able to draw each frame. Timers have a minimum period of only 100ms, meaning you'll only get 10fps (frames per second), which is discernibly laggy. You can define an OnPluginTick callback to draw frames, which is called every 40ms, but even then you only get 25fps (at best).

But you definitely wouldn't want to draw immediately every time you get a frame over the UDP socket because the decoder could easily decode faster (or slower) than you expect. This would make playback look weird, slowing and speeding seemingly arbitrarily.
Netherlands #2
Let me turn that into a hard NO. Video's as we know them nowadays require hardware acceleration to play smoothly. MUSHclient has no such support. I know from experience that animating something with 10FPS already causes a huge load, since MUSHclient is simply not made for animated things. It's just meant for scrolling text.