AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   HL1 Servers (HLDS) (https://forums.alliedmods.net/forumdisplay.php?f=131)
-   -   Play video in a motd (https://forums.alliedmods.net/showthread.php?t=185046)

Piranja 05-12-2012 06:52

Play video in a motd
 
Is it possible to play video in a motd window?

Shooting King 05-12-2012 07:01

Re: Play video in a motd
 
I think It is a NO. But you can make it with .gif images.

Piranja 05-12-2012 07:14

Re: Play video in a motd
 
khm, you think i can make animation in .gif format and than play it like a video? nice idea

Aooka 05-12-2012 07:52

Re: Play video in a motd
 
A video you can test but i think it's just ... Impossible :S

.gif is possible.

fysiks 05-12-2012 12:30

Re: Play video in a motd
 
It might be possible, try it out. It would require opening a webpage on a public web server.

8088 05-12-2012 20:35

Re: Play video in a motd
 
The Goldsource motd uses IE to render HTML. I'm not sure which version/engine it currently uses and possibly it may depend on the client's OS, but that should be easy to find out (redirect to a script that reads the user agent). I'm fairly certain the object element (with the appropriate CLASSID) can be used, just as with mp3 files and streaming radio. Loading a remote webpage isn't required, because it's still the same engine that has to render the page. The video however has to be plublicly hosted.

avril-lavigne 05-15-2012 06:53

Re: Play video in a motd
 
not possible. I tried all methods

8088 05-15-2012 17:16

Re: Play video in a motd
 
Turns out you're right. I was curious, so I tried several object methods with all kinds of params, and all they do is play the sound and show controls below a blank player screen.

In case anyone else wants to give it a try, this is how I was identified in CS 1.6 on Win7 x64:
Code:

Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; .NET CLR 1.1.4322)
browscap.ini:
Code:

browser_name_regex:§^mozilla/4\.0 \(compatible; msie 7\.0.*; .*windows nt 6\.1.*\).*$§
browser_name_pattern:Mozilla/4.0 (compatible; MSIE 7.0*; *Windows NT 6.1*)*
parent:IE 7.0
platform:Win7
platform_version:6.1
platform_description:Windows 7
comment:IE 7.0
browser:IE
version:7.0
majorver:7
minorver:0
win32:1
frames:1
iframes:1
tables:1
cookies:1
backgroundsounds:1
javascript:1
vbscript:1
javaapplets:1
activexcontrols:1
cssversion:2
device_name:PC
device_maker:Various
alpha:
beta:
win16:
win64:
ismobiledevice:
issyndicationreader:
crawler:
aolversion:0
renderingengine_name:unknown
renderingengine_version:unknown
renderingengine_description:unknown

objects:
HTML Code:

<object classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="player" width="320" height="240">
  <param name="url" value="http://lol.com/video_file.wmv" />
  <param name="src" value="http://lol.com/video_file.wmv" />
  <param name="showcontrols" value="true" />
  <param name="autostart" value="true" />
</object>

HTML Code:

<object type="video/x-ms-wmv" data="http://lol.com/video_file.wmv" width="320" height="240">
  <param name="url" value="http://lol.com/video_file.wmv" />
  <param name="src" value="http://lol.com/video_file.wmv" />
  <param name="autostart" value="true" />
  <param name="controller" value="true" />
</object>

The good news is that it would look like shit anyway.

Costin83 05-17-2012 16:25

Re: Play video in a motd
 
try an autorefresh iFrame in background. I found this the only solution to display video...

8088 05-17-2012 17:30

Re: Play video in a motd
 
An iframe or redirect won't make any difference. It's still the same engine that has to render it all. If you got it to work, it must've been the code that was different.


All times are GMT -4. The time now is 00:12.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.