Remove timestamp when sharing a live stream

pull/4115/head
nmurali94 2020-08-11 16:53:36 -04:00
rodzic 8a1a42e83b
commit 04bb070afa
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() {