Posted By: DCMonkey | Apr 23rd @ 10:47 AM
page 1 of 1
Comments: 2 | Views: 472
DCMonkey
DCMonkey
Monkey see, monkey do, monkey will destroy you!
I've noticed that when you pause a video and then start it again using the button that pops up in the middle of the video, the buffering animation/percentage thingy shows up and there is always a stutter as it plays the first second or so twice. Pressing the pause/play button in the lower left doesn't do this.

What's up with that?
Duncanma
Duncanma
Just Coding for Fun...
wow.

The double-buffering, buffering after a pause, is a problem we've had since day one of using this player. We didn't write it, but it isn't all that much code and we couldn't find any reason for this. No one had noticed that it didn't happen if you used the lower left button, only the center button, and with that info it was the work of a few minutes to figure out what was happening.

Clicking that button fired this code

<br>        public void CenterPlay()<br>        {<br>            btnPlay.IsChecked = true;<br>            btnPlay_Checked(this, null);<br>        }<br>


I had never looked at that routine before, but the intent is pretty clear ... swap the toggle button in the lower left (the play/pause button) and fire the event that it has been checked. Well, wouldn't just 'IsChecked=true' do that? Yep, turns out that second line is unnecessary and has now been removed. Bring up a video and let me know if you are still seeing this issue!



page 1 of 1
Comments: 2 | Views: 472
Microsoft Communities