New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fully played when not able to play file #1479
Comments
Is this still happening? |
Yes, still the same error. |
Can you please attach a trace log? I just checked and there is good logging there which should tell us what the fix should be |
Will do. |
@pipin77 bump |
Sorry, I'm pretty busy right now. |
I reproduced this just now and I can see our logging has this chain of events which ultimately seems like the renderer has done a wrong thing, but maybe that's not a full interpretation: VLC asks for the file:
We respond:
VLC asks for the end of the file:
We interpret that and send the remaining last chunk:
Then the renderer sends us a stop playing event and we get the last position, which was at the end, so we seem to be doing the correct thing at this point:
I'm not sure if we are doing something wrong to make VLC request the end of the file though, that seems really strange. |
I guess that depends on how you see it. Would you say that starting a video, fast forwarding close to the end and watch parts of the credits before stopping should constitute "fully played"? I actually don't see a "simple" way to get this right. You'd need to somehow map "what parts" of the video has been watched, and then mark it when a certain threshold was met. The question is of course, should this apply per renderer, per session, or how should this be handled? How should information about what parts have been played be stored between sessions? Another problem is that UMS doesn't really know what the renderer plays if I don't quite see how a proper logic that didn't make such mistakes could be implemented with the limited/varying information that is available. |
The behaviour seems like VLC is checking if file played is partially or fully downloaded so it can play correctly also files streamed/downloaded in the background (well known "feature" of VLC for a decade) up to the end (as the position of the end of file is changing). |
Yeah I agree with you guys it isn't perfect, and some renderers make it difficult for various reasons. However it works most of the time and the penalty for getting it wrong isn't huge - by default you get a little thumbnail overlay and are still able to continue playing that file. Some of the other non-default options would make that penalty worse though. With regards to the behaviour I saw from VLC before, that only happens occasionally - I have not been able to reproduce it again, and the same file plays perfectly. So it is not the normal behaviour for VLC I think. @ExSport great to see you and take care too :) |
@SubJunk This is just a guess, but could it be related to MP4 files where some have the metadata at the end of the file? It would make sense if VLC requested the end if it determined that to be the case, to fully parse the file before starting playback. |
When a video file could not be played with an error notice, the file is nevertheless marked as fully played.
Imo this was not the case before 7.0 .
The text was updated successfully, but these errors were encountered: