thunder icon indicating copy to clipboard operation
thunder copied to clipboard

YouTube video timestamps don't appear to be working in Thunder's in-app video player.

Open K4LCIFER opened this issue 1 year ago • 1 comments

Bug Description

If you add a timestamp to a YouTube link, the video player will start at the beginning of the video rather than at the timestamp.

Examples: https://sh.itjust.works/post/28710281/15291570 https://sh.itjust.works/post/28613782/15236650

Expected Behaviour

I would expect the video to start at the timestamp.

Steps to Reproduce

  1. Create a link with to a YouTube video with a timestamp in the URL.
  2. Open the link in Thunder
  3. Observe that the video player starts at the beginning of the video rather than at the specified timestamp.

Additional Context

No response

App Version

0.5.1

Device

Pixel 6

OS

Android 15

K4LCIFER avatar Dec 02 '24 23:12 K4LCIFER

Thunder uses youtube_player_flutter

should be possible by seeking to position

  _ypfController.seekTo(Duration(seconds: 20));

Edit: for devs

startAt is used rather than seekTo

flags: ypf.YoutubePlayerFlags(
          controlsVisibleAtStart: true,
          autoPlay: autoPlayVideo(),
          enableCaption: false,
          hideControls: false,
          startAt: timestamp ?? 0,

ggichure avatar Dec 03 '24 05:12 ggichure