If you are using this library in one of your applications and would like to thank me:
- You need to create a gameobject name 'AndroidUtils' and add 'AndroidUtils.cs' script to it.
- When you want to start capturing your screen, call 'androidUtils.StartRecording()'. 'androidUtils' is a reference to AndroidUtils.cs instance.
- When you want to stop capturing your screen, call 'androidUtils.StopRecording()'. 'androidUtils' is a reference to AndroidUtils.cs instance.
- Record android screen.
- Request runtime permissions like Audio..
- Refresh android gallery so you capture file will show up on top.
- NativeShare for native send or share a video, image or text via social network, sms and email.
- ShowToast show android toast message.
- You might need to adjust the 'SCREEN_WIDTH' constant in AndroidUtils.cs for best video resolution. If 'SCREEN_WIDTH' is too big, your app may crash.
- The plugin only support api 21 and higher.
- Some Mediatek devices will crash if DEFAULT video encoder is used. Change to H264 may solve the problem.
androidRecorder.Call("setupVideo", width, height,bitrate, fps,audioEnable,VideoEncoder.H264.ToString());
Visit this site to get a details explaining of Unity_Android_Screen_Recorder.