Skip to main content

Microsoft Silverlight

Answered Question Media Element gets Exception from HRESULT: 0x8898050C when trying to change SpeedRatioRSS Feed

(0)

Ryppl
Ryppl

Member

Member

0 points

8 Posts

Media Element gets Exception from HRESULT: 0x8898050C when trying to change SpeedRatio

Hi,

I'm using VS 2008, no service pack, and Silverlight 1.0 in a WPF application and a MediaElement with images simulating buttons.

When a video is being downloaded from a web server (http://... or mms://...) if I try to modify the Position property or the SpeedRatio property I receive the Exception from HRESULT: 0x8898050C.  However, until this afternoon, only one video did not behave this way.  It worked fine (from the same web server).  Then today, as I was browsing this forum and and also debugging, setting a breakpoint on a running video (xxx_MediaFailed event) after about 13 minutes into the video (of around 50 minutes total) the problem went away.  Now if I play that video it works fine (FF and Rewind).  This leads me to believe that there is a certain point in the buffering or downloading process at which the system can then handle Position modifications or SpeedRatio modifications.  I don't know if that is indicative of the video being buffered onto my hard drive or if there is some other explanation.

So the ultimate questions are, "Is there a property that will let me know when it is okay to attempt Position or SpeedRatio modifications, possibly boolean, or a percentage of the buffering process completed so that I can conditionally allow those actions?" and "Can I change the buffering characteristics so that I can start using those actions sooner?".

Thanks,

JT
Ryppl.com

Yi-Lun Luo - MSFT
Yi-Lun L...

All-Star

All-Star

25052 points

2,747 Posts

Answered Question

Re: Media Element gets Exception from HRESULT: 0x8898050C when trying to change SpeedRatio

Hello, is this WPF or Silverlight? Currently Silverlight doesn't support Fast Forward/Rewind. So it seems that you're using WPF. If so, please ask your question on the WPF forum. Anyway, there's a CanSeek property of MediaElement in Silverlight. But its' not available in WPF. You should always try to seek after the media is opened (when MediaOpened event is fired).

shanaolanxing - I'll transfer to the Windows Azure team, and will have limited time to participate in the Silverlight forum. Apologize if I don't answer your questions in time.

Ryppl
Ryppl

Member

Member

0 points

8 Posts

Re: Media Element gets Exception from HRESULT: 0x8898050C when trying to change SpeedRatio

Sorry.  I didn't realize the MediaElement was different in Silverlight and WPF.  Doesn't that make code less portable?  I'm assuming that if the media is playing that the MediaOpened event has fired, but I guess it's bad to assume.  I will look into what you said and also consult the WPF forum.

Thanks,

JT
Ryppl.com

Ryppl
Ryppl

Member

Member

0 points

8 Posts

Answered Question

Re: Media Element gets Exception from HRESULT: 0x8898050C when trying to change SpeedRatio

Even though this relates to WPF's MediaElement I thought I would let you know what I found.  Apparently, the ability to change these properties depends on having the full file downloaded.  I implemented a way of seeing the .DownloadProgress property and when the value reaches 1.0 (100%) then I am able to modify the properties and then gain the FF and REW emulation and can skip to different positions in the media.

HTH,

JT
Ryppl.com
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities