Skip to content

Commit

Permalink
Bump to v2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Xlythe committed Sep 13, 2022
1 parent bebe68f commit abc25c1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Where to Download
-----------------
```groovy
dependencies {
implementation 'com.xlythe:camera-view:1.3'
implementation 'com.xlythe:camera-view:2.0'
}
```

Expand Down Expand Up @@ -134,6 +134,7 @@ maxVideoDuration [milliseconds], and maxVideoSize [bytes].
android:layout_width="match_parent"
android:layout_height="match_parent"
camera:quality="high"
camera:lensFacing="back"
camera:maxVideoDuration="10000"
camera:maxVideoSize="10000000" />
```
Expand All @@ -153,6 +154,10 @@ Stops recording
```java
mCameraView.stopRecording();
```
Returns a stream of bytes for both audio and video channels. These bytes can then be played with VideoView.
```java
mCameraView.stream();
```
Toggles between the various cameras on the device (typically the front and back cameras)
```java
mCameraView.toggleCamera();
Expand All @@ -178,6 +183,11 @@ mVideoView.setFile(file);
mVideoView.play();
mVideoView.pause();
```
```java
mVideoView.setStream(new VideoStream.Builder().withAudioStream(...).withVideoStream(...).build());
mVideoView.play();
mVideoView.pause();
```

License
-------
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ bintray.libraryName=CameraView

bintray.groupId=com.xlythe
bintray.artifact=camera-view
bintray.libraryVersion=1.3
bintray.libraryVersion=2.0

bintray.libraryDescription='An Android View that displays the camera'

Expand Down

0 comments on commit abc25c1

Please sign in to comment.