Author Topic: plugin for playing a video file on demand  (Read 6195 times)

etellier

  • Newbie
  • *
  • Posts: 20
    • View Profile
plugin for playing a video file on demand
« on: April 13, 2008, 06:57:39 pm »
Hey, is there a plugin to get hal to play a video on demand, is there a way to tie a voice command to play a video file?

i am workin on a kitt replica, and i want kitt to be able to play animation on demand...

Eric
 

TechSteele

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
plugin for playing a video file on demand
« Reply #1 on: April 13, 2008, 09:52:06 pm »
This is exactly what i have been working on. [8D]
Only difference is, I was trying to get Hal to open them, instead of my telling him what to open.

However, it took me a little while, but i was able to convert one for you. (And others)



Download Attachment: KITT_video.uhp
4.55 KB

Right click and save as, then
Throw it in your Hal folder, Then
In the General Options and under Brain, check the plug in marked: KITT images
Then load Hal and tell him: Please Index the KITK files
In the box put in where your image files are, like C:/users/Videos
When he finishes makeing the index he will tell you
Then, say: Show * Image *
or something like: Show an image of Goliath  
And he should show that image, if you have a video marked with that name in the title.
(i added a little something for KITT people in the response)[:p]

I wrote it to use .Avi files, but if you need another format, open the file with notepad or some text editor and change the places where it says avi to your format, mpg, flv or what ever, save the changes, then have Hal remake the index again.

If you have more then one image file (not format), just run the index a second time and hit no when it asks to replace your index, then tell it where the other folders are, and it will add to your index the next set of images use.

I am new to programming for Hal, but it worked fine when i tested it here, but let me know if it works for you. Thanks

I think KITT or R2D2 are the top 2 reasons anyone comes to hal. [:p]
They were the reason i looked and found Hal.

 

etellier

  • Newbie
  • *
  • Posts: 20
    • View Profile
plugin for playing a video file on demand
« Reply #2 on: April 14, 2008, 08:57:10 pm »
Hey, thanks it seem to be workin really nice, i need to know, however, it called me michael, i went into the script to change the name to eric, and restarted hal, and it keep calling me michael...

any idea?

Eric
 

TechSteele

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
plugin for playing a video file on demand
« Reply #3 on: April 14, 2008, 11:17:15 pm »
If NameToPlay <> "" Then
          GetResponse = "Look at this Michael; maybe it's what you were talking about. "
          HalCommands = HalCommands & "<RUNPROG>" & NameToPlay & "</RUNPROG>"

I am glad it works.
The Michael thing was the response i added as a joke, but i thought it was cool.
Above are 3 lines in the text, the blue line is the one to change.
When you change the line, just remember to save the file and reload the plug in and hal, so hal makes the changes in his brain.
 

etellier

  • Newbie
  • *
  • Posts: 20
    • View Profile
plugin for playing a video file on demand
« Reply #4 on: April 15, 2008, 06:19:56 am »
Hi there, another one, is it possible to edit the plugin you provided, to get it to open applications...

im thinking, to put applications links into a folder, then get kitt to index all links, there calling a link, will call the appz...

i want to do this, to call a gps software i intend to install in kitt...

Eric
 

TechSteele

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
plugin for playing a video file on demand
« Reply #5 on: April 15, 2008, 09:04:24 am »
I think its possible.
I would need to test a few things.
Applications are a little different.

I know you could edit the brain directly with the links,
you could even put the items in the KITK table. First line
what you say (in caps i think), and second line the link. Might work
I just woke up, give me a while, but i think something is possible
 

Bill819

  • Hero Member
  • *****
  • Posts: 1483
    • View Profile
plugin for playing a video file on demand
« Reply #6 on: April 15, 2008, 10:24:57 am »
etellier
What you are asking for has already been done a few years ago. A search of Zabaware's site might allow you to find the link. I forget wha made the plug in although we did not call it a plug in then.
Bill
 

TechSteele

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
plugin for playing a video file on demand
« Reply #7 on: April 15, 2008, 01:50:06 pm »
I havent done much, but i did do a quick test.
Useing .lnk for the shortcuts it is possible.
But. i had to use the FULL name of the shortcut telling him.

Hal is able to open programs on its own, from the start folder.
Its built in.

I am not sure which exact plug in Bill is talking about, but a few searches and thumbing through the forum is a good idea. A lot of the older things still apply and it will give you better ideas of what is possible.

btw, if you run across the kitt plugin/brain thing, it didnt work for me, i had to delete it. just my personal opinion.
 

etellier

  • Newbie
  • *
  • Posts: 20
    • View Profile
plugin for playing a video file on demand
« Reply #8 on: April 15, 2008, 06:25:08 pm »
no, i dont use the kitt brain, ive started my own brain

the site seems to have little plugin compared to before...

ok, i will use the built in function for the appz, good idea...

Eric
« Last Edit: April 15, 2008, 06:54:22 pm by etellier »
 

Bill819

  • Hero Member
  • *****
  • Posts: 1483
    • View Profile
plugin for playing a video file on demand
« Reply #9 on: April 15, 2008, 09:19:42 pm »
TechSteele
Hi guys. No you will not find a plugin for what you want. What I am talking about was created for Hal 5.0 before Hal was redesigned to accept plugins. I am not sure who made it back then. It might have been Art or one of the other guys. It might have been who created Kitt the talking car. A search of one of two years ago should bring it to the fore.
Bill
 

lightspeed

  • Hero Member
  • *****
  • Posts: 6764
    • View Profile
plugin for playing a video file on demand
« Reply #10 on: April 18, 2008, 10:31:23 am »
hi TechSteele , instead of replacing the micheal with your name can't the word <username > be replaced instead and make it universal to say what ever name anyone has in the hal settings ? [:)]
 

TechSteele

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
plugin for playing a video file on demand
« Reply #11 on: April 18, 2008, 02:23:04 pm »
Sorry,
The Internet took a crap on me.
Yes Lightspeed, i know that command is possible, i am not exactly sure the exact syntax without looking, but i know thats an option.

It is so easy to edit these Uhp files, a person may not even want a name, or a different responce there all together.
This is what i like about VR's script/plug in, or Hal for that matter, it can be rewrote to do a dozen things.

I just looked, it is that simple: GetResponse = "Hey <UserName>, please talk to me."