Skip to main content

Microsoft Silverlight

Answered Question Silverlight transition SLOW while Windows Media Player is FAST?RSS Feed

(0)

groatsey
groatsey

Member

Member

1 points

11 Posts

Silverlight transition SLOW while Windows Media Player is FAST?

Live Stream switching durations issue...

I am experiencing some issues with live stream change responsiveness.

To isolate this issue I have a simple test project which points to an OnDemand publishing point which in turn points to the playlist (below).

The xaml media element points to this (<MediaElement x:Name="VideoElement" Source="mms://server:49000/testODPP" BufferingTime="00:00:00.000"/>)

<?wsx version="1.0"?>
<smil>
        <media id = "1" dur="2" src="http://server:49000/SLLiveStream1"/>
        <media id = "2" dur="2" src="http://server:49000/SLLiveStream2"/>
        <media id = "3" dur="2" src="http://server:49000/SLLiveStream1"/>
        <media id = "4" dur="2" src="http://server:49000/SLLiveStream2"/>
</smil>

The first media item plays for 2 seconds in the Silverlight 2.0 player, however, the following media items linger for up to 8 seconds each.

Windows Media Player changes on time!

Is it possible I am missing some basic buffer configurations for live streaming?

Any help would be greatfully appreciated.

Thanks

Jamie.

Jonathan Shen – MSFT
Jonathan...

All-Star

All-Star

24939 points

2,425 Posts

Microsoft
Answered Question

Re: Silverlight transition SLOW while Windows Media Player is FAST?

Hi Jamie,

seq:

The seq element defines a time container that plays each media element in sequence, one right after the other. 

Please take this sample for a test.

<?wsx version="1.0"?>
<smil>
  <seq>
   <media src="c:\wmpub\wmroot\Clip_1.wmv" dur="10s" />
   <media src="c:\wmpub\wmroot\Clip_2.wmv" dur="10s" />
   <media src="c:\wmpub\wmroot\Clip_3.wmv" dur="10s" />
  </seq>
</smil>

By the way, if your media length is less than dur value, it will play its actual length.  http://msdn.microsoft.com/en-us/library/ms744552(VS.85).aspx

For more information, please take a look at these documents.

http://msdn.microsoft.com/en-us/library/ms752505(VS.85).aspx

http://msdn.microsoft.com/en-us/library/ms752507(VS.85).aspx

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.

groatsey
groatsey

Member

Member

1 points

11 Posts

Re: Silverlight transition SLOW while Windows Media Player is FAST?

Thanks Jonathan,

I have read the articles you highlighted. 

When I play the sample you gave me to test, using durations of '2s', it stalls and is slow to transition while Windows Mediaplayer is flawless. Is Silverlight not suitable for short transitions like this? 

 Jamie

 

Jonathan Shen – MSFT
Jonathan...

All-Star

All-Star

24939 points

2,425 Posts

Microsoft

Re: Silverlight transition SLOW while Windows Media Player is FAST?

Hi Jamie,

Currently, Silvelight only supports a subset of SSPL. Please change your list item like this and have a try.

<media id="video1" src="clip1.wmv" mce_src="clip1.wmv" clipBegin="0s" clipEnd="5s" />
Please take a look at this http://msdn.microsoft.com/en-us/library/cc645037(VS.95).aspx.

Also, here is another wonderful link for IIS Soomth Streaming.

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.

groatsey
groatsey

Member

Member

1 points

11 Posts

Re: Silverlight transition SLOW while Windows Media Player is FAST?

Hi Jonathan

Thanks for your help.

Unfortunatley Silverlight is still very sluggish and jerky, lingering for up to 8 seconds for each change while Windows Media Player is flawless.

Q1. I have spent a great deal of time on this project and would appreciate it if you could confirm, if and when, Silverlight is meant to match Windows Media Player's flawless clip changing for the example playlist below or even basic switching between live streams:

 <?wsx version="1.0"?>
<smil>
 <seq>
  <media id="video1" src="c:\wmpub\wmroot\racecar_300.wmv" mce_src="c:\wmpub\wmroot\racecar_300.wmv" clipBegin="0s" clipEnd="2s" />
  <media id="video2" src="c:\wmpub\wmroot\snowboard_300.wmv" mce_src="c:\wmpub\wmroot\snowboard_300.wmv" clipBegin="2s" clipEnd="4s" />
  <media id="video3" src="c:\wmpub\wmroot\racecar_300.wmv" mce_src="c:\wmpub\wmroot\racecar_300.wmv" clipBegin="4s" clipEnd="6s" />
  <media id="video4" src="c:\wmpub\wmroot\snowboard_300.wmv" mce_src="c:\wmpub\wmroot\snowboard_300.wmv" clipBegin="6s" clipEnd="8s" />
  <media id="video5" src="c:\wmpub\wmroot\racecar_300.wmv" mce_src="c:\wmpub\wmroot\racecar_300.wmv" clipBegin="8s" clipEnd="10s" />
 </seq>
</smil>

Q2.  I already have working examples of Smooth Streaming and Live Smooth Streaming. It looks like a very smart technology. The information I have to date, suggests Smooth Streaming does not support playlists/clip changes for now. If you have any further news on this then that would be great.

Best Regards

Jamie

 

Jonathan Shen – MSFT
Jonathan...

All-Star

All-Star

24939 points

2,425 Posts

Microsoft

Re: Silverlight transition SLOW while Windows Media Player is FAST?

Hi Jamie,

groatsey:
Q1. I have spent a great deal of time on this project and would appreciate it if you could confirm, if and when, Silverlight is meant to match Windows Media Player's flawless clip changing for the example playlist below or even basic switching between live streams:

How about the conditions on Silverlight 3? 

groatsey:
Q2.  I already have working examples of Smooth Streaming and Live Smooth Streaming. It looks like a very smart technology. The information I have to date, suggests Smooth Streaming does not support playlists/clip changes for now. If you have any further news on this then that would be great.

As far as I know,playlists is not supported on Smooth Streaming. 

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.

groatsey
groatsey

Member

Member

1 points

11 Posts

Re: Silverlight transition SLOW while Windows Media Player is FAST?

Hi Jonathan

I have upgraded to Visual Studio Silverlight 3 Tools etc and purchased the Expression Studio 3 Suite as you suggested.

Can't believe that it is actually slower. On searching the net I see someone else experiencing slower playback:

http://silverlight.net/forums/p/113255/258611.aspx

Any suggestions?

Jamie

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities