Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/StreamItemState subtitles size and offset #63

Merged
merged 3 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion stremio-core-kotlin/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stremio-core-kotlin"
version = "1.3.0"
version = "1.3.1"
authors = ["Smart Code OOD"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion stremio-core-kotlin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ allprojects {

```gradle
dependencies {
implementation 'com.github.Stremio:stremio-core-kotlin:1.3.0'
implementation 'com.github.Stremio:stremio-core-kotlin:1.3.1'
}
```
2 changes: 1 addition & 1 deletion stremio-core-kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import com.google.protobuf.gradle.*

group = "com.github.Stremio"
version = "1.3.0"
version = "1.3.1"

allprojects {
repositories {
Expand Down
10 changes: 6 additions & 4 deletions stremio-core-protobuf/proto/stremio/core/models/player.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ message Player {
message StreamState {
optional SubtitleTrack subtitle_track = 1;
optional int64 subtitle_delay = 2;
optional AudioTrack audio_track = 3;
optional int64 audio_delay = 4;
optional float playback_speed = 5;
optional string player_type = 6;
optional uint64 subtitle_size = 3;
optional uint64 subtitle_offset = 4;
optional AudioTrack audio_track = 5;
optional int64 audio_delay = 6;
optional float playback_speed = 7;
optional string player_type = 8;
}
message SubtitleTrack {
required string id = 1;
Expand Down
4 changes: 4 additions & 0 deletions stremio-core-protobuf/src/model/fields/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ impl FromProtobuf<StreamItemState> for models::player::StreamState {
StreamItemState {
subtitle_track: self.subtitle_track.from_protobuf(),
subtitle_delay: self.subtitle_delay.to_owned(),
subtitle_size: self.subtitle_size.to_owned(),
subtitle_offset: self.subtitle_offset.to_owned(),
audio_track: self.audio_track.from_protobuf(),
audio_delay: self.audio_delay.to_owned(),
playback_speed: self.playback_speed.to_owned(),
Expand Down Expand Up @@ -79,6 +81,8 @@ impl ToProtobuf<models::player::StreamState, ()> for StreamItemState {
models::player::StreamState {
subtitle_track: self.subtitle_track.to_protobuf::<E>(&()),
subtitle_delay: self.subtitle_delay.to_owned(),
subtitle_size: self.subtitle_size.to_owned(),
subtitle_offset: self.subtitle_offset.to_owned(),
audio_track: self.audio_track.to_protobuf::<E>(&()),
audio_delay: self.audio_delay.to_owned(),
playback_speed: self.playback_speed.to_owned(),
Expand Down
Loading