| Author |
Message |
shanny
Guest
|
Posted:
Thu Oct 13, 2005 8:30 pm Post subject:
How to display items in the playlist? |
|
|
Hello,
I was wondering if it's possible to have the items in a playlist show in a
drop down/list menu format so that users can choose which item they would
like to view. Right now I have a playlist set up but a viewer has no idea
what videos are available to choose from. I tried playing with the param
values as well as doing a google search with no success.
Thank you
|
|
| Back to top |
|
 |
Neil Smith [MVP Digital M
Guest
|
|
| Back to top |
|
 |
shanny
Guest
|
Posted:
Sun Oct 16, 2005 7:49 am Post subject:
Re: How to display items in the playlist? |
|
|
Thank you, Neil
You helped me before when I was trying to set a background image for the
embedded player.
From the thread you recommended, I was able to get the items from the
playlist displayed. I do have a problem, if you would be willing to assist.
After the last video is played when a title is selected from the playlist
menu I get a javascript "Invalid Procedure Call or Argument" error message.
According to the details it references this line: if (playlistItems > 0) {
as the culprit.
I tried importing my entire script into a Javascript checker, Scryptik,
since I'm less than a JS novice but I was unable to resolve on my own.
Thank you in advance for any additional help/advice.
"Neil Smith [MVP Digital Media]" wrote:
|
|
| Back to top |
|
 |
Neil Smith [MVP Digital M
Guest
|
Posted:
Mon Oct 17, 2005 12:30 am Post subject:
Re: How to display items in the playlist? |
|
|
On Sat, 15 Oct 2005 19:49:04 -0700, shanny
<shanny@discussions.microsoft.com> wrote:
| Quote: | Thank you, Neil
You helped me before when I was trying to set a background image for the
embedded player.
From the thread you recommended, I was able to get the items from the
playlist displayed. I do have a problem, if you would be willing to assist.
After the last video is played when a title is selected from the playlist
menu I get a javascript "Invalid Procedure Call or Argument" error message.
According to the details it references this line: if (playlistItems > 0) {
as the culprit.
|
That'd happen if for some reason the index passed into the function
was larger than the length of the currently loaded playlist.
Javascript uses zero-indexed array items so I'd start there, by going
alert(index) at the start of that function.
Your last item should have an index value 1 less than the length of
the playlist (eg for a 4 item playlist, the last index value should be
3 because of zero-based array indexes) so it may be worth checking the
code to see if it's assigning indexes correctly at the start - write
out the HTML to a textarea instead of using innerHTML on the DIV.
|
|
| Back to top |
|
 |
|
|
|
|