Closed Lodeli closed 1 year ago
The plugin provides the intro library item to the Jellyfin intro system, which is supposed to process the series of items as a playlist.
I've noticed an issue with playing them on Android as well, but I think this is an issue with Jellyfin itself. I'll have to crawl into the code and figure out what's going on in the Jellyfin server itself, and if it's the server, the client, or something else.
In order to verify this, it may be useful if anyone can test any other plugin that adds prerolls, like the original plugin.
A way around this is to turn off "Cinema Mode" in clients that are having issues. It won't show the prerolls, but it will skip trying to play them.
Thank you for the quick response. I've never seen the Jellyfin code but I've tried to check it too and indeed it seems to me that the IIntroProvider interface just returns an enumerable of IntroInfo items that, inside the Jellyfin system, the ResolveIntro() method transform into Video object.
At some point anyway something breaks and it has to be caused by the item being an intro and not a normal playlist item.
In fact, If I add the prerolls folder as a normal library, I can play the items with no issues on FireTV and Android mobile app.
Anyway, even if I'm a C# dev, I know nothing about JF code. I will try to help with my limited free time as far as I'm able to, though.
Checking the differences in server behaviors between intros and main file didn't lead me to anything.
In both I found _dtoService.GetBaseItemDto(item, dtoOptions, user);
and the objects involved seem the same.
But I've found a difference from the dkanada plugin.
When it adds a new video (local or downloaded) to its cache, it calls its private method UpdateLibrary()
in which there's this line:
Plugin.LibraryManager.CreateItem(video, null);
Maybe this is something of any importance? I'd really like to be of any help but I have no clue of what I'm seeing here.
iirc, his plugin re-added the same video to the library multiple times every time, my plugin makes sure that it doesn't clog up the library with multiple references to the same file. That line shouldn't be related to the determination of whether to transcode.
I can try later on to run jellyfin on a raspberry pi to see if it does the same thing, but if it does, it would still be a bug in the central application, not the plugin.
Hi all, my JF server is in a Docker container on a RPI 4. I've downloaded all the prerolls videos from the archive on Discord and I've also converted all of them to H264 AAC. I can DirectPlay all of the videos when added the folder as a new library.
Anyway, I can't directly reproduce any of these videos as preroll on Fire TV and Android app: they only work on Web browser.
When playing from Fire TV or Android app, it seems that the DirectPlay encounters an error. This is what I find in my logs: