mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
697257670c
commit
02ae9ec81e
123 changed files with 13600 additions and 531 deletions
26
dashboard-ui/cordova/android/vlcplayer.js
vendored
26
dashboard-ui/cordova/android/vlcplayer.js
vendored
|
@ -151,18 +151,36 @@
|
|||
|
||||
var serverUrl = ApiClient.serverAddress();
|
||||
|
||||
var videoStream = mediaSource.MediaStreams.filter(function (stream) {
|
||||
return stream.Type == "Video";
|
||||
})[0];
|
||||
var videoWidth = videoStream ? videoStream.Width : null;
|
||||
var videoHeight = videoStream ? videoStream.Height : null;
|
||||
|
||||
var videoQualityOptions = MediaPlayer.getVideoQualityOptions(videoWidth, videoHeight).map(function (o) {
|
||||
return {
|
||||
Name: o.name,
|
||||
Value: o.bitrate + "-" + o.maxHeight
|
||||
};
|
||||
});
|
||||
|
||||
var deviceProfile = MediaPlayer.getDeviceProfile();
|
||||
|
||||
AndroidVlcPlayer.playVideoVlc(val,
|
||||
startPosMs,
|
||||
item.Name,
|
||||
JSON.stringify(mediaSource),
|
||||
JSON.stringify(playbackStartInfo),
|
||||
ApiClient.serverInfo().Id,
|
||||
serverUrl,
|
||||
ApiClient.appName(),
|
||||
ApiClient.appVersion(),
|
||||
ApiClient.deviceId(),
|
||||
ApiClient.deviceName(),
|
||||
ApiClient.getCurrentUserId(),
|
||||
ApiClient.accessToken());
|
||||
ApiClient.accessToken(),
|
||||
JSON.stringify(deviceProfile),
|
||||
JSON.stringify(videoQualityOptions));
|
||||
|
||||
playerState.currentSrc = val;
|
||||
self.report('playing', null, startPosMs, false, 100);
|
||||
|
@ -236,10 +254,14 @@
|
|||
return deferred.promise();
|
||||
};
|
||||
|
||||
self.onActivityClosed = function (wasStopped, hasError, endPositionMs) {
|
||||
self.onActivityClosed = function (wasStopped, hasError, endPositionMs, currentSrc) {
|
||||
|
||||
playerState.currentTime = endPositionMs;
|
||||
|
||||
if (currentSrc) {
|
||||
playerState.currentSrc = currentSrc;
|
||||
}
|
||||
|
||||
if (wasStopped) {
|
||||
MediaPlayer.stop(false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue