VoxCommando Forum

Help and Support (Using VoxCommando) => VoxCommando Basics and Core Features => Topic started by: bkboudreau on August 20, 2011, 01:10:06 PM

Title: Out of index error
Post by: bkboudreau on August 20, 2011, 01:10:06 PM
Hello,

I created a command to try and play music videos however I get the following error when I try to use it:

System.Argument.OutOfRangeExeption: Index was out of range. Must be non negative and less than the size of the collection.

I've probably set something up incorrectly so I have attached what I did as screenshots.  I also verified that the videos I was trying to test with were in the payload file.

Thanks,
Brad
Title: Re: Out of index error
Post by: Kalle on August 20, 2011, 01:48:58 PM
Quote from: bkboudreau on August 20, 2011, 01:10:06 PM
Hello,

I created a command to try and play music videos however I get the following error when I try to use it:

System.Argument.OutOfRangeExeption: Index was out of range. Must be non negative and less than the size of the collection.

I've probably set something up incorrectly so I have attached what I did as screenshots.  I also verified that the videos I was trying to test with were in the payload file.

Thanks,
Brad
Hi Brad,
do you have GenXML for xbmc? and what shows it? see attachment pic

Kalle
Title: Re: Out of index error
Post by: bkboudreau on August 20, 2011, 02:03:38 PM
Hello Kalle,

I've attached that screenshot (just regenerated the music video part for the shot).

Thanks,
Brad
Title: Re: Out of index error
Post by: Kalle on August 20, 2011, 02:12:54 PM
Quote from: bkboudreau on August 20, 2011, 02:03:38 PM
Hello Kalle,

I've attached that screenshot (just regenerated the music video part for the shot).

Thanks,
Brad
Hmm..., ok I've no idea for the moment, sorry I'm bussy.

Kalle
Title: Re: Out of index error
Post by: bkboudreau on August 20, 2011, 02:56:26 PM
No worries, I greatly appreciate the help!
Title: Re: Out of index error
Post by: jitterjames on August 20, 2011, 04:46:30 PM
I think you forgot to add actions to the macro.  You need to double click the command icon (lightning bolt) to open the command builder.
Title: Re: Out of index error
Post by: bkboudreau on August 20, 2011, 05:09:15 PM
That would be what I missed.  Now XBMC throws an error but at least my command is doing something.

Thanks again,
Brad
Title: Re: Out of index error
Post by: jitterjames on August 20, 2011, 06:36:51 PM
this command was harder to create than you might think.  This is because the http api for xbmc was deprecated before certain bugs were fixed.

anyway, I found a workaround, try it out by dragging the attached file into your command tree.
Title: Re: Out of index error
Post by: bkboudreau on August 21, 2011, 04:15:31 PM
I tried dragging that file into the command list editor as well as every line under my Music Video command set however nothing appeared to happen (cursor showed the "can't do it" icon).  I also tried dragging the file into the main left pane that logs what is happening with the same result as before.

Am I trying to drag the file into the wrong area?

Thanks,
Brad
Title: Re: Out of index error
Post by: Kalle on August 21, 2011, 05:03:00 PM
Quote from: bkboudreau on August 21, 2011, 04:15:31 PM
I tried dragging that file into the command list editor as well as every line under my Music Video command set however nothing appeared to happen (cursor showed the "can't do it" icon).  I also tried dragging the file into the main left pane that logs what is happening with the same result as before.

I'm I trying to drag the file into the wrong area?

Thanks,
Brad
Hi brad, click in VC to edit, and then you can see the command edit window. On upper right click on "open a xml.bin" icon and browse to your downloaded xbmc-file and click open. Drag and drop the showing group to the left (commandtree), click in the upper left on "save all" and restart VC.

Kalle
Title: Re: Out of index error
Post by: bkboudreau on August 21, 2011, 06:21:55 PM
Very cool, I got the commands imported successfully.

The issue I am finding now is that when I try to get a music video running the TTS repeats the correct video back but XBMC either browses to the root of my video library or throws an error "One or more items failed to play".  I am doubtful this is an issue with VC but just in case I have attached the XBMC logfile.  I have also attached a screenshot of what the OSD shows when I ask for a video, it doesn't always display strings that long (sometimes it only shows "</field>").

Thanks again,
Brad
Title: Re: Out of index error
Post by: Kalle on August 21, 2011, 06:47:41 PM
Quote from: bkboudreau on August 21, 2011, 06:21:55 PM
Very cool, I got the commands imported successfully.

The issue I am finding now is that when I try to get a music video running the TTS repeats the correct video back but XBMC either browses to the root of my video library or throws an error "One or more items failed to play".  I am doubtful this is an issue with VC but just in case I have attached the XBMC logfile.  I have also attached a screenshot of what the OSD shows when I ask for a video, it doesn't always display strings that long (sometimes it only shows "</field>").

