diff --git a/stremio-core-protobuf/proto/stremio/core/types/stream.proto b/stremio-core-protobuf/proto/stremio/core/types/stream.proto index 5aa1b73..ee45982 100644 --- a/stremio-core-protobuf/proto/stremio/core/types/stream.proto +++ b/stremio-core-protobuf/proto/stremio/core/types/stream.proto @@ -82,5 +82,12 @@ message StreamDeepLinks { message ExternalPlayerLink { optional string download = 1; optional string streaming = 2; + optional OpenPlayerLink open_player = 3; + } + + message OpenPlayerLink { + optional string ios = 1; + optional string macos = 2; + optional string visionos = 3; } } diff --git a/stremio-core-protobuf/proto/stremio/core/types/video.proto b/stremio-core-protobuf/proto/stremio/core/types/video.proto index 4f25070..d3cc1b7 100644 --- a/stremio-core-protobuf/proto/stremio/core/types/video.proto +++ b/stremio-core-protobuf/proto/stremio/core/types/video.proto @@ -39,5 +39,12 @@ message VideoDeepLinks { message ExternalPlayerLink { optional string download = 1; optional string streaming = 2; + optional OpenPlayerLink open_player = 3; + } + + message OpenPlayerLink { + optional string ios = 1; + optional string macos = 2; + optional string visionos = 3; } } \ No newline at end of file diff --git a/stremio-core-protobuf/src/bridge/stream.rs b/stremio-core-protobuf/src/bridge/stream.rs index 6b6be88..597c29b 100644 --- a/stremio-core-protobuf/src/bridge/stream.rs +++ b/stremio-core-protobuf/src/bridge/stream.rs @@ -214,6 +214,15 @@ impl external_player: types::stream_deep_links::ExternalPlayerLink { download: deep_links.external_player.download, streaming: deep_links.external_player.streaming, + open_player: deep_links + .external_player + .open_player + .as_ref() + .map(|core_op| types::stream_deep_links::OpenPlayerLink { + ios: core_op.ios.clone(), + macos: core_op.macos.clone(), + visionos: core_op.visionos.clone(), + }), }, }, source: Some(self.source.to_protobuf::(&())), diff --git a/stremio-core-protobuf/src/model/fields/meta_details.rs b/stremio-core-protobuf/src/model/fields/meta_details.rs index 915a325..df059a3 100644 --- a/stremio-core-protobuf/src/model/fields/meta_details.rs +++ b/stremio-core-protobuf/src/model/fields/meta_details.rs @@ -154,6 +154,15 @@ impl ToProtobuf for VideoDeepLinks { .external_player .as_ref() .and_then(|ep| ep.streaming.clone()), + open_player: self.external_player.as_ref().and_then(|ep| { + ep.open_player + .as_ref() + .map(|core_op| types::video_deep_links::OpenPlayerLink { + ios: core_op.ios.clone(), + macos: core_op.macos.clone(), + visionos: core_op.visionos.clone(), + }) + }), }, } }