SystemRecApi

项目地址:Tornaco/SystemRecApi
简介:Android 录屏框架,目的是使用 system uid 实现(内录)submix 的录制。
更多:作者   提 Bug   
标签:

Use in gradle

  1. Add it in your root build.gradle at the end of repositories:
     allprojects {
         repositories {
             ...
             maven { url 'https://jitpack.io' }
         }
     }
    
  2. Add the dependency
    dependencies {
             compile 'com.github.Tornaco:SystemRecApi:v1.3'
     }
    

Build in travis

Build Status

Usage

**All op can be achieved by RecBridgeServiceProxy

  1. How to get an instance of proxy.

    RecBridgeServiceProxy proxy = RecBridgeServiceProxy.from(this);
    
  2. Service intent.

    RecBridgeServiceProxy.getIntent();
    
  3. Start

    proxy.start(IParam.builder()
                 .stopOnShake(true)
                 .path("path")
                 .orientation(Orientations.AUTO)
                 .audioSource(AudioSource.R_SUBMIX)
                 .frameRate(60)
                 .shutterSound(true)
                 .build(), new IToken.Stub() {
             @Override
             public String getDescription() throws RemoteException {
                 return "Description about your app";
             }
    
             @Override
             public void onDeny() throws RemoteException {
    
             }
    
             @Override
             public void onAllow() throws RemoteException {
    
             }
    
             @Override
             public void onAllowRemember() throws RemoteException {
    
             }
         });
    
  4. Stop

    proxy.stop();
    
  5. Watch(sticky)

    proxy.watch(new IWatcher.Stub() {
             @Override
             public void onStart() throws RemoteException {
    
             }
    
             @Override
             public void onStop() throws RemoteException {
    
             }
    
             @Override
             public void onElapsedTimeChange(String s) throws RemoteException {
    
             }
         });
    
  6. Check permission(unnecesary)

    proxy.checkSelfPermission()
    
Android 开发经验分享
C 轮融资近 30 亿元理财推荐
Android 开发经验分享
C 轮融资近 30 亿元理财推荐