Skip to content
Snippets Groups Projects
Commit 0e58880c authored by Leo Ma's avatar Leo Ma
Browse files

Video as HD mode


Signed-off-by: default avatarLeo Ma <begeekmyfriend@gmail.com>
parent 786c8fdf
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -47,7 +47,7 @@ public class MainActivity extends Activity implements SrsRecordHandler.SrsRecord
mPublisher.setRecordHandler(new SrsRecordHandler(this));
mPublisher.setPreviewResolution(640, 360);
mPublisher.setOutputResolution(360, 640);
mPublisher.setVideoSmoothMode();
mPublisher.setVideoHDMode();
mPublisher.startCamera();
 
btnSwitchCamera.setOnClickListener(new View.OnClickListener() {
Loading
Loading
Loading
Loading
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
android {
compileSdkVersion 26
buildToolsVersion "26.0.2"
buildToolsVersion '26.0.2'
defaultConfig {
minSdkVersion 21
Loading
Loading
@@ -29,7 +29,7 @@ android {
}
dependencies {
compile fileTree(dir: 'libx264.libs', include: ['*.jar'])
compile fileTree(include: ['*.jar'], dir: 'libx264.libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment