/usr/share/SuperCollider/HelpSource/Classes/MovieView.schelp is in supercollider-common 1:3.8.0~repack-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 | CLASS:: MovieView
summary:: A view responding to Wacom tablet
categories:: GUI>Views
related:: Classes/Image
DESCRIPTION::
MovieView can play movies such as .mov and mpg, and image files like jpg, png, tiff and others.
note:: Not available in strong::Qt GUI:: ::
note:: strong:: prerequisites in SwingOSC ::
JSCMovieView is currently based on the Java Media Framework (JMF) which is not part of the standard java environment (Java SE) but needs to be installed separately. There is a reference implementation from Sun available for Linux, Windows and Mac OS X. It can be downloaded from http://java.sun.com/products/java-media/jmf/index.jsp (note: for Mac OS X you need the generic cross-platform version).
The reference implementation has rather poor media support (check this page: http://java.sun.com/products/java-media/jmf/2.1.1/formats.html ), so you might need to convert your movies or look out for extra JMF plug-ins. A really good plug-in is fobs4j !(ffpmeg objects for java) -> http://fobs.sourceforge.net/ !
You need to install the "jmf.jar" file in your system's java extensions folder, e.g. on Mac OS X that's "/Library/Java/Extensions". For fobs, do the same with "fobs4jmf.jar" and copy "jmf.properties" into "SwingOSC/build".
(in the future, FMJ (freedom for media in java) might be an alternative: http://fmj-sf.net)
::
CLASSMETHODS::
PRIVATE:: key
INSTANCEMETHODS::
METHOD:: path
The path to the movie.
SUBSECTION:: Movie Control
METHOD:: start
METHOD:: stop
METHOD:: stepForward
METHOD:: stepBack
METHOD:: gotoEnd
METHOD:: gotoBeginning
METHOD:: frame
Go to frame.
argument::
The frame index; an Integer.
METHOD:: playSelectionOnly
argument::
A Boolean.
METHOD:: skipFrames
argument::
An Integer.
METHOD:: muted
argument::
A Boolean.
METHOD:: loopMode
Possible loop modes:
list::
## 0 - Playback runs forward and backward between both endpoints.
## 1 - Restarts playback at beginning when end is reached.
## 2 - Playback stops when end is reached.
::
argument::
One of the above Integers.
METHOD:: rate
argument::
An instance of Float. 1.0 is the normal rate.
SUBSECTION:: Movie Editing
METHOD:: copy
METHOD:: clear
METHOD:: cut
METHOD:: paste
METHOD:: editable
argument::
A Boolean.
METHOD:: currentTime
The current time.
argument::
Defaults to code::nil::.
SUBSECTION:: Appearance
METHOD:: showControllerAndAdjustSize
argument:: show
A Boolean. Default is code::true::.
argument:: adjust
A Boolean. Default is code::true::.
METHOD:: resizeWithMagnification
Resizes the whole view, adjusts its contents.
argument:: size
A Float.
METHOD:: fixedAspectRatio
argument::
A Boolean.
EXAMPLES::
code::
(
w = Window("mov").front;
b = Button(w, Rect(0, 0, 150, 20))
.states_([["pick a file"]])
.action_({ File.openDialog("", { |path| m.path_(path) }) });
m = MovieView(w, Rect(0,20,360, 260));
)
// random-pick a tiff from the Help folder
m.path_("Help/*/*/*.tiff".pathMatch.choose);
// or point it to a movie (you may have that one too):
m.path_("/Library/Application\ Support/iDVD/Tutorial/Movies/Our\ First\ Snowman.mov");
m.start; // playback
m.muted_(false); // thank god
m.stop;
//rate
m.rate_(1);
// backwards
m.gotoEnd.rate_(-1).start;
// select a range on the controller and play it
m.rate_(1).playSelectionOnly_(true).start;
// loopModes:
m.loopMode_(1); // only one direction
m.loopMode_(0).start; // back and forth
m.stop;
m.gotoBeginning;
// single steps
m.stepForward;
10.do { m.stepForward; };
m.stepBack;
// select with shift-drag, copy paste between movieviews or quicktime player
m.editable_(true);
m.showControllerAndAdjustSize(true, true);
// resize compared to image size:
m.resizeWithMagnification(0.25);
//goto time (in seconds)
m.currentTime_(1);
// not there yet, but would be nice to have:
// startFrame, length
m.setSelection_(20, 15);
m.frame_(frame); // jump to frame
m.frame.postln; // poll current frame pos
::
|