The Tournament Director Forums
Main => Suggestions => Topic started by: chad thursday on March 19, 2007, 02:42:23 PM
-
It'd be really great if you could add video clips to the tournament director.....so say everytime you had to pause the game you had a clip of an interview with some poker player like jesus or fossil or whom ever or during buy-in you could have a slide show of your players and whatever...
-
You can insert video into your layout by inserting a proper HTML element. Example:
<OBJECT width="320" height="240"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
type="application/x-oleobject">
<PARAM NAME="URL" VALUE="PATH_TO_VIDEO">
<PARAM NAME="AutoStart" VALUE="True">
</OBJECT>
Add this parameter to hide the controls:
<PARAM name="uiMode" value="none">
Add this parameter to stop it from repeating:
<PARAM name="PlayCount" value="1">
You could create a separate screen with just the video cell, or with additional information. You would have to manually go to that screen (hotkeys 1 through 9 by default) when you pause the clock, but if you're pausing the clock, you're already at the keyboard, right?
Create separate screens with different videos and you're off...
There are numerous how-to sites on the web detailing how to insert video into a web page. Here's one: http://www.mioplanet.com/rsc/embed_mediaplayer.htm
-
sweet thanks Corey
-
Hello guys,
sorry for popping up with this old thread, but I'm having a problem with embedding videos in my screen:
I've added the code Corey posted, and the path to the file: even if I select an url such as youtube URL, video doesn't show.
can somebody help me?
code is:
<OBJECT id="VIDEO" width="320" height="240"
style="position:absolute; left:0;top:0;"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
type="application/x-oleobject">
<PARAM NAME="file:///<home>\VIDEOS\VIDEO1.flv" VALUE="your file or url">
<PARAM NAME="SendPlayStateChangeEvents" VALUE="True">
<PARAM NAME="AutoStart" VALUE="True">
<PARAM name="PlayCount" value="9999">
</OBJECT>
I've also tried with the mp4 format, but nothing...
-
ok, problem solved: now what i want to do is to randomly play 5 videos.
Is it possible?
I've made a Javascript that looks like this:
// ************ Start of randomMovie.js *************
// Our playlist array
var playlist =new Array();
playlist[0] = 'file:///<home>\VIDEOS\1.wmv'
playlist[1] = 'file:///<home>\VIDEOS\0.wmv'
playlist[2] = 'file:///<home>\VIDEOS\4.wmv'
playlist[3] = 'file:///<home>\VIDEOS\3.wmv'
playlist[4] = 'file:///<home>\VIDEOS\2.wmv'
// Find the length of thr array
var arrayLen = playlist.length;
// Get a random number
var randomMovie = Math.round(Math.random()*(arrayLen-1));
function renderMovie(){
document.write('<OBJECT id="VIDEO" width="854" height="430"');
document.write('CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"');
document.write('type="application/x-oleobject">');
document.write('<PARAM NAME="url" VALUE="'+ playlist[randomMovie] +'">');
document.write('<PARAM NAME="SendPlayStateChangeEvents" VALUE="True">');
document.write('<PARAM NAME="AutoStart" VALUE="true">');
document.write('<PARAM name="PlayCount" value="1">');
document.write('<EMBED TYPE="application/x-mplayer2" SRC="' + playlist[randomMovie] + '" NAME="MediaPlayer" WIDTH="192" HEIGHT="190" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0"> </EMBED>');
document.write('</OBJECT>');
}
// ************ End of randomMovie.js *************
and the HTML code written in the tournament director layout is:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript src="file:///<home>\JAVASCRIPTS\video_random.js"></script>
</head>
<body>
<script type="text/javascript">renderMovie();</script>
</body>
</html>
It doesn't work... :(
-
what token are you using, I use the <announcements3> for mine. with ( tdbuttons ) And by the thread up top, I dont think random is possible.
-
what token are you using, I use the <announcements3> for mine. with ( tdbuttons ) And by the thread up top, I dont think random is possible.
well I'm not usaing any tokens.
What I'm doing here is creating a new cell, and modifying the html adding these codes...
it's very strange that we can't use Javascript within HTML
-
Click the cell, Contents, click inside the white box, click Insert token, then choose. then do-up a (tdbutton) name it what ever you want. its like a (hotkey) but button form.
-
If its a full-screen I'd make up a tdscreen but if fits inside the cell so-be-it.
-
Heres mine wthin a cell, <announcements3><object width="480" height="385"><param name="movie" value=-----------------------------------------------------------------------</param><param name="allowFullScreen" heres the button <tdbutton type="selectscreen" modifier="7">
-
thank you TIMMER :)
Anyway let's wait Corey's answer and see if there's another workaround... Otherwise I'll use your method!
TY again
-
Either way the TD needs away to find it and fire it, as a Hotkey or Button, or set it up to fire on as a Event 1st break. if the Conditions are set right, as the clock ticks (not to sure about that one though) or try looking in the Rules tab, and see if one of those Tokens could be used. well ok lets see what Corey chimes in with.
-
Javascript within the HTML of cells doesn't work. Sorry that's just the way it is.
-
what about PHP or other languages?
-
Sorry, no scripting languages are supported.
-
Hi I would like to be able to play a video if i paused the clock for breaks but am unsure how to apply each of the codes below as i am new to this and HTML would somebody be able to tell me a simple step by step way to do this
Thanks
You can insert video into your layout by inserting a proper HTML element. Example:
Code:
<OBJECT width="320" height="240"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
type="application/x-oleobject">
<PARAM NAME="URL" VALUE="PATH_TO_VIDEO">
<PARAM NAME="AutoStart" VALUE="True">
</OBJECT>
Add this parameter to hide the controls:
Code:
<PARAM name="uiMode" value="none">
Add this parameter to stop it from repeating:
Code:
<PARAM name="PlayCount" value="1">
not sure where each code should go
THanks