Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ Programming ➜ General ➜ Video in a miniwindow

Video in a miniwindow

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


Posted by Malarious   (4 posts)  Bio
Date Mon 20 Sep 2010 05:04 AM (UTC)
Message
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?
Top

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

Posted by Worstje   Netherlands  (899 posts)  Bio
Date Reply #2 on Mon 20 Sep 2010 05:25 AM (UTC)
Message
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.
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.


14,043 views.

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

Go to topic:           Search the forum


[Go to top] top

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