Merge pull request #4115 from nmurali94/bugfix-remove-timestamp-from-livestream

Remove timestamp from url when sharing a live stream
pull/4126/head
Tobias Groza 2020-08-12 17:57:18 +02:00 zatwierdzone przez GitHub
commit d7af019511
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -880,9 +880,11 @@ public class VideoPlayerImpl extends VideoPlayer
private void onShareClicked() {
// share video at the current time (youtube.com/watch?v=ID&t=SECONDS)
// Timestamp doesn't make sense in a live stream so drop it
final String ts = isLive() ? "" : ("&t=" + (getPlaybackSeekBar().getProgress() / 1000));
ShareUtils.shareUrl(service,
getVideoTitle(),
getVideoUrl() + "&t=" + getPlaybackSeekBar().getProgress() / 1000);
getVideoUrl() + ts);
}
private void onPlayWithKodiClicked() {