The extension for Xcratch
Make the camera selectable. This is an extension to help with extensions that use all cameras.
この拡張はビデオ入力を利用する他の拡張と組み合わせて使います。 Scratch でビデオ入力を扱う場合、複数のカメラがある端末でも1つのカメラしか利用することが出来ません。 ですがこの拡張を使うと、端末で利用可能な全てのカメラ(フロントカメラやバックカメラなど)をビデオ入力デバイスとして選択して利用可能になります。
以下は、カメラセレクター拡張機能を使用したサンプルプロジェクトのスクリーンショットです。
Play Example Project to look at what you can do with "CameraSelector" extension.
<iframe src="https://xcratch.github.io/editor/player#https://tfabworks.github.io/xcx-cameraselector/projects/example.sb3" width="540px" height="460px" allow="camera"></iframe>This extension can be used with other extension in Xcratch.
- Open Xcratch Editor
- Click 'Add Extension' button
- Select 'Extension Loader' extension
- Type the module URL in the input field
https://tfabworks.github.io/xcx-cameraselector/dist/cameraselector.mjs
Run register script to install this extension on the local Xcratch for testing.
npm run registerRun build script to bundle this extension into a module file which could be loaded on Xcratch.
npm run buildOpen this page from https://tfabworks.github.io/xcx-cameraselector/
Contributions, issues and feature requests are welcome!
Feel free to check issues page.