mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
updated translations
This commit is contained in:
parent
59eea6f602
commit
78c8d7d596
2 changed files with 6 additions and 7 deletions
|
@ -82,7 +82,7 @@
|
||||||
// v4 Id F4EB2E8E
|
// v4 Id F4EB2E8E
|
||||||
// default receiver chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID
|
// default receiver chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID
|
||||||
|
|
||||||
var applicationID = "69C59853";
|
var applicationID = "F4EB2E8E";
|
||||||
|
|
||||||
// request session
|
// request session
|
||||||
var sessionRequest = new chrome.cast.SessionRequest(applicationID);
|
var sessionRequest = new chrome.cast.SessionRequest(applicationID);
|
||||||
|
|
|
@ -725,7 +725,7 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
self.createStreamInfo = function (type, item, mediaSource, startPosition) {
|
self.createStreamInfo = function (item, mediaSource, startPosition) {
|
||||||
|
|
||||||
var mediaUrl;
|
var mediaUrl;
|
||||||
var contentType;
|
var contentType;
|
||||||
|
@ -734,6 +734,8 @@
|
||||||
var startPositionInSeekParam = startPosition ? (startPosition / 10000000) : 0;
|
var startPositionInSeekParam = startPosition ? (startPosition / 10000000) : 0;
|
||||||
var seekParam = startPositionInSeekParam ? '#t=' + startPositionInSeekParam : '';
|
var seekParam = startPositionInSeekParam ? '#t=' + startPositionInSeekParam : '';
|
||||||
|
|
||||||
|
var type = item.MediaType.toLowerCase();
|
||||||
|
|
||||||
if (type == 'video') {
|
if (type == 'video') {
|
||||||
|
|
||||||
contentType = 'video/' + mediaSource.Container;
|
contentType = 'video/' + mediaSource.Container;
|
||||||
|
@ -827,14 +829,13 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var mediaSource;
|
|
||||||
var deviceProfile = self.getDeviceProfile();
|
var deviceProfile = self.getDeviceProfile();
|
||||||
|
|
||||||
getPlaybackInfo(item.Id, deviceProfile, startPosition).done(function (result) {
|
getPlaybackInfo(item.Id, deviceProfile, startPosition).done(function (result) {
|
||||||
|
|
||||||
if (validatePlaybackInfoResult(result)) {
|
if (validatePlaybackInfoResult(result)) {
|
||||||
|
|
||||||
mediaSource = getOptimalMediaSource(item.MediaType, result.MediaSources);
|
var mediaSource = getOptimalMediaSource(item.MediaType, result.MediaSources);
|
||||||
|
|
||||||
if (mediaSource) {
|
if (mediaSource) {
|
||||||
|
|
||||||
|
@ -1522,8 +1523,6 @@
|
||||||
|
|
||||||
var playerElement = this;
|
var playerElement = this;
|
||||||
|
|
||||||
var playSessionId = getParameterByName('PlaySessionId', playerElement.currentSrc);
|
|
||||||
|
|
||||||
$(playerElement).off('.mediaplayerevent').off('ended.playbackstopped');
|
$(playerElement).off('.mediaplayerevent').off('ended.playbackstopped');
|
||||||
|
|
||||||
self.cleanup(playerElement);
|
self.cleanup(playerElement);
|
||||||
|
@ -1618,7 +1617,7 @@
|
||||||
html += '<div class="mediaPlayerAudioContainer" style="display:none;"><div class="mediaPlayerAudioContainerInner">';;
|
html += '<div class="mediaPlayerAudioContainer" style="display:none;"><div class="mediaPlayerAudioContainerInner">';;
|
||||||
}
|
}
|
||||||
|
|
||||||
html += '<audio class="mediaPlayerAudio" controls>';
|
html += '<audio class="mediaPlayerAudio" crossorigin="anonymous" controls>';
|
||||||
html += '</audio></div></div>';
|
html += '</audio></div></div>';
|
||||||
|
|
||||||
$(document.body).append(html);
|
$(document.body).append(html);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue