mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-01-25 16:36:57 +00:00
Remove timestamp when sharing a live stream
This commit is contained in:
parent
8a1a42e83b
commit
04bb070afa
@ -880,9 +880,11 @@ public class VideoPlayerImpl extends VideoPlayer
|
|||||||
|
|
||||||
private void onShareClicked() {
|
private void onShareClicked() {
|
||||||
// share video at the current time (youtube.com/watch?v=ID&t=SECONDS)
|
// 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,
|
ShareUtils.shareUrl(service,
|
||||||
getVideoTitle(),
|
getVideoTitle(),
|
||||||
getVideoUrl() + "&t=" + getPlaybackSeekBar().getProgress() / 1000);
|
getVideoUrl() + ts);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onPlayWithKodiClicked() {
|
private void onPlayWithKodiClicked() {
|
||||||
|
Loading…
Reference in New Issue
Block a user