MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / actionPerformed

Method actionPerformed

src/test/Test_Video.java:228–239  ·  view source on GitHub ↗
(ActionEvent e)

Source from the content-addressed store, hash-verified

226 HTML5Video.addActionListener(jsvideo, new ActionListener() {
227
228 @Override
229 public void actionPerformed(ActionEvent e) {
230 String event = e.getActionCommand();
231// Object[] sources = (Object[]) e.getSource();
232// HTML5Video target = (HTML5Video) sources[0];
233// Object jsevent = sources[1];
234 System.out.println(event + " " + HTML5Video.getCurrentTime(jsvideo));
235 if (cbCapture != null && cbCapture.isSelected() && event.equals("canplaythrough")) {
236 grabImage();
237 }
238
239 }
240
241 });
242

Callers 1

playVideoDiscretelyMethod · 0.45

Calls 15

getCurrentTimeMethod · 0.95
grabImageMethod · 0.95
setCurrentTimeMethod · 0.95
getPropertyMethod · 0.95
removePlayListenerMethod · 0.95
playVideoDiscretelyMethod · 0.95
nextFrameMethod · 0.95
showAllPropertiesMethod · 0.95
doubleValueMethod · 0.80
getActionCommandMethod · 0.65

Tested by

no test coverage detected