truiton / screencapture Goto Github PK
View Code? Open in Web Editor NEWHome Page: http://www.truiton.com/2015/05/capture-record-android-screen-using-mediaprojection-apis/
License: Apache License 2.0
Home Page: http://www.truiton.com/2015/05/capture-record-android-screen-using-mediaprojection-apis/
License: Apache License 2.0
Hi
i have used this demo but there is no option to pause and resume the screen cast means if i am leaving my app i don't want to record screen so is there any method for pause and resume the video.
Thanks
Pravin Patidar
The application Crashes while Saving the Video If we rotate screen(Landscape,Portrait ) while the screen has been capturing !
If i start recording the screen while the phone is in landscape mode and end up video recording,while the phone is in portrait mode,The Application crashes!
Here it the log !
**2019-05-03 17:55:55.993 24224-24229/com.truiton.screencapture I/zygote: Increasing code cache capacity to 128KB
2019-05-03 17:55:56.048 24224-24224/com.truiton.screencapture E/MediaRecorder: stop called in an invalid state: 1
2019-05-03 17:55:56.048 24224-24224/com.truiton.screencapture D/AndroidRuntime: Shutting down VM
2019-05-03 17:55:56.052 24224-24224/com.truiton.screencapture E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.truiton.screencapture, PID: 24224
java.lang.IllegalStateException
at android.media.MediaRecorder.stop(Native Method)
at com.truiton.screencapture.MainActivity.onToggleScreenShare(MainActivity.java:129)
at com.truiton.screencapture.MainActivity$1.onClick(MainActivity.java:99)
at android.view.View.performClick(View.java:6256)
at android.widget.CompoundButton.performClick(CompoundButton.java:134)
at android.view.View$PerformClick.run(View.java:24701)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
**
This is very good tutorial.
But application goes into ANR at onActivityResult, mMediaRecorder.start();
Also video file is created at provided part but cannot be played.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.