Thanks again,
Brad
Ok, the command works on basics. For the finetuning please wait of a response from james or wanilton, the specialists of XMBC. Do you have genXBMC.xml generated after import the new command? Please test it.

Kalle
Title: Re: Out of index error
Post by: bkboudreau on August 21, 2011, 08:31:15 PM
I just regenerated the entire library and am seeing the same behaviour.

Thanks,
Brad
Title: Re: Out of index error
Post by: jitterjames on August 21, 2011, 09:54:13 PM
I need to look at this in the morning, when I am sober :)
Title: Re: Out of index error
Post by: jitterjames on August 21, 2011, 10:15:22 PM
I need you to issue the command and then go back to the main window and rollover the command

XBMC.send  queryvideodatabase....

and tell me what the popup text says.  See the attached for what I get:

As you can see it is correctly returning the path to the file for the music video I requested, then we can ask XBMC to play the file.
Title: Re: Out of index error
Post by: bkboudreau on August 21, 2011, 10:38:21 PM
Here's what I see.

Thanks again,
Brad
Title: Re: Out of index error
Post by: jitterjames on August 21, 2011, 11:39:51 PM
that's a problem.  there should be something between <field> and </field>

anyone else tried this?  It works for me.
Title: Re: Out of index error
Post by: jitterjames on August 21, 2011, 11:41:25 PM
what version of xbmc are you using?
Title: Re: Out of index error
Post by: jitterjames on August 21, 2011, 11:47:05 PM
Quote from: Kalle on August 21, 2011, 05:03:00 PM
Hi brad, click in VC to edit, and then you can see the command edit window. On upper right click on "open a xml.bin" icon and browse to your downloaded xbmc-file and click open. Drag and drop the showing group to the left (commandtree), click in the upper left on "save all" and restart VC.

Kalle

http://www.youtube.com/watch?v=L6NNvKGtbOU
Title: Re: Out of index error
Post by: Kalle on August 22, 2011, 04:17:50 AM
Quote from: jitterjames on August 21, 2011, 11:47:05 PM
http://www.youtube.com/watch?v=L6NNvKGtbOU
Aaaahhhhh  :bonk :bonk :bonk :bonk :bonk
thats the easy way :D

Thanks Kalle
Title: Re: Out of index error
Post by: jitterjames on August 22, 2011, 12:07:07 PM
I tested the xml that I uploaded yesterday on XBMC 10.1 and it didn't work.  It seems that the database has changed so I adjusted the command to work with version 10.1

Make sure to remove the old version of the command since it uses the same phrases and you won't know which one gets executed.

Title: Re: Out of index error
Post by: jitterjames on August 22, 2011, 12:51:41 PM
OK.  The xml in the previous post should work on 10.1 or on more recent builds (nightlies) of XBMC !
Title: Re: Out of index error
Post by: bkboudreau on August 22, 2011, 05:52:26 PM
It appears to work.  I ran into a couple issues where my HTPC (or receiver) decided to ignore the audio on the HDMI which is never helpful with testing.  The first time I tried this the video played without audio (due to issue in my previous sentence).. after a reboot and receiver power cycle I issued the command and this time I got the same error I had witnessed in the earlier version of the command.  The odd part was that when I tried to manually play a video from XBMC it would either ignore me or throw the error I posted about earlier.  I noticed that when I manually tried to run a video in XBMC, VC would log the attempt and then immediately log a playback stop.

Once I restarted both VC and XBMC everything looks like it is working perfectly.  If I happen to see the odd behaviour again I will try to capture everything in case you want to see it.

Thanks to everyone for all the help!
Title: Re: Out of index error
Post by: jitterjames on August 22, 2011, 10:18:15 PM
depending on your audio setup, you might want to avoid using the TTS in this command right before launching video in case it is causing your receiver to switch modes suddenly or creating some other conflict.  Otherwise, the problems you are having probably have nothing to do with VoxCommando.  I never had any problems when my setup was all analog, but with my digital receiver whenever it goes into a full digital mode (e.g. DTS)  there are some complications with sound and TTS.

I can't use TTS when watching a movie with DTS sound, but it is fine with stereo music playing.
Title: Re: Out of index error
Post by: jitterjames on August 23, 2011, 11:48:04 AM
Now you've got me interested in setting up a nice music video collection.  My problem though is that I can't figure out a way to display Music Video thumbs in a nice way.

I'm using MQ2 and MQ3 and the thumbs are begin generated from wide screen shots and then displayed in a vertial (portrait) format.

Does anyone have suggestions for this?  I have tried all the view settings in MQ skin and no matter which one I choose it seems to always assume the thumbnail will be in portrait mode, like a DVD cover.  I would like to be able to view the thumbs in a format similar to the way TV episode previews are shown. (4:3 or 16:9 images)