mopidy-youtube icon indicating copy to clipboard operation
mopidy-youtube copied to clipboard

Add seek support for youtube videos

Open pmb6tz opened this issue 9 years ago • 9 comments

Hey, thanks for the great work on this plugin!

It would be awesome if we could seek forward/backward in the videos. I know this is possible in mplayer w/ffmpeg using the same stream url that the plugin uses, so I wondered if it would be possible here.

If you want to point me in the right direction I could see about doing this myself and submitting a pull request. I mainly don't quite understand how to override the playback functionality myself.

pmb6tz avatar Jul 14 '15 22:07 pmb6tz

+1

lukasmrtvy avatar Jul 23 '15 21:07 lukasmrtvy

Is this an issue with Mopidy or with Mopidy-YouTube?

P.S.: I'm dumb. I thought this was on the Mopidy repo, not the Mopidy-YouTube repo.

BrainStone avatar Aug 26 '19 08:08 BrainStone

I'm thinking about adding file caching, which passes a file on a disk to gstreamer. Using a cached file, rather than the file direct from YouTube might solve any seeking issues.

New branch here: feature/cache

Config option required:

allow_cache = true

Feedback appreciated.

natumbri avatar Aug 08 '21 12:08 natumbri

@pmb6tz @lukasmrtvy @BrainStone is anyone interested in testing this? I've merged into develop. Would be interested to hear if it helps, or if you're no longer interested (in which case I'll close the issue).

Cheers.

natumbri avatar Aug 17 '21 02:08 natumbri

I currently don't use this software anymore. But if I would I'd still be interested, fyi.

BrainStone avatar Aug 18 '21 16:08 BrainStone

Did you ever try https://docs.mopidy.com/en/latest/api/backend/?highlight=should_download#mopidy.backend.PlaybackProvider.should_download for this @natumbri ?

kingosticks avatar Aug 18 '21 17:08 kingosticks

That's a good question @kingosticks! Somehow it ended up in the PlaybackProvider but I'm not convinced that I ever tested it, or even thought carefully about whether it is a good idea for this extension.

natumbri avatar Aug 18 '21 22:08 natumbri

I would have thought it'd make an impact (good or bad) for an issue like this.

kingosticks avatar Aug 18 '21 23:08 kingosticks

Yeah, absolutely it seems relevant. I will have a look at it - thanks for raising.

natumbri avatar Aug 19 '21 02:08 natumbri