mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add IE message to install webm plugin
This commit is contained in:
parent
4dcf71dcec
commit
053e9376f9
1 changed files with 14 additions and 6 deletions
|
@ -758,14 +758,16 @@
|
||||||
|
|
||||||
var videoType = (item.VideoType || "").toLowerCase();
|
var videoType = (item.VideoType || "").toLowerCase();
|
||||||
|
|
||||||
|
var expirementalText = "This feature is expiremental. It may not work at all with some titles. Do you wish to continue?";
|
||||||
|
|
||||||
if (videoType == "dvd") {
|
if (videoType == "dvd") {
|
||||||
|
|
||||||
self.playWithWarning(items, startPosition, user, "dvdstreamconfirmed", "Dvd Folder Streaming");
|
self.playWithWarning(items, startPosition, user, "dvdstreamconfirmed", "Dvd Folder Streaming", expirementalText);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (videoType == "bluray") {
|
else if (videoType == "bluray") {
|
||||||
|
|
||||||
self.playWithWarning(items, startPosition, user, "bluraystreamconfirmed", "Blu-ray Folder Streaming");
|
self.playWithWarning(items, startPosition, user, "bluraystreamconfirmed", "Blu-ray Folder Streaming", expirementalText);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (videoType == "iso") {
|
else if (videoType == "iso") {
|
||||||
|
@ -774,22 +776,28 @@
|
||||||
|
|
||||||
if (isoType == "dvd") {
|
if (isoType == "dvd") {
|
||||||
|
|
||||||
self.playWithWarning(items, startPosition, user, "dvdisostreamconfirmed", "Dvd Iso Streaming");
|
self.playWithWarning(items, startPosition, user, "dvdisostreamconfirmed", "Dvd Iso Streaming", expirementalText);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (isoType == "bluray") {
|
else if (isoType == "bluray") {
|
||||||
|
|
||||||
self.playWithWarning(items, startPosition, user, "blurayisostreamconfirmed", "Blu-ray Iso Streaming");
|
self.playWithWarning(items, startPosition, user, "blurayisostreamconfirmed", "Blu-ray Iso Streaming", expirementalText);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if ($.browser.msie && videoType) {
|
||||||
|
|
||||||
|
self.playWithWarning(items, startPosition, user, "iewebmplugin", "Internet Explorer Playback", "For optimal video playback of Internet Explorer desktop edition, please install google's webm plugin for IE.<br/><br/><a target='_blank' href='https://tools.google.com/dlpage/webmmf'>https://tools.google.com/dlpage/webmmf</a>");
|
||||||
|
return;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
self.playInternal(items[0], startPosition, user);
|
self.playInternal(items[0], startPosition, user);
|
||||||
self.onPlaybackStarted(items);
|
self.onPlaybackStarted(items);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
self.playWithWarning = function (items, startPosition, user, localStorageKeyName, header) {
|
self.playWithWarning = function (items, startPosition, user, localStorageKeyName, header, text) {
|
||||||
|
|
||||||
localStorageKeyName += new Date().getMonth();
|
localStorageKeyName += new Date().getMonth();
|
||||||
|
|
||||||
|
@ -802,7 +810,7 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Dashboard.confirm("This feature is expiremental. It may not work at all with some titles. Do you wish to continue?", header, function (result) {
|
Dashboard.confirm(text, header, function (result) {
|
||||||
|
|
||||||
if (result) {
|
if (result) {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue