Search the Community
Showing results for tags 'sessions'.
-
repeat diskAccess @Emby:Sessions/Playing/Progress even when 'paused'?
pgemby posted a topic in Synology
I run Emby Server 4.7.8.0-704070800 on a 4-disk/RAID-10 Synology NAS DS918+ (DSM 7.1.1-42962 Update 1) It serves as backend to LAN clients running Kodi 19.4/Linux with Emby for Kodi Next Gen v7.9.4 plugin. Everything works as expected; zero problems serving up videos. One minor issue that I've been trying to 'solve'. If I launch a vid (either in client Kodi player, or in client browser to Emby webUI) and hit 'pause' -- so the movie's queued up to play, but not streaming -- I notice regularly repeating 4-disk access. Every few seconds, all 4 of the NAS's disk-LED's blink and I hear disk access. This will simply repeat forever, until I 'stop' the movie, rather than just 'pause' it. I turned on debug logs to take a look, and see: with access from Kodi client, ``` ... 2022-10-30 19:33:17.791 Info Server: http/1.1 POST http://10.0.9.18:8096/emby/Sessions/Playing/Progress?CanSeek=True&QueueableMediaTypes=Video%2CAudio&IsPaused=True&ItemId=47937&MediaSourceId=7a...d6&PositionTicks=100000000&RunTimeTicks=63149443359&VolumeLevel=100&IsMuted=False. UserAgent: Emby for Kodi Next Gen/7.9.4 2022-10-30 19:33:17.792 Debug SessionManager: OnPlaybackProgress StateChange 8756d1f9a0b84bd6ae7ae63a7be446d6 2022-10-30 19:33:17.793 Info Server: http/1.1 Response 204 to 10.1.1.7. Time: 2ms. http://10.0.9.18:8096/emby/Sessions/Playing/Progress?CanSeek=True&QueueableMediaTypes=Video%2CAudio&IsPaused=True&ItemId=47937&MediaSourceId=7a...d6&PositionTicks=100000000&RunTimeTicks=63149443359&VolumeLevel=100&IsMuted=False 2022-10-30 19:33:21.799 Info Server: http/1.1 POST http://10.0.9.18:8096/emby/Sessions/Playing/Progress?CanSeek=True&QueueableMediaTypes=Video%2CAudio&IsPaused=True&ItemId=47937&MediaSourceId=7a...d6&PositionTicks=100000000&RunTimeTicks=63149443359&VolumeLevel=100&IsMuted=False. UserAgent: Emby for Kodi Next Gen/7.9.4 2022-10-30 19:33:21.800 Debug SessionManager: OnPlaybackProgress StateChange 8756d1f9a0b84bd6ae7ae63a7be446d6 2022-10-30 19:33:21.801 Info Server: http/1.1 Response 204 to 10.1.1.7. Time: 2ms. http://10.0.9.18:8096/emby/Sessions/Playing/Progress?CanSeek=True&QueueableMediaTypes=Video%2CAudio&IsPaused=True&ItemId=47937&MediaSourceId=7a...d6&PositionTicks=100000000&RunTimeTicks=63149443359&VolumeLevel=100&IsMuted=False 2022-10-30 19:33:25.807 Info Server: http/1.1 POST http://10.0.9.18:8096/emby/Sessions/Playing/Progress?CanSeek=True&QueueableMediaTypes=Video%2CAudio&IsPaused=True&ItemId=47937&MediaSourceId=7a...d6&PositionTicks=100000000&RunTimeTicks=63149443359&VolumeLevel=100&IsMuted=False. UserAgent: Emby for Kodi Next Gen/7.9.4 2022-10-30 19:33:25.808 Debug SessionManager: OnPlaybackProgress StateChange 8756d1f9a0b84bd6ae7ae63a7be446d6 2022-10-30 19:33:25.808 Info Server: http/1.1 Response 204 to 10.1.1.7. Time: 2ms. http://10.0.9.18:8096/emby/Sessions/Playing/Progress?CanSeek=True&QueueableMediaTypes=Video%2CAudio&IsPaused=True&ItemId=47937&MediaSourceId=7a...d6&PositionTicks=100000000&RunTimeTicks=63149443359&VolumeLevel=100&IsMuted=False ... ``` and similarly with Emby WebUI access, from Firefox ``` ... 2022-10-30 19:51:03.215 Info Server: http/1.1 POST http://syno.lan:8096/emby/Sessions/Playing/Progress?X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox&X-Emby-Device-Id=89...df&X-Emby-Client-Version=4.7.8.0&reqformat=json. UserAgent: Mozilla/5.0 (Windows NT 10.0; rv:106.0) Gecko/20100101 Firefox/106.0 2022-10-30 19:51:03.216 Debug SessionManager: OnPlaybackProgress TimeUpdate aa648724be6241d2a6b5949b32cb818a 2022-10-30 19:51:03.217 Info Server: http/1.1 Response 204 to fd70:28:9:18:6d9:f5ff:fe7c:1c62. Time: 2ms. http://syno.lan:8096/emby/Sessions/Playing/Progress?X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox&X-Emby-Device-Id=89...df&X-Emby-Client-Version=4.7.8.0&reqformat=json 2022-10-30 19:51:13.217 Info Server: http/1.1 POST http://syno.lan:8096/emby/Sessions/Playing/Progress?X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox&X-Emby-Device-Id=89...df&X-Emby-Client-Version=4.7.8.0&reqformat=json. UserAgent: Mozilla/5.0 (Windows NT 10.0; rv:106.0) Gecko/20100101 Firefox/106.0 2022-10-30 19:51:13.218 Debug SessionManager: OnPlaybackProgress TimeUpdate aa648724be6241d2a6b5949b32cb818a 2022-10-30 19:51:13.219 Info Server: http/1.1 Response 204 to fd70:28:9:18:6d9:f5ff:fe7c:1c62. Time: 4ms. http://syno.lan:8096/emby/Sessions/Playing/Progress?X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox&X-Emby-Device-Id=89...df&X-Emby-Client-Version=4.7.8.0&reqformat=json 2022-10-30 19:51:23.218 Info Server: http/1.1 POST http://syno.lan:8096/emby/Sessions/Playing/Progress?X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox&X-Emby-Device-Id=89...df&X-Emby-Client-Version=4.7.8.0&reqformat=json. UserAgent: Mozilla/5.0 (Windows NT 10.0; rv:106.0) Gecko/20100101 Firefox/106.0 2022-10-30 19:51:23.219 Debug SessionManager: OnPlaybackProgress TimeUpdate aa648724be6241d2a6b5949b32cb818a 2022-10-30 19:51:23.220 Info Server: http/1.1 Response 204 to fd70:28:9:18:6d9:f5ff:fe7c:1c62. Time: 2ms. http://syno.lan:8096/emby/Sessions/Playing/Progress?X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox&X-Emby-Device-Id=89...df&X-Emby-Client-Version=4.7.8.0&reqformat=json ... ``` "Sessions/Playing/Progress" seems the common element. Something constantly polling for progress? Is this expected/normal behavior for Emby? (How) can this be disabled, or tamed? -
I am new to Emby Developer API. While going through the Developer API Wiki on GitHub I got following doubts. Please help me in understanding these topics. The API key authentication is not linked to a specific user. So when using API key authentication how can I browse the whole library of the Emby server as all the APIs related to browsing library requires a user id? I can get list of all users on the server using /Users API. But then how to decide which user id to use for browsing library? This is crucial as every user might not have access to every type of media. How to connect to server as a client and create a session? As my application is sending API requests to Emby server, as per the terminology my application becomes a client. But how can I create a session for my application so that other clients know about it? What is Emby Server DLNA client? When I fetch sessions controllable by a specific user I get two sessions. First is of my browser from which I am accessing Emby server hosted in my machine. And second one is Emby Server DLNA Client. I would like to know what is this second session for? I have Emby server hosted in my local machine and I am using API key authentication for making API requests. Thanks for help in advance.
-
UserName + NowPlayingItem.Name for InfluxDB and Grafana
plittlefield posted a topic in Developer API
Hello Folks, After the success of getting a count of the current NowPlayingItem entries in the Sessions API, I am now trying to get a list of the Users and what they are currently playing - then send that to my InfluxDB to show in my Grafana server. I am nearly there with this command line, but cannot quite get it so that JQ only shows those session users who are actually playing something... wget -q -O - "http://localhost:8096/emby/Sessions?api_key=3469exxxxxxxxxxxxxxx201ef3f" | jq -M '.[].UserName, .[].NowPlayingItem.Name' will show me the following... null "Paul" "Tracey" "Sam" "Tom" "Katie" null "The Secret of the Unicorn (1)" null null null null ...which is every possible user. In the above example, only user "Paul" is actually playing ""The Secret of the Unicorn (1)". If I add the JQ options to now show 'nulls'... wget -q -O - "http://localhost:8096/emby/Sessions?api_key=3469exxxxxxxxxxxxxxx201ef3f" | jq -M '.[].UserName, .[].NowPlayingItem.Name | select(. != null)' then I can get it to this output... "Paul" "Tracey" "Sam" "Tom" "Katie" "The Secret of the Unicorn (1)" ...which is correct but still shows me users that are not playing anything at that time! Does anyone have knowledge of JSON and JQ or the API so that I can just get a list of those users that are playing an item now. I would be happy with this output... "Paul" "The Secret of the Unicorn (1)" ...or even better - turn it in to a key + value pair like this... { "Paul": "The Secret of the Unicorn (1)" } ...so that I can send that to a bash script and then to my InfluxDB. Thanks in advance! Regards, Paully -
Duplicate NEW FEATURE REQUEST - Max Simultaneous Sessions
tuxevil posted a topic in Feature Requests
Hi, i would like to request a new feature for emby premium. I would like to limit my users concurrent sessions. If the same user logs in in another device the last one should be disconnected Thanks