plasma-framework/scriptengines/javascript/tests/script-mediaplayer/contents/code/main.js
Aaron J. Seigo 71789306b7 ok, this time _really_ move it over. svn is sometimes a little too forgiving / sloppy :(
svn path=/trunk/KDE/kdebase/runtime/; revision=967245
2009-05-13 00:55:25 +00:00

8 lines
179 B
JavaScript

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