Page 1 of 1

Last viewed not working

PostPosted: Sat Aug 12, 2023 1:17 pm
by gavsdavs
I'd like to great a channel on my nvidia shield for "last viewed" so it's easier to get to the stuff my 5 year old watches over and over.
I've set "disaplay category" for presentation -> videos->"last viewed.
I can't get anything to appear in on the nvidia shield or a generic player like vlc.

If i set "display content only" i get a weird UI rendering bug in vlc and the recent items appear, but at the top level of "Videos" not in a specific share called "Last viewed".

Anyone had any luck setting this up ?

Re: Last viewed not working

PostPosted: Sat Aug 12, 2023 7:46 pm
by atc98092
On my Shield I use Kodi as my player. If you've never used it, there's a bit of a learning curve for the setup, and most of the important settings are hidden in the Expert mode, so that's the first thing to enable. You have to explicitly enable DLNA functionality, then you should have no problem finding your Serviio server.

One other caution: Kodi does NOT stop video playback when you press the back button on the remote. I use a keyboard mapping app within Kodi and program the back button to stop playback.

VLC is a great player, but has a terrible user interface for Android based players. You shouldn't have any issues with the Last Viewed presentation on Serviio with Kodi.

Re: Last viewed not working

PostPosted: Sat Aug 12, 2023 8:36 pm
by gavsdavs
It's not basic setup i'm trying to do.

I use DLNA channels to subscribe my shield to a number of exports/shares exposed by my serviio and VLC to play them.
Playlists, movies, etc, they all work fine.

What DOESN'T work is "Last viewed" when attempted from either DLNA channels on the shield, or VLC browser from a PC. Oddly the shield can see 77 items before trying to enter the folder and bookmark it, but when i click into it nothing gets rendered and i just see a pinny wheel.

Also get these errors logged by serviio which I think are the shield not responding as expected
  Code:
2023-08-12T14:12:34,745 WARN  [RendererManager] Error while retrieving renderer description from http://10.99.99.26:8080/dd.xml: Connection reset
2023-08-12T14:17:04,021 WARN  [RendererManager] Error while retrieving renderer description from http://10.99.99.26:8080/dd.xml: Connection reset
2023-08-12T14:18:07,887 WARN  [RendererManager] Error while retrieving renderer description from http://10.99.99.26:8080/dd.xml: Connection reset
2023-08-12T14:19:11,844 WARN  [RendererManager] Error while retrieving renderer description from http://10.99.99.26:8080/dd.xml: Connection reset


I have no desire to use Kodi, i dislike it and I'll instead just do without. Just wondering if "Last viewed" works for anyone else, on any platform.

Re: Last viewed not working

PostPosted: Sat Aug 12, 2023 11:28 pm
by atc98092
I have Last Viewed enabled on my test server. Using Kodi, I see the last viewed on that server without a problem. The only real issue with Kodi is that it ignores the sort provided by Serviio, so the last watched isn't at the top. It's my only complaint with Kodi, as I have many of my Playlists sorted in a non-standard list, but Kodi ignores it.

But every last viewed video is visible on my Shield. So, last viewed is working. The problem unfortunately is the player app you're using. I tried VLC myself just now, and I agree that it won't load the file list. But that's a VLC issue, not Serviio.

Re: Last viewed not working

PostPosted: Sun Aug 13, 2023 7:09 am
by gavsdavs
Ok, I'm not sure you fully understand what "DLNA Channels" is doing and what "vlc" is doing here.
DLNA channels is enumerating the shares and media exposed by serviio.
VLC is simply being used as a dumb player and is handed a content URL by DLNA channels.

DLNA channels can see that there's a number of items in "Last viewed" but when you click into it you get a spinny wheel.

VLC used on its own (on a PC) can't see content here either.

The fact that I have 2 pieces of software not be able to do this is why i'm asking, it's not just isolated to one.

If I swtich to "display content" (instead of display category) in VLC (on a PC) i see some items but they are not within the "last viewed" folder/share.
What setting are you using for that ? (i.e is it "display content" or "display category"?)

I will experiment with some other media browsers too, i'm just a bit busy today.

I think this might also benefit from some screenshots/photos.

Re: Last viewed not working

PostPosted: Sun Aug 13, 2023 3:17 pm
by atc98092
For Last Viewed I have it set to Display Category.

