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 () {
|
webSocket.onopen = function () {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
|
|
||||||
|
self.sendWebSocketMessage("Identify", deviceId + "|" + clientName);
|
||||||
|
|
||||||
$(self).trigger("websocketopen");
|
$(self).trigger("websocketopen");
|
||||||
}, 500);
|
}, 500);
|
||||||
};
|
};
|
||||||
|
@ -570,8 +570,8 @@ form, .readOnlyContent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.clientNowPlayingImage {
|
.clientNowPlayingImage {
|
||||||
border-radius: 5px;
|
border: 1px solid #999;
|
||||||
border: 2px solid #ccc;
|
padding: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Footer */
|
/* Footer */
|
||||||
|
@ -156,16 +156,7 @@
|
|||||||
|
|
||||||
if (item) {
|
if (item) {
|
||||||
|
|
||||||
if (item.BackdropImageTag) {
|
if (item.PrimaryImageTag) {
|
||||||
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) {
|
|
||||||
|
|
||||||
var url = ApiClient.getImageUrl(item.Id, {
|
var url = ApiClient.getImageUrl(item.Id, {
|
||||||
type: "Primary",
|
type: "Primary",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<packages>
|
<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.Common" version="3.9.44" targetFramework="net45" />
|
||||||
<package id="ServiceStack.Text" version="3.9.44" targetFramework="net45" />
|
<package id="ServiceStack.Text" version="3.9.44" targetFramework="net45" />
|
||||||
</packages>
|
</packages>
|
Loading…
Reference in New Issue
Block a user