an image to player, first ideas to make a playback
This commit is contained in:
parent
fd255bad0a
commit
2a4dce3616
10 changed files with 192 additions and 10 deletions
|
@ -211,7 +211,7 @@
|
|||
if (this._playerCtl) {
|
||||
this._mainLayout.removePlayer();
|
||||
this._playerCtl._onSocketDisconnected();
|
||||
this._playerCtl.uneregister();
|
||||
this._playerCtl.unregister();
|
||||
this._playerCtl.destructor();
|
||||
this._playerCtl = undefined;
|
||||
}
|
||||
|
|
|
@ -19,3 +19,4 @@ add_jslib(wController/file/file.js lib/wController/file/file ${LORGAR_DIR} brows
|
|||
add_jslib(wController/image.js lib/wController/image ${LORGAR_DIR} browser)
|
||||
add_jslib(wController/button.js lib/wController/button ${LORGAR_DIR} browser)
|
||||
add_jslib(wController/player.js lib/wController/player ${LORGAR_DIR} browser)
|
||||
add_jslib(wController/imageById.js lib/wController/imageById ${LORGAR_DIR} browser)
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
deps.push("views/button");
|
||||
deps.push("views/label");
|
||||
deps.push("views/view");
|
||||
deps.push("views/image");
|
||||
|
||||
deps.push("lib/wController/localModel");
|
||||
|
||||
|
@ -17,6 +18,7 @@
|
|||
var Button = require("views/button");
|
||||
var Label = require("views/label");
|
||||
var View = require("views/view");
|
||||
var Image = require("views/image");
|
||||
|
||||
var Model = require("lib/wController/localModel");
|
||||
|
||||
|
@ -28,6 +30,7 @@
|
|||
GridLayout.fn.constructor.call(this, ctrl, options);
|
||||
|
||||
this._playPause = null;
|
||||
this._picture = null;
|
||||
this._cpbCtrl = null;
|
||||
this._infoModels = {
|
||||
artist: new Model(null, "artist: unknown"),
|
||||
|
@ -80,6 +83,13 @@
|
|||
this._cpbCtrl.on("newElement", this._onCpbNewElement, this);
|
||||
this._cpbCtrl.on("removeElement", this._onCpbRemoveElement, this);
|
||||
break;
|
||||
case ItemType.straight.picture:
|
||||
this._picture = new Image(ctrl, {
|
||||
maxWidth: 100,
|
||||
maxHeight: 100
|
||||
});
|
||||
this.append(this._picture, 0, 0, 3, 1);
|
||||
break;
|
||||
}
|
||||
},
|
||||
_onCpbNewElement: function(key, value) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue