Click to See Complete Forum and Search --> : Display Song Information from Embedded Real Player


lukejduncan
04-05-2005, 05:14 PM
Hi,

My name is luke, and please let me thank anyone in advance who can help me out. I'm trying to setup a cross-browser embedded real media player that will display a clips title and author in a div that I have setup for it. It works fine in IE but I cant get it to display the clip info in safari on Mac OS X. Below I will include the code that updates the div's as well as the playlist it is loading from.

I have four div layers here that are being updated: artist, rating, title, hidden2. Hidden2 is used because of other features within the page itself.

function clipInfo()
{
var strTitle;
var strAuthor;

strTitle = document.objMediaPlayer.GetTitle();
strAuthor = document.objMediaPlayer.GetAuthor();

if(strAuthor == "")
strAuthor="error";

if(strTitle == "")
strTitle="error";

document.getElementById('title').innerHTML = strTitle;
document.getElementById('artist').innerHTML = strAuthor;

// Find out what song number we are on and grab the appropriate picture

strcurrent = document.objMediaPlayer.GetCurrentEntry();

strArtist = document.objMediaPlayer.GetEntryCopyright(strcurrent);
document.getElementById('hidden2').innerHTML = strArtist;
strRating = document.objMediaPlayer.GetEntryAbstract(strcurrent);
document.getElementById('rating').innerHTML = strRating;
image_file = document.getElementById('hidden2').innerHTML + "_1.jpg";
strlocation = "images/artist/pictures/" + image_file;
MM_swapImage('band','',strlocation,1);
}




And all the entries in the .ram playlist follow this format:

http://song_location?title="Static"&author="Pettidee"&copyright="10"&abstract="5.000"



Maybe I'm looking in all the wrong places but it seems to be that the embedding of real media player is an incredibly poorly documented process. I've been runninig in circles on this for a while so any guidance is appreciated. Thanks.

- Luke

Khalid Ali
04-05-2005, 05:33 PM
it certainly is wrong forum, you want to post in JavaScript forums