Re: access local media through html [2 of 2]



On Tue, 27 Dec 2005 07:27:02 -0800, John_estudio
<Johnestudio@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

>> On Mon, 26 Dec 2005 22:00:02 -0800, John_estudio
>> <John_estudio@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>>
>> >I'd like to preload the audio content (.mp3 files) onto SD cards and have a
>> >local web server supply the users with html pages that direct them to the
>> >locally stored playlists (.asx files).

Actually, that works - although it shouldn't for local access :

At least to the extent that you can do this (in WM9 and PIE on a
WM2003 device) :

Player.FileName="\\Storage Card\\Audio\\Cant_stop.wma";

This is Javascript, so the backslashes here are doubled up. Probably
if you hosted this as a WM10 player control (object tag) you'd use
single slashes and the WM10 object code, eg :

<object id="MediaPlayer"
classid="clsid:6bf52a52-394a-11d3-b153-00c04f79faa6"
type="application/x-oleobject" width="1" height="1">
<param name="url" value="\Storage Card\Audio\Cant_stop.wma" />
</object>


I don't have a WM5 PDA with WMP10 to test here so thats as far as I
csan go with this. If they "upgradeed" the security in any way then
you'd probably lose the local file access. I would just stick to
providing file names rather than ASX files for now.

It would be simple enough to provide an embedded player page generated
by script on the server (ASP or PHP or ...), and use a simple
navigation link to the next page (Forward <-> Backward) which
generates a new page with the next media file to use generated from a
database.

>> >First, I cannot get the .asx playlist to work properly through html on the
>> >ppc, though it works fine in a standard PC IE browser. When it loads on the
>> >ppc all I get is a blank screen. The .asx works correctly when loaded
>> >directly through Windows Media Player on the ppc. I installed wmnall.exe but
>> >it didn't make any difference. I'm using WMP 10 Mobile ver 10.1 Build 14366
>>
>> So you were using embedding code to handle that ASX within the
>> browser? WMP10 comes with a new OCX for PPC.

[^^ See above ]

>I think I understand. Here's what I'd like to have happen - and perhaps you
>can tell me the best way to do it. I'd like the user to click on the .asx
>file (either by shortcut or by html link) and then have WMP open up and show
>the embedded album art for the .mp3 currently playing,

You could generate and store that album art on the web server, which
would be tthe simplest way. You'd just upload a media file name and
GIF reference into the database, and pull them down in a matched
manner depending on the page you're showing - one GIF URL and media
file name per web page -

Append the media file name to the \Storage Card\Audio\ path, and use
http://myserver.com/assets/ appended with the GIF or JPEG file name
(preferably with width and height). Make the media player 1x1 pixel,
maybe adding a <param name="uimode" value="none" /> for audio files
and you're pretty mch there.

> as well as the list of
>tracks available in the .asx file. If possible, when its done playing, I'd
>like to have the player close

Ahh scripting WM10 on PPC ? Can't help you there (refers to lack of
device for testing). There are playStateChange events fired by the
WM6.4 player control used by the wmnall.exe plugin, I'd expect that to
work too for the WM10 player control. Whether the browser can trap
those events is another matter entirely.

> and the handheld would go back to the list of
>links for that 'zone'. I don't think the player needs to be embedded

It *may* be, because if you [can] fire the standalone player from a
link, because the PDA screen's so small, everything's full screen. So
the player would cover the PIE screen and confusre your presumably
novice PDA users.

>> >Second, I cannot get the html file served over the web to reference the
>> >locally stored .asx file.

I think probably you just need your paths as above rather than using
forward slashes. It's possible you might want to URL encode the spaces
to %20 in path names, but afaik that doesn't make a difference to
pocket IE.

Cheers - Neil
.



Relevant Pages

  • Re: Help! - Controlling Embedded Video
    ... I have an embedded video in an HTML page with no controls (but the user ... please acquire a handle to the player object ... Looking at your embedding code below, it's about 10 years out of date ...
    (microsoft.public.windowsmedia.player)
  • Re: web site over two hundred titles
    ... The viewers cant or dont have the knowledge to download to media player 11 ... Using links to http streaming doesn't allow them to play ... you need to configure the web server to send Headers ...
    (microsoft.public.windowsmedia.player.web)
  • Re: Accessing HTML embeded objects with Internet Explorer ActiveX.
    ... Since I am controlling how the HTML is generated, I also know what file ( ... flash, wmv etc) is being embeded into the HTML file. ... create separte code paths which are specific for each file format. ... Media Player or QuickTime respective events. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How read file properties using Windows Media Player control in Win app?
    ... That's definitely not a "form in a windows app", it's an HTML page. ... In addition, there's no "media" object of the player ActiveX control, ... load it to begin with. ...
    (microsoft.public.windowsmedia.player)
  • Re: Help with windows Media Scripts
    ... Do you know if this will work with player 6.4 classid? ... >> Having big problems with windows media URL scripts. ... >> with all the html placed on the cd as well. ... >> Outgoing mail is certified Virus Free. ...
    (microsoft.public.windowsmedia)

Loading