I have no idea what DLNA channels is, but I'm assuming it's some sort of software program. While I agree the problem does seem to be coming from Serviio, I still believe that's not the problem. Since I can replicate the issue with VLC, but Last Viewed is just fine with all of my other DLNA players, it really does seem the problem is with VLC. Since DLNA Channels is doing the same thing, it appears to have the same issue as VLC does. I did look up DLNA Channels in the Play Store, and I see it has as many negative comments as positive, so perhaps it's not implementing the DLNA standard completely. Since I'm not the Serviio developer, but only chat with him on rare occasions, I can't say if there's something non-standard in Serviio. But based on his past comments, I believe he has tried his best to be completely compliant.

Re: Last viewed not working

PostPosted: Sun Aug 13, 2023 8:35 pm
by gavsdavs
atc98092 wrote:For Last Viewed I have it set to Display Category.
But based on his past comments, I believe he has tried his best to be completely compliant.

Absolutely, I'm not saying it's a bug for anyone yes, I'm just trying to seek others experiences with this menu section.

Will do some tcpdumps to see if there's anythng being unanswered from serviio

Re: Last viewed not working

PostPosted: Sun Aug 13, 2023 9:29 pm
by gavsdavs
When i have Presentation->Video->Last Viewed set to "Display content only" DLNA Channels (used on the nvidia shield) can see "Last Viewed" items under the /video folder directly. The list appears to be correct and limited to 10 items as I'd expect. But since i have subfolders here (and I'd like these Last Viewed items to be in a subfolder of their own), I don't really want to bookmark this /video folder as a channel of its own.

I've tried a microsoft app called DLNA browser and it behaves exactly as desiired, so both vlc and DLNA channels on the shield are behaving differently for this query tos seviio.

I've tried turning up the debug in serviio but I don't see any glaring errors except for these tcp resets as follows:
  Code:
22:27:11.385456 IP 10.99.99.26.8080 > 10.99.99.116.40388: Flags [S.], seq 314140702, ack 509276052, win 31000, options [mss 1460,wscale 0,eol], length 0
22:27:11.385472 IP 10.99.99.116.40388 > 10.99.99.26.8080: Flags [.], ack 1, win 502, length 0
22:27:11.385796 IP 10.99.99.116.40388 > 10.99.99.26.8080: Flags [P.], seq 1:261, ack 1, win 502, length 260: HTTP: GET /dd.xml HTTP/1.1
22:27:11.599762 IP 10.99.99.116.40388 > 10.99.99.26.8080: Flags [P.], seq 1:261, ack 1, win 502, length 260: HTTP: GET /dd.xml HTTP/1.1
22:27:11.863959 IP 10.99.99.26.8080 > 10.99.99.116.40388: Flags [P.], seq 1461:2192, ack 261, win 31000, length 731: HTTP
22:27:11.863989 IP 10.99.99.116.40388 > 10.99.99.26.8080: Flags [.], ack 1, win 502, length 0
22:27:12.007886 IP 10.99.99.26.8080 > 10.99.99.116.40388: Flags [.], ack 261, win 31000, length 0
22:27:14.504221 IP 10.99.99.26.8080 > 10.99.99.116.40388: Flags [R], seq 314142894, win 0, length 0
22:27:14.504235 IP 10.99.99.116.40388 > 10.99.99.26.8080: Flags [.], ack 1, win 502, length 0
22:27:14.512225 IP 10.99.99.26.8080 > 10.99.99.116.40388: Flags [R], seq 314140703, win 0, length 0



I wonder, are there any tools for testing whether a device is reacting in a compliant way to this
  Code:
2023-08-13T22:11:35,320 DEBUG [ContentDirectory] Browse() called for renderer Unrecognized device (profile 1) with parameters: objectID = V_LV, browseFlag = BrowseDirectChildren, filter = *, startIndex = 10, count = 50, sortCriteria =
2023-08-13T22:11:35,320 DEBUG [LocalContentCacheDecorator] Found entry in the cache (local_resetafterplay), returning it
2023-08-13T22:11:35,321 DEBUG [ServiceControlRequestHandler] Returning OK SOAP message
2023-08-13T22:11:35,337 DEBUG [ServiioHttpService] Incoming request from /10.99.99.28:34852: POST /serviceControl HTTP/1.1, headers = [Connection: close,FriendlyName.DLNA.ORG: DLNA Channels for Android TV,User-Agent: Android/11 UPnP/1.0 DLNAChannels/1.3.7,SOAPAction: "urn:schemas-upnp-org:service:ContentDirectory:1#Browse",Content-Type: text/xml; charset=utf-8,Content-Length: 586,Host: 10.99.99.116:8895,Accept-Encoding: gzip]]


DLNA channels and VLC want something else, how do i work out what that is ?