Skip to content

Commit 7ae3337

Browse files
nikitosharlancCopilot
authored
fix on_hls message (#179)
* fix on_hls message * Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Remove skip_serializing from OnHls segment Remove skip_serializing attribute from segment field --------- Co-authored-by: HarlanC <harlanc@foxmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 773817b commit 7ae3337

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

library/streamhub/src/define.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,10 @@ pub enum StreamHubEventMessage {
256256
identifier: StreamIdentifier,
257257
info: PublisherInfo,
258258
},
259+
OnHls {
260+
identifier: StreamIdentifier,
261+
segment: Segment,
262+
},
259263
NotSupport {},
260264
}
261265

@@ -354,6 +358,10 @@ impl StreamHubEvent {
354358
identifier: identifier.clone(),
355359
info: info.clone(),
356360
},
361+
StreamHubEvent::OnHls { identifier, segment } => StreamHubEventMessage::OnHls {
362+
identifier: identifier.clone(),
363+
segment: segment.clone(),
364+
},
357365
_ => StreamHubEventMessage::NotSupport {},
358366
}
359367
}
@@ -478,4 +486,4 @@ impl Segment {
478486
is_eof,
479487
}
480488
}
481-
}
489+
}

0 commit comments

Comments
 (0)