moviemasher / moviemasher.js

JavaScript library for realtime, browser-based video and audio editing
Mozilla Public License 2.0
305 stars 62 forks source link

getting a current frame graphics data #15

Closed think-01 closed 6 years ago

think-01 commented 7 years ago

lets say we have a mash and a player paused in particular frame - how can I get to the current bitmap data of clips visible on scene?

I mean, I know I can do:

pt.getCurrentUrls = function( )
  {
    var clips;
    clips = Mash.range_clips(this.__mash, this.__time, false);
    return Mash.urls_for_clips_by_type(this.__mash, clips, this.__time);
  };

inside Player object definition however I wish to do it without a need to modify moviemasher.js file is that possible? ( Mash is obviously not visible outside due to the module definition style )

syntropo commented 7 years ago

Darn, I've been meaning to make all the objects accessible from MovieMasher, like Constant and Colors are - happy to do that, but it won't make its way into the AMI in Amazon for a while...