This is great. Thank you for replay
Benjamin.
In the start up guide I only found examples how to append some control and simple graphics on a sidebar view. Can you give me a little piece of advice how can I do on a full screen view?
This is first sing I tried
CODE
var FullScreen = new KONtx.Class({
ClassName: 'FullScreen',
Extends: KONtx.system.FullscreenView,
initView: function() {
KONtx.mediaplayer.initialize();
this.dialogs = {};
this.dialogs.error = new KONtx.dialogs.Alert({
title: 'Error',
message: $_('I got some error'),
buttons: [
{ label: 'Retray', callback: function() {
KONtx.mediaplayer.playlist.start();
} },
{ label: 'Cansel', callback: function() {
KONtx.application.previousView();
} },
]
});
},
createView: function() {
this.controls.overlay = new KONtx.control.MediaTransportOverlay().appendTo(this);
var drawingArea = new KONtx.element.Container({
styles: {
width: this.width,
height: (this.height - backButton.outerHeight),
vOffset: backButton.outerHeight
}
}).appendTo(this);
var c1 = new KONtx.element.Container({
styles: {
width: 100,
height: 100,
vOffset: 50,
hOffset: 50,
backgroundColor: 'red'
}
}).appendTo(drawingArea);
},
focusView: function() {
this.controls.overlay.focus();
},
updateView: function() {
this._registerHandlers();
this._resetViewport();
this._handlePlaylistUpdate(this.persist.PlaylistID);
},
hideView: function() {
this._unregisterHandlers();
}
});