Skip to content

Commit

Permalink
Update SrsCameraView.java
Browse files Browse the repository at this point in the history
  • Loading branch information
huangjingqiang authored Jan 18, 2017
1 parent d49144a commit 7213ba8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/src/main/java/net/ossrs/yasea/SrsCameraView.java
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ public void setPreviewOrientation(int orientation) {
public int getCameraId() {
return mCamId;
}

public void setFlash(boolean is){
mCamera.getParameters().setFlashMode(Parameters.FLASH_MODE_TORCH);
}

public boolean startCamera() {
worker = new Thread(new Runnable() {
Expand Down

0 comments on commit 7213ba8

Please sign in to comment.