[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  Programming
. -> [Folder]  General
. . -> [Subject]  Video in a miniwindow
Home  |  Users  |  Search  |  FAQ
Register forum user name
Forgotten password?

Video in a miniwindow

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Posted by Malarious   (4 posts)  [Biography] bio
Date Mon 20 Sep 2010 05:04 AM (UTC)
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?
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] bio
Date Reply #1 on Mon 20 Sep 2010 05:12 AM (UTC)
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.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Worstje   Netherlands  (899 posts)  [Biography] bio
Date Reply #2 on Mon 20 Sep 2010 05:25 AM (UTC)
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.
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum

[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]