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

Method getMP4Codec

src/test/Test_Video.java:69–79  ·  view source on GitHub ↗
(String fname, String name)

Source from the content-addressed store, hash-verified

67 }
68
69 private static String getMP4Codec(String fname, String name) {
70 try {
71 VideoReader vr = new VideoReader(fname);
72 vr.getContents(true);
73 String info = vr.getFileType() + "|" + vr.getCodec();
74 return (name == null ? fname : name) + ": " + info;
75 } catch (IOException e) {
76 e.printStackTrace();
77 return fname + "?";
78 }
79 }
80
81 private HTML5Video jsvideo;
82 private JLabel imageLabel;

Callers 2

mainMethod · 0.95
createVideoLabelMethod · 0.95

Calls 3

getContentsMethod · 0.95
getFileTypeMethod · 0.95
getCodecMethod · 0.95

Tested by

no test coverage detected