core: Adding data to the buffer should reactivate the stream.

This commit is contained in:
David Wendt 2024-01-10 21:12:06 -05:00 committed by kmeisthax
parent 9f70fab5b5
commit 092e20a1be
1 changed files with 2 additions and 0 deletions

View File

@ -343,6 +343,8 @@ impl<'gc> NetStream<'gc> {
pub fn load_buffer(self, context: &mut UpdateContext<'_, 'gc>, data: &mut Vec<u8>) { pub fn load_buffer(self, context: &mut UpdateContext<'_, 'gc>, data: &mut Vec<u8>) {
self.0.write(context.gc_context).buffer.append(data); self.0.write(context.gc_context).buffer.append(data);
StreamManager::activate(context, self);
// NOTE: The onMetaData event triggers before this event in Flash due to its streaming behavior. // NOTE: The onMetaData event triggers before this event in Flash due to its streaming behavior.
self.trigger_status_event( self.trigger_status_event(
context, context,