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

Function CCFrameEncoder

src/test/webm/CCapture.js:128–155  ·  view source on GitHub ↗
( settings )

Source from the content-addressed store, hash-verified

126}
127
128function CCFrameEncoder( settings ) {
129
130 var _handlers = {};
131
132 this.settings = settings;
133
134 this.on = function(event, handler) {
135
136 _handlers[event] = handler;
137
138 };
139
140 this.emit = function(event) {
141
142 var handler = _handlers[event];
143 if (handler) {
144
145 handler.apply(null, Array.prototype.slice.call(arguments, 1));
146
147 }
148
149 };
150
151 this.filename = settings.name || guid();
152 this.extension = '';
153 this.mimeType = '';
154
155}
156
157CCFrameEncoder.prototype.start = function(){};
158CCFrameEncoder.prototype.stop = function(){};

Callers

nothing calls this directly

Calls 2

guidFunction · 0.85
applyMethod · 0.45

Tested by

no test coverage detected