Skip to main content

Microsoft Silverlight

Unanswered Question SL3 MediaElementRSS Feed

(0)

DDtMM
DDtMM

Member

Member

86 points

101 Posts

SL3 MediaElement

Decided to do a test to see what has changed in SL3 and MediaElement.  I used a 10 second M4a intended to be looped.  Here are my results:

  • Markers created in XAML did not work... ones added after MediaOpened does.
  • NaturalDuration incorrect (0:0:10.032 repoted, actual 0:0:10.008).  NaturalDuration information came from file head, though head was wrong about track length.
  • If Marker was too close to end, and I tried to stop and play element, the MarkerReached event would fire, but I couldn't play the element
  • Second time Element played, beginning cut off.

DDtMM

Jonathan Shen – MSFT
Jonathan...

All-Star

All-Star

24939 points

2,425 Posts

Microsoft

Re: SL3 MediaElement

Hi DDtMM,

As a convenience, would you please share a tiny repro with us?

Best regards,

Jonathan

Jonathan Shen
Microsoft Online Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

DDtMM
DDtMM

Member

Member

86 points

101 Posts

Re: SL3 MediaElement

You can download a small Solution at http://www.DDtMM.com/mp4Test.zip.

  • The app creates three Markers in xaml that don't work.  However this seems to be by design?
  • The Natural Duration problem is a problem with the mp4 encoding (whose decision was it to use ints?)
  • The Marker thing is fickle, and will usually work even with a small time difference.
  • The Second play cutoff is pretty obvious to hear.
  • I also tried Element Binding.  I didn't expect it to work with natural duration, but I was surprised it didn't work with position.  Maybe I was doing something wrong.

 

DDtMM

kenneth.mazur
kenneth....

Member

Member

2 points

1 Posts

Re: SL3 MediaElement

DDtMM

I tried to download your small Solution at the link provided but it's not working.  Can you post it again?

Thanks

Ken

DDtMM
DDtMM

Member

Member

86 points

101 Posts

Re: SL3 MediaElement

Yeah, that's long gone, and I think all the issues are known.  I have some other interesting projects on my site with the MediaElement if you're interested in looping and such

DDtMM
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities