mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
First separation commit.
Added LICENSE, README.md, CONTRIBUTORS.md
This commit is contained in:
parent
09513af31b
commit
4678528d00
657 changed files with 422 additions and 0 deletions
|
@ -1,25 +0,0 @@
|
|||
define(["browser", "require", "events", "apphost", "loading", "dom", "playbackManager", "appRouter", "appSettings", "connectionManager"], function(browser, require, events, appHost, loading, dom, playbackManager, appRouter, appSettings, connectionManager) {
|
||||
"use strict";
|
||||
|
||||
function PhotoPlayer() {
|
||||
var self = this;
|
||||
self.name = "Photo Player", self.type = "mediaplayer", self.id = "photoplayer", self.priority = 1
|
||||
}
|
||||
return PhotoPlayer.prototype.play = function(options) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
require(["slideshow"], function(slideshow) {
|
||||
var index = options.startIndex || 0;
|
||||
new slideshow({
|
||||
showTitle: !1,
|
||||
cover: !1,
|
||||
items: options.items,
|
||||
startIndex: index,
|
||||
interval: 11e3,
|
||||
interactive: !0
|
||||
}).show(), resolve()
|
||||
})
|
||||
})
|
||||
}, PhotoPlayer.prototype.canPlayMediaType = function(mediaType) {
|
||||
return "photo" === (mediaType || "").toLowerCase()
|
||||
}, PhotoPlayer
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue