Skip to content

Commit

Permalink
Merge pull request #735 from Stremio/feat/stream-item-state-size-offset
Browse files Browse the repository at this point in the history
Add subtitles size and offset for StreamItemState
  • Loading branch information
elpiel authored Nov 14, 2024
2 parents 70684d0 + 9f746a5 commit 47059b1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/types/streams/streams_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ pub struct StreamItemState {
/// In milliseconds
#[serde(skip_serializing_if = "Option::is_none")]
pub subtitle_delay: Option<i64>,
#[serde(default, skip_serializing_if = "Option::is_none")]
/// Subtitles size, platform dependent units
pub subtitle_size: Option<u64>,
#[serde(default, skip_serializing_if = "Option::is_none")]
/// Vertical offset of the subtitles, platform dependent units
pub subtitle_offset: Option<u64>,
#[serde(skip_serializing_if = "Option::is_none")]
pub audio_track: Option<AudioTrack>,
/// In milliseconds
Expand Down

0 comments on commit 47059b1

Please sign in to comment.