mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2024-11-22 11:02:35 +01:00
Merge pull request #4115 from nmurali94/bugfix-remove-timestamp-from-livestream
Remove timestamp from url when sharing a live stream
This commit is contained in:
commit
d7af019511
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user