mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
added ability to track web sockets per session
This commit is contained in:
parent
9fa986c511
commit
f4eb8f6cdd
@ -159,6 +159,9 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout) {
|
||||
|
||||
webSocket.onopen = function () {
|
||||
setTimeout(function () {
|
||||
|
||||
self.sendWebSocketMessage("Identify", deviceId + "|" + clientName);
|
||||
|
||||
$(self).trigger("websocketopen");
|
||||
}, 500);
|
||||
};
|
||||
|
@ -570,8 +570,8 @@ form, .readOnlyContent {
|
||||
}
|
||||
|
||||
.clientNowPlayingImage {
|
||||
border-radius: 5px;
|
||||
border: 2px solid #ccc;
|
||||
border: 1px solid #999;
|
||||
padding: 1px;
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
|
@ -156,16 +156,7 @@
|
||||
|
||||
if (item) {
|
||||
|
||||
if (item.BackdropImageTag) {
|
||||
var url = ApiClient.getImageUrl(item.Id, {
|
||||
type: "Backdrop",
|
||||
height: 100,
|
||||
tag: item.BackdropImageTag
|
||||
});
|
||||
|
||||
return "<img class='clientNowPlayingImage' src='" + url + "' alt='" + item.Name + "' title='" + item.Name + "' />";
|
||||
}
|
||||
else if (item.PrimaryImageTag) {
|
||||
if (item.PrimaryImageTag) {
|
||||
|
||||
var url = ApiClient.getImageUrl(item.Id, {
|
||||
type: "Primary",
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="MediaBrowser.ApiClient.Javascript" version="3.0.99" targetFramework="net45" />
|
||||
<package id="MediaBrowser.ApiClient.Javascript" version="3.0.100" targetFramework="net45" />
|
||||
<package id="ServiceStack.Common" version="3.9.44" targetFramework="net45" />
|
||||
<package id="ServiceStack.Text" version="3.9.44" targetFramework="net45" />
|
||||
</packages>
|
Loading…
Reference in New Issue
Block a user