plasma-framework/scriptengines/javascript/tests/script-mediaplayer/contents/code/main.js
Marco Martin 3bc7fa7a01 make VideoWidget::setUsedControls work
separate the enum registering in its own function
use the default controls in the javascript mediaplayer

svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=925912
2009-02-14 13:57:37 +00:00

9 lines
174 B
JavaScript

layout = new LinearLayout(plasmoid);
video = new VideoWidget();
video.usedControls = DefaultControls;
layout.addItem(video);
video.url = startupArguments[0];
video.play();