SplitmediaLabsLimited / xjs

XSplit JS Framework. Make plugins for XSplit Broadcaster, quickly and easily.
Other
39 stars 11 forks source link

Native resolution of Camera source #207

Closed paul-lrr closed 6 years ago

paul-lrr commented 6 years ago

At the bottom of the properties window for camera and media sources, it lists the "native" resolution of the source in brackets beside the current dimensions. This is handy to, among other things, let you know if you have scaled a source to be larger then its native resolution or if you want ot set a source to 100% of its original size. I have been trying to find this information through xjs and for media sources, the getFileInfo method lists the native video/image dimensions, but I cannot see a way to get that info from a camera source. It is shown at the bottom of the source properties windows, so xsplit seems to have the information, but is it available through xjs?

mikeybanez commented 6 years ago

This is a property called prop:resolution which we have not yet formally written into xjs but is already accessible by using the internal Broadcaster API. If you're inclined to build your own fork of xjs you can easily add a prop getter for this :)

mikeybanez commented 6 years ago

@SML-MeSo @ravenjohn I think we can also sneak this into the 2.8.0 release as the release is almost done.