I have a Samsung C series TV that was able to automatically refresh changes
made in the minidlna server (media additions, deletions, etc). I appears
that whenever a media directory is accessed on the TV, it reads the
minidlna database; therefore it is always displaying updates.
The problem is that my new Samsung F TV seems to cache. It does not
automatically pick up changes in minidlna. Haven't figured out how to make
the TV refresh so I can see updates. I have to restart the server, the tv,
or wait half hour or so.
Samsung's Link (dlna software) has a refresh button that triggers the
refresh. It looks like it just re-sends SSDP requests.
Question:
Is there any way to solve this on the minidlna server side? No caching by
the client? If so, where can I find this in the code to customize.
So it doesn't issue Browse or Search requests if you've already browsed a folder?
The way it's supposed to work is, the client may subscribe to SystemUpdateID events, and when content changes we notify the client. Alternatively, they can issue a GetSystemUpdateID request or re-issue Search or Browse requests and check the UpdateID to see if it has changed. If it has, then they are supposed to use the new results.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
No, looks like the tv doesn't issue browse or search requests if you've already browsed the folder. It reads from a cache afterward. Samsung is annoying and proprietary.
I've put in a request with Samsung to provide a refresh button on the TV, but I'm not holding my breadth.
Thanks for the clarification.
Last edit: HPP8140 2014-03-13
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Attached network monitor of SSDP and http when I push the refresh button on the Samsung Link dlna software.
Notes:
When I push refresh button, the TV momentarily displays 'device disconnected' message if I am inside a shared minidlna folder. Then I can see the updates.
If I delete a file on minidlna, it is interesting that the file remains on the tv, but the thumbnail is removed. Looks like the artwork is not cached.
Well...I finally found a repeatable solution to this annoying 1st-world problem that might help anyone with a new Samsung Tv that makes frequent media updates to Minidlna.
The TV also supports streaming from cloud drives such as skydrive and dropbox. I was thinking about using skydrive as my "New Media" folder that gets frequent updates, as a workaround.
This led to a discovery.
1. Browse skydrive on the TV
2. Start and stop playing file
3. Go back to minidlna server on TV
4. TV refreshes media from Minidlna
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Does sending SIGHUP to minidlna cause the tv's client to refresh? There's another signal available which clears the client cache (SIGUSR1). I don't have a Samsung TV to test. 'man kill' for more info.
Hi,
I have a Samsung C series TV that was able to automatically refresh changes
made in the minidlna server (media additions, deletions, etc). I appears
that whenever a media directory is accessed on the TV, it reads the
minidlna database; therefore it is always displaying updates.
The problem is that my new Samsung F TV seems to cache. It does not
automatically pick up changes in minidlna. Haven't figured out how to make
the TV refresh so I can see updates. I have to restart the server, the tv,
or wait half hour or so.
Samsung's Link (dlna software) has a refresh button that triggers the
refresh. It looks like it just re-sends SSDP requests.
Question:
Is there any way to solve this on the minidlna server side? No caching by
the client? If so, where can I find this in the code to customize.
Thanks.
So it doesn't issue Browse or Search requests if you've already browsed a folder?
The way it's supposed to work is, the client may subscribe to SystemUpdateID events, and when content changes we notify the client. Alternatively, they can issue a GetSystemUpdateID request or re-issue Search or Browse requests and check the UpdateID to see if it has changed. If it has, then they are supposed to use the new results.
No, looks like the tv doesn't issue browse or search requests if you've already browsed the folder. It reads from a cache afterward. Samsung is annoying and proprietary.
I've put in a request with Samsung to provide a refresh button on the TV, but I'm not holding my breadth.
Thanks for the clarification.
Last edit: HPP8140 2014-03-13
What kind of SSDP packets get sent by Samsung's software to trigger a refresh, anyway?
Attached network monitor of SSDP and http when I push the refresh button on the Samsung Link dlna software.
Notes:
When I push refresh button, the TV momentarily displays 'device disconnected' message if I am inside a shared minidlna folder. Then I can see the updates.
If I delete a file on minidlna, it is interesting that the file remains on the tv, but the thumbnail is removed. Looks like the artwork is not cached.
Last edit: HPP8140 2014-03-14
I thought that might be the case. They're effectively just doing a full restart. It's too bad they don't like following the standard.
Well...I finally found a repeatable solution to this annoying 1st-world problem that might help anyone with a new Samsung Tv that makes frequent media updates to Minidlna.
The TV also supports streaming from cloud drives such as skydrive and dropbox. I was thinking about using skydrive as my "New Media" folder that gets frequent updates, as a workaround.
This led to a discovery.
1. Browse skydrive on the TV
2. Start and stop playing file
3. Go back to minidlna server on TV
4. TV refreshes media from Minidlna
Now using Raspi SSH Android app to send minidlna restart command
Does sending SIGHUP to minidlna cause the tv's client to refresh? There's another signal available which clears the client cache (SIGUSR1). I don't have a Samsung TV to test. 'man kill' for more info.
Ex:
kill -s SIGHUP $(cat /var/run/minidlna/minidlna.pid)
No it did not refresh the TV.
kill -s SIGHUP $(cat /var/run/minidlna/minidlna.pid)
If you want to entertain my curiosity, post dumps of minidlna and tv during restart and when using the SIGHUP. Otherwise, thanks for testing.
http://sourceforge.net/p/minidlna/discussion/879956/thread/3d6bec2a/eada/attachment/samsungF-refresh.txt
I already saw that posted earlier in this thread but thanks.