Problem with Playback History for completed video stream

VLC for Android and Chrome OS specific usage questions
programatix
New Cone
New Cone
Posts: 6
Joined: 01 Oct 2022 05:53

Problem with Playback History for completed video stream

Postby programatix » 01 Oct 2022 06:05

Hi,

I'm using VLC to playback videos from Synology NAS via Synology Photos app which exposes videos via video streaming URL. Everything is good where it continues playback if I stop halfway. However a problem arises when the video ends. When I want to play the video again, it will immediately go to the end of the video, and the video ends.

It seems that VLC couldn't detect that the video has ended and keeps resuming it. The only workaround for me now is to disable Playback History and delete all existing histories.

Is there a way to fix this without turning off Playback History?

Aza
Developer
Developer
Posts: 2360
Joined: 14 Mar 2019 10:04

Re: Problem with Playback History for completed video stream

Postby Aza » 03 Oct 2022 07:29

This is probably due to the way your Synology app report the file duration. What would help here is a copy of your database. You can generate this file in Settings > Advance > Dump media database.
You can send it to me privately using any sharing service (Drive, Dropbox, ...) by using the contact icon here ->

Aza
Developer
Developer
Posts: 2360
Joined: 14 Mar 2019 10:04

Re: Problem with Playback History for completed video stream

Postby Aza » 05 Oct 2022 10:16

I received your files and took a look. It's in fact due to the medialibrary not being able to retrieve your stream duration. We will take a look.

programatix
New Cone
New Cone
Posts: 6
Joined: 01 Oct 2022 05:53

Re: Problem with Playback History for completed video stream

Postby programatix » 05 Oct 2022 13:00

I wonder why during playback, the duration of the video is correctly shown? I assume the medialibrary is not sharing the video duration obtained by the UI?

If the issue is on the app side, please do share more info on how to resolve this. I'll open a case at Synology.

Aza
Developer
Developer
Posts: 2360
Joined: 14 Mar 2019 10:04

Re: Problem with Playback History for completed video stream

Postby Aza » 06 Oct 2022 06:59

I assume the medialibrary is not sharing the video duration obtained by the UI?
That's exactly that. The medialibrary is the piece of code in charge of retaining the info about medias during playback. For now, it determines the duration itself and there is no way we override this value.
I saw that your stream takes a long time to respond. maybe it's too long for the medialibrary timeout.

programatix
New Cone
New Cone
Posts: 6
Joined: 01 Oct 2022 05:53

Re: Problem with Playback History for completed video stream

Postby programatix » 07 Oct 2022 01:11

I saw that your stream takes a long time to respond. maybe it's too long for the medialibrary timeout.
What request is that? I need a bit of details to open a case at Synology.

Thanks.

Aza
Developer
Developer
Posts: 2360
Joined: 14 Mar 2019 10:04

Re: Problem with Playback History for completed video stream

Postby Aza » 07 Oct 2022 07:03

The initial buffering is long. Not sure it's due to Synology though. It might be a caused by a lot of things. When we add the media to the medialibrary, it tries to open it to detect the duration (and other things) but has a relatively short timeout. It's only conjunction though, the person in charge of the medialibrary will take a look.

programatix
New Cone
New Cone
Posts: 6
Joined: 01 Oct 2022 05:53

Re: Problem with Playback History for completed video stream

Postby programatix » 10 Oct 2022 16:43

I make the same test with a file manager called Solid Explorer (https://play.google.com/store/apps/deta ... dexplorer2). This app will create a http stream locally when opening videos.

In my test, I connect it to a sftp server and then play a media. The result is exactly the same as when I'm using Synology Photos app.

Do you need me to send you the media dB dump?

Aza
Developer
Developer
Posts: 2360
Joined: 14 Mar 2019 10:04

Re: Problem with Playback History for completed video stream

Postby Aza » 11 Oct 2022 13:47

Probably not. I forwarded all the informations to the person in charge of the medialibrary. They will take a look and we will find a fix.

programatix
New Cone
New Cone
Posts: 6
Joined: 01 Oct 2022 05:53

Re: Problem with Playback History for completed video stream

Postby programatix » 24 Nov 2022 17:22

Any status on this issue? I tried the latest 3.5.3 and the issue is still there.


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 10 guests