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

Fix external player link streaming server url #557

Merged
merged 5 commits into from
Nov 20, 2023

Conversation

tymmesyde
Copy link
Member

@tymmesyde tymmesyde commented Nov 10, 2023

@tymmesyde
Copy link
Member Author

@edde746 Can you test this when you have the time and let me know if it's working for you ?

@edde746
Copy link
Contributor

edde746 commented Nov 10, 2023

Works

@tymmesyde
Copy link
Member Author

Works

Thank you !

@@ -64,6 +64,7 @@ impl From<(&Stream, Option<&Url>, &Settings)> for ExternalPlayerLink {
///
/// [`StreamingServer::base_url`]: crate::models::streaming_server::StreamingServer::base_url
fn from((stream, streaming_server_url, settings): (&Stream, Option<&Url>, &Settings)) -> Self {
let streaming_server_url = streaming_server_url.map(|_| &settings.streaming_server_url);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let streaming_server_url = streaming_server_url.map(|_| &settings.streaming_server_url);
// Only if the streaming server is available, make sure to use the settings url
// as it might contain a remote url of the server,
// otherwise, deeplinks will be broken for remote server
let streaming_server_url = streaming_server_url.map(|_| &settings.streaming_server_url);

@tymmesyde tymmesyde force-pushed the fix/external-player-link-streaming-server-url branch from cdacf71 to 2e85612 Compare November 20, 2023 16:20
@elpiel elpiel merged commit 1f78803 into development Nov 20, 2023
1 check passed
@elpiel elpiel deleted the fix/external-player-link-streaming-server-url branch January 24, 2024 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Streaming URL hostname is wrong Video url always using local server IP
3 participants