Author Topic: Being able to add video  (Read 5377 times)

chad thursday

  • Newbie
  • *
  • Posts: 3
    • View Profile
Being able to add video
« 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...

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 5380
    • View Profile
Re: Being able to add video
« Reply #1 on: March 19, 2007, 05:22:09 PM »
You can insert video into your layout by inserting a proper HTML element.  Example:

Code: [Select]
<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: [Select]
<PARAM name="uiMode" value="none">
Add this parameter to stop it from repeating:

Code: [Select]
<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

URSHARKB8

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: Being able to add video
« Reply #2 on: March 20, 2007, 03:20:31 PM »
sweet thanks Corey

Linker_Split

  • Full Member
  • ***
  • Posts: 103
    • View Profile
Re: Being able to add video
« Reply #3 on: October 03, 2011, 04:55:52 AM »
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:
Code: [Select]
<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...

Linker_Split

  • Full Member
  • ***
  • Posts: 103
    • View Profile
Re: Being able to add video
« Reply #4 on: October 03, 2011, 07:54:55 AM »
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:

Code: [Select]
// ************ 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:

Code: [Select]
<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... :(
« Last Edit: October 03, 2011, 09:18:49 AM by Linker_Split »

TIMMER

  • Hero Member
  • *****
  • Posts: 555
    • View Profile
Re: Being able to add video
« Reply #5 on: October 03, 2011, 04:45:38 PM »
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.
« Last Edit: October 03, 2011, 04:51:40 PM by TIMMER »

Linker_Split

  • Full Member
  • ***
  • Posts: 103
    • View Profile
Re: Being able to add video
« Reply #6 on: October 03, 2011, 05:01:14 PM »
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

TIMMER

  • Hero Member
  • *****
  • Posts: 555
    • View Profile
Re: Being able to add video
« Reply #7 on: October 03, 2011, 05:15:34 PM »
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.

TIMMER

  • Hero Member
  • *****
  • Posts: 555
    • View Profile
Re: Being able to add video
« Reply #8 on: October 03, 2011, 05:30:39 PM »
If its a full-screen I'd make up a tdscreen but if fits inside the cell so-be-it.

TIMMER

  • Hero Member
  • *****
  • Posts: 555
    • View Profile
Re: Being able to add video
« Reply #9 on: October 03, 2011, 06:56:28 PM »
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">
« Last Edit: October 05, 2011, 03:24:58 PM by TIMMER »

Linker_Split

  • Full Member
  • ***
  • Posts: 103
    • View Profile
Re: Being able to add video
« Reply #10 on: October 04, 2011, 04:13:15 AM »
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

TIMMER

  • Hero Member
  • *****
  • Posts: 555
    • View Profile
Re: Being able to add video
« Reply #11 on: October 04, 2011, 02:13:31 PM »
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.

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 5380
    • View Profile
Re: Being able to add video
« Reply #12 on: October 04, 2011, 06:07:25 PM »
Javascript within the HTML of cells doesn't work.  Sorry that's just the way it is.

Linker_Split

  • Full Member
  • ***
  • Posts: 103
    • View Profile
Re: Being able to add video
« Reply #13 on: October 05, 2011, 05:53:16 AM »
what about PHP or other languages?

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 5380
    • View Profile
Re: Being able to add video
« Reply #14 on: October 05, 2011, 11:25:22 AM »
Sorry, no scripting languages are supported.