I was wondering if anyone could help me write the method/tell me what is wrong with my buffer method for a video playing Silverlight application.
I do not have the code on this system but will post it later when I get back tonight, however my psuedocode for my method is basically:
progressbar1 is the name of my progress bar object.
Start "bufferTimer" and set the timer to "tick" every 50 milliseconds.
Inside the timerTick method
progressbar1.value = mediaelement1.BufferingProgress;
Please let me know if that is the correct way to code the method or not. My results when running the application is a near instant full buffer load, however when testing on other systems, the buffer bar always goes from 0 to 50 and then 50 to 100. (I do
not believe the buffering should be that consistent).
That's the exact code I have in my .cs class. Is that how a buffer progress bar should be coded? Using YouTube as an example, when a video is selected, the UI Progress bar of the video player has two main features, the first is to display the time elapsed, the second is to show how much of the buffer has loaded. I am basically trying to create the 2nd feature, but, for now, want to create a seperate progress bar for the buffer.