Skip to main content
Home Forums Silverlight Design Video and Media Video Buffering Silverlight 2
4 replies. Latest Post by roomygupta on September 1, 2008.
(0)
vijayred...
Member
0 points
8 Posts
08-27-2008 5:10 PM |
Hi All, I wrote this method in canvas_loaded. MediaPlayer.BufferingProgressChanged += new RoutedEventHandler(MediaPlayer_BufferingProgressChanged);
Hi All,
I wrote this method in canvas_loaded.
MediaPlayer.BufferingProgressChanged +=
Sometimes this method is calling after video running.
Sometimes this method is calling late(slowly). Why?
{
prBar.filler().Width = MediaElement.BufferingProgress * (150);
if (md.BufferingProgress == 0.0 || md.BufferingProgress == 1.0)
prBar.hidden();
else
prBar.show();
}
While bufferingprogress = 0 then buffering progressbar is displaying(sometime) , It's hiding after 4 or 5 sec video playing.At this moment this method is calling late.Once its called its hiding.
All the times its hiding if bufferingprogress = 0
What's the problem? Any one help please.
Thanks,
Vijay
rajesh s...
Contributor
2314 points
505 Posts
08-28-2008 10:19 AM |
have you tried deleting your browser cache?
08-28-2008 3:05 PM |
I have deleted browser cache also. But
djprod
334 points
65 Posts
08-30-2008 4:11 PM |
From the Beta 2 documentation:-
!QUOTE!
The BufferingProgressChanged event typically occurs multiple times during a download. The event will occur when the BufferingProgress value increases by 0.05 or more, compared to the last time the event was raised, and also when the value reaches 1.0.
!ENDQUOTE!
so perhaps, (sorta guessing here as i'm a SL 1.0 dev)
if (md.BufferingProgress == 0.0 || md.BufferingProgress == 1.0 && md.downloadprogress==1.0)
so that your buffering indicator stays visible until content is fully downloaded, might do the trick
Also I guess you know the only Visibility options are Visibility="Visible" or Visibility="Collapsed"
Hope this helps
regards
Marc.
roomygupta
82 points
62 Posts
09-01-2008 2:08 AM |
what is tis prBar in the code??
and can you please let me know how we can give diferent types of buffering UI in our projet??