Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
media
danimation.controls
danimation.programming
devices
drm
dshow.programming
dtransform
encoder
encoder.optimization
hometheaterpc
media
media.beta
media.beta.encoder
mediacenter
mediacenter.portable
mediaplayer
music.products
musicproducer
player
player.plugins
player.skins
player.solaris
player.visualizations
player.web
sdk
server
tools
  
 
date: Mon, 1 Jun 2009 11:14:00 -0700,    group: microsoft.public.windowsmedia.player.web        back       


Controls for Media Player   
Hello,

I am trying to use WMP player to play a stream JPEG2000 format video in a 
webpage. I need to put controls like frame-by-frame advance and contrast 
adjustment on the page. Is it possible to achieve these functions in a 
browser environments?
Is there a reference of available parameters and controls?

Thanks in advance,

PK
date: Mon, 1 Jun 2009 11:14:00 -0700   author:   PK

Re: Controls for Media Player   
On Mon, 1 Jun 2009 11:14:00 -0700, PK 
wrote:

>Hello,
>
>I am trying to use WMP player to play a stream JPEG2000 format video in a 
>webpage. I need to put controls like frame-by-frame advance and contrast 
>adjustment on the page. Is it possible to achieve these functions in a 
>browser environments?

In some (limited) cases, though you would probably be better with WMV
inside ASF instead of JPEG2000 in the same container, which I'm not
sure is supported in WMP web environment.

You can use player.controls.step(1) or player.controls.step(-1) after
checking player.controls.isAvailable('step') to see if that feature
can be used with your video type. 

You'd have to either (1) play then immediately pause the video using
an event handler to ensure WMP has read the file header, or 
(2) check on each press of the control button you implement using
javascript, to see if isAvailable('step') is true.


>Is there a reference of available parameters and controls?

http://msdn.microsoft.com/en-us/library/dd562654.aspx
http://msdn.microsoft.com/en-us/library/dd562661.aspx
and other entries in the left hand menu. 

Also check the player.playStateChange and player.positionChange events

http://msdn.microsoft.com/en-us/library/dd564079.aspx
http://msdn.microsoft.com/en-us/library/dd564080.aspx
in case you need to trap for and act on those. 

In an emergency, you can monitor the playhead position using
setInterval, and check to see if the player has advanced 1 frame (e.g
20ms) and immediately issue player.controls.pause(), then use
player.controls.play() to restart playback.

HTH
Cheers - Neil
------------------------------------------------
Digital Media MVP : 2004-2009
http://mvp.support.microsoft.com/mvpfaqs
date: Mon, 01 Jun 2009 20:17:05 GMT   author:   Neil Smith [MVP Digital Media]

Re: Controls for Media Player   
Thanks Neil. It definitely helped.
Is there a way the brightness can be adjusted?
I looked into Control and Settings, but couldn't find a method or property.

PK

"Neil Smith [MVP Digital Media]" wrote:

> On Mon, 1 Jun 2009 11:14:00 -0700, PK 
> wrote:
> 
> >Hello,
> >
> >I am trying to use WMP player to play a stream JPEG2000 format video in a 
> >webpage. I need to put controls like frame-by-frame advance and contrast 
> >adjustment on the page. Is it possible to achieve these functions in a 
> >browser environments?
> 
> In some (limited) cases, though you would probably be better with WMV
> inside ASF instead of JPEG2000 in the same container, which I'm not
> sure is supported in WMP web environment.
> 
> You can use player.controls.step(1) or player.controls.step(-1) after
> checking player.controls.isAvailable('step') to see if that feature
> can be used with your video type. 
> 
> You'd have to either (1) play then immediately pause the video using
> an event handler to ensure WMP has read the file header, or 
> (2) check on each press of the control button you implement using
> javascript, to see if isAvailable('step') is true.
> 
> 
> >Is there a reference of available parameters and controls?
> 
> http://msdn.microsoft.com/en-us/library/dd562654.aspx
> http://msdn.microsoft.com/en-us/library/dd562661.aspx
> and other entries in the left hand menu. 
> 
> Also check the player.playStateChange and player.positionChange events
> 
> http://msdn.microsoft.com/en-us/library/dd564079.aspx
> http://msdn.microsoft.com/en-us/library/dd564080.aspx
> in case you need to trap for and act on those. 
> 
> In an emergency, you can monitor the playhead position using
> setInterval, and check to see if the player has advanced 1 frame (e.g
> 20ms) and immediately issue player.controls.pause(), then use
> player.controls.play() to restart playback.
> 
> HTH
> Cheers - Neil
> ------------------------------------------------
> Digital Media MVP : 2004-2009
> http://mvp.support.microsoft.com/mvpfaqs
>
date: Tue, 2 Jun 2009 12:12:04 -0700   author:   PK

Re: Controls for Media Player   
You cannot control the brightness, sound settings (other than volume)
or visualisations in an embedded WMP using javascript.

I'd have to check but it's possible some custom filters in Silverlight
may be available to achieve a similar result.

HTH
Cheers - Neil


On Tue, 2 Jun 2009 12:12:04 -0700, PK 
wrote:

>Thanks Neil. It definitely helped.
>Is there a way the brightness can be adjusted?
>I looked into Control and Settings, but couldn't find a method or property.
>
>PK
>
>"Neil Smith [MVP Digital Media]" wrote:
>
>> On Mon, 1 Jun 2009 11:14:00 -0700, PK 
>> wrote:
>> 
>> >Hello,
>> >
>> >I am trying to use WMP player to play a stream JPEG2000 format video in a 
>> >webpage. I need to put controls like frame-by-frame advance and contrast 
>> >adjustment on the page. Is it possible to achieve these functions in a 
>> >browser environments?
>> 
>> In some (limited) cases, though you would probably be better with WMV
>> inside ASF instead of JPEG2000 in the same container, which I'm not
>> sure is supported in WMP web environment.
>> 
>> You can use player.controls.step(1) or player.controls.step(-1) after
>> checking player.controls.isAvailable('step') to see if that feature
>> can be used with your video type. 
>> 
>> You'd have to either (1) play then immediately pause the video using
>> an event handler to ensure WMP has read the file header, or 
>> (2) check on each press of the control button you implement using
>> javascript, to see if isAvailable('step') is true.
>> 
>> 
>> >Is there a reference of available parameters and controls?
>> 
>> http://msdn.microsoft.com/en-us/library/dd562654.aspx
>> http://msdn.microsoft.com/en-us/library/dd562661.aspx
>> and other entries in the left hand menu. 
>> 
>> Also check the player.playStateChange and player.positionChange events
>> 
>> http://msdn.microsoft.com/en-us/library/dd564079.aspx
>> http://msdn.microsoft.com/en-us/library/dd564080.aspx
>> in case you need to trap for and act on those. 
>> 
>> In an emergency, you can monitor the playhead position using
>> setInterval, and check to see if the player has advanced 1 frame (e.g
>> 20ms) and immediately issue player.controls.pause(), then use
>> player.controls.play() to restart playback.
>> 
>> HTH
>> Cheers - Neil
>> ------------------------------------------------
>> Digital Media MVP : 2004-2009
>> http://mvp.support.microsoft.com/mvpfaqs
>> 
------------------------------------------------
Digital Media MVP : 2004-2009
http://mvp.support.microsoft.com/mvpfaqs
date: Wed, 03 Jun 2009 11:49:22 GMT   author:   Neil Smith [MVP Digital Media]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us