Retrieving Album title name WMA file

  • Thread starter Charles Ezzell \(MSTF\)
  • Start date
C

Charles Ezzell \(MSTF\)

Can anyone help me here? I need to be able to retrieve the Album Title from
a WMA file via jscript? I could easily do this in any other language (C++),
but trying to get this to work on a web site is driving me crazy. Getting
the song title is simple (Player.currentMedia.name), but I'm having no luck.
I need to be able to do this for my church to satisfy some copyright issues
(we have permission to stream as long as we display the CD and song title
with a proper statement and provide no directly links to the files).

TIA,
Charles
 
M

Mike Mueller

Use an asx file to retrieve the wma file, and populate the
fields in the asx file to give the information needed
sample:
<asx version = "3.0">
<entry>
<ref href = http://www.domain.com/album.wma/>
<Title>Album Title</Title>
<Author>Album Author</Author>
<Copyright>2005</Copyright>
</entry>
</asx>


"Charles Ezzell (MSTF)" <[email protected]>
wrote in message
: Can anyone help me here? I need to be able to retrieve the
Album Title from
: a WMA file via jscript? I could easily do this in any
other language (C++),
: but trying to get this to work on a web site is driving me
crazy. Getting
: the song title is simple (Player.currentMedia.name), but
I'm having no luck.
: I need to be able to do this for my church to satisfy some
copyright issues
: (we have permission to stream as long as we display the CD
and song title
: with a proper statement and provide no directly links to
the files).
:
: TIA,
: Charles
:
:
 
C

Charles Ezzell \(MSTF\)

Tried that, but no luck. IE - I can't seem to get those parameters back out.

For instance, if I set
txtCDName.value=Player.currentMedia.Album;

I get back "undefined"

Not nice <G>

I'm using an invisible player with custom controls, which all works fine.
 
T

Thomas A. Rowe

Have you tried post this issue to the Windows Media Newsgroup?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
C

Charles Ezzell \(MSTF\)

My next way to go. I was hoping someone here would know, as I doubt many of
them do similiar. But, it's possible.

Tks,
Charles
 
M

Mike Mueller

Something else I just caught was this portion-
"no directly links to the files"
which presents an issue when using the http protocal for
media.

A better idea which will reduces the link issue and should
satisfy your other needs is to use Windows Media Server for
the streaming. It will read the attributes from a properly
tagged wma or mp3 file and display that info on the media
player client. It will also reduce the buffering as it will
be a true stream as opposed to a download and play that the
http protocal does

Mike


"Charles Ezzell (MSTF)" <[email protected]>
wrote in message
: Tried that, but no luck. IE - I can't seem to get those
parameters back out.
:
: For instance, if I set
: txtCDName.value=Player.currentMedia.Album;
:
: I get back "undefined"
:
: Not nice <G>
:
: I'm using an invisible player with custom controls, which
all works fine.
:
: : > Use an asx file to retrieve the wma file, and populate
the
: > fields in the asx file to give the information needed
: > sample:
: > <asx version = "3.0">
: > <entry>
: > <ref href = http://www.domain.com/album.wma/>
: > <Title>Album Title</Title>
: > <Author>Album Author</Author>
: > <Copyright>2005</Copyright>
: > </entry>
: > </asx>
: >
: >
: > "Charles Ezzell (MSTF)" <[email protected]>
: > wrote in message
: > : > : Can anyone help me here? I need to be able to retrieve
the
: > Album Title from
: > : a WMA file via jscript? I could easily do this in any
: > other language (C++),
: > : but trying to get this to work on a web site is
driving me
: > crazy. Getting
: > : the song title is simple (Player.currentMedia.name),
but
: > I'm having no luck.
: > : I need to be able to do this for my church to satisfy
some
: > copyright issues
: > : (we have permission to stream as long as we display
the CD
: > and song title
: > : with a proper statement and provide no directly links
to
: > the files).
: > :
: > : TIA,
: > : Charles
: > :
: > :
: >
: >
:
:
 
C

Charles Ezzell \(MSTF\)

the asx points to a Windows Media server (mms://), so no problem on that
end.
I need to use an invisible object to satisfy one of the album producers we
are working with, plus to reduce 'window" space on clients.

Solution solved (I really thought I had tried this before):
txtCDName.value=Player.currentMedia.getItemInfo("WM/AlbumTitle");

and heaven help you if you misspell something <G>

the asx only needs the <Ref href = "mms://server/filename.wma"/> entries.
Before I'm done, it should have about 10 or so songs in there, as long as
the entries are properly encoded into the wma.

I'll probably move the asx to the windows media server before I'm done also.

Tks,
Charles
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top