avranju / AudioPlayerWithCustomStream

Sample showing how you can play in-memory audio streams in Windows 8.
Apache License 2.0
6 stars 2 forks source link

stream playback failed when debugging js #1

Open ChrisGuzak opened 10 years ago

ChrisGuzak commented 10 years ago

I noticed this when testing my changes... when I set a breakpoint on this line in the JS debugger

XORMediaSource.js // get the metadata we need var helper = new MFUtils.MFAttributesHelper(self.memoryStream, data.mimeType);

and then hit F5 to continue the playback failed. if I removed the break point and ran the app it works. so there appears to be some timing related issue if the program is halted in the debugger at this point.

avranju commented 10 years ago

Yes, I encountered this issue a few times myself. I am thinking this is probably because we're stepping through code in the debugger resulting in some timeout triggering in the player (maybe it gives up if the stream doesn't respond with data after a specific period of time?). The issue doesn't seem to occur during regular execution.