mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixed remote control issues
This commit is contained in:
parent
e1a76594d6
commit
6c4be34378
2 changed files with 5 additions and 2 deletions
|
@ -118,7 +118,7 @@
|
||||||
|
|
||||||
function sendProgressUpdate(itemId) {
|
function sendProgressUpdate(itemId) {
|
||||||
|
|
||||||
ApiClient.reportPlaybackProgress(Dashboard.getCurrentUserId(), itemId, getCurrentTicks());
|
ApiClient.reportPlaybackProgress(Dashboard.getCurrentUserId(), itemId, getCurrentTicks(), currentMediaElement.paused);
|
||||||
}
|
}
|
||||||
|
|
||||||
function clearProgressInterval() {
|
function clearProgressInterval() {
|
||||||
|
@ -1064,7 +1064,9 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
self.seek = function (position) {
|
self.seek = function (position) {
|
||||||
currentMediaElement.currentTime = position / (1000 * 10000);
|
|
||||||
|
changeStream(position);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
self.mute = function () {
|
self.mute = function () {
|
||||||
|
|
|
@ -791,6 +791,7 @@ var Dashboard = {
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (msg.MessageType === "Playstate") {
|
else if (msg.MessageType === "Playstate") {
|
||||||
|
|
||||||
if (msg.Data.Command === 'Stop') {
|
if (msg.Data.Command === 'Stop') {
|
||||||
MediaPlayer.stop();
|
MediaPlayer.stop();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue