plasma-framework/scriptengines/javascript/tests/script-mediaplayer/contents/code/main.js
Marco Martin de7ebc6d69 an example video player in FIVE lines of javascript code :P
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=923866
2009-02-09 16:15:41 +00:00

9 lines
138 B
JavaScript

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