Skip to content

Commit

Permalink
Merge pull request #254 from ksvc/v4.4.0-20061
Browse files Browse the repository at this point in the history
V4.4.0 20061
  • Loading branch information
chriszeng87 authored Oct 18, 2017
2 parents 7fcc360 + a18fcc6 commit 1d77ea0
Show file tree
Hide file tree
Showing 200 changed files with 20,514 additions and 5,099 deletions.
18 changes: 17 additions & 1 deletion demo/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
<uses-permission android:name="android.permission.BROADCAST_STICKY"/>

<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />
Expand Down Expand Up @@ -53,9 +54,24 @@
</intent-filter>
</activity>
<activity
android:name="com.ksyun.media.streamer.demo.CameraActivity"
android:name="com.ksyun.media.streamer.demo.BaseCameraActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:theme="@style/Theme.RiseAnimation">
</activity>
<activity
android:name="com.ksyun.media.streamer.demo.StdCameraActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:theme="@style/Theme.RiseAnimation">
</activity>
<activity
android:name="com.ksyun.media.streamer.demo.FloatCameraActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:theme="@style/Theme.RiseAnimation">
</activity>
<activity android:name="com.ksyun.media.streamer.demo.FloatViewActivity"
Expand Down
Binary file modified demo/assets/KSYResource/0_pink.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/assets/KSYResource/0_ruddy2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/assets/KSYResource/10_sunshine_night.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/assets/KSYResource/11_ruddy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/assets/KSYResource/12_sunshine.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/assets/KSYResource/13_nature.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/assets/KSYResource/14_amatorka.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/assets/KSYResource/15_elegance_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/assets/KSYResource/1_freshy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/assets/KSYResource/2_beauty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/assets/KSYResource/3_sweety.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/assets/KSYResource/4_sepia.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/assets/KSYResource/5_blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/assets/KSYResource/6_nostalgia.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/assets/KSYResource/7_sakura.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/assets/KSYResource/8_sakura_night.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/assets/KSYResource/9_ruddy_night.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/assets/KSYResource/blackboard_1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/assets/KSYResource/blowout_1977.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/assets/KSYResource/brannan_blowout.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/assets/KSYResource/brannan_contrast.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/assets/KSYResource/earlybird_blowout.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/assets/KSYResource/edge_burn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/assets/KSYResource/hefe_metal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/assets/KSYResource/hefe_soft_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/assets/KSYResource/hudson_background.png
Binary file modified demo/assets/KSYResource/overlay_map.png
Binary file modified demo/assets/KSYResource/sierra_vignette.png
Binary file modified demo/assets/KSYResource/soft_light.png
Binary file modified demo/assets/KSYResource/sutro_edge_burn.png
Binary file modified demo/assets/KSYResource/sutro_metal.png
Binary file modified demo/assets/KSYResource/toaster_metal.png
Binary file modified demo/assets/KSYResource/toaster_soft_light.png
Binary file modified demo/assets/KSYResource/vignette_map.png
6 changes: 5 additions & 1 deletion demo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.1'
classpath 'com.android.tools.build:gradle:2.3.3'
}
}
allprojects {
Expand All @@ -20,6 +20,10 @@ dependencies {
compile 'com.facebook.fresco:fresco:1.4.0'
compile 'com.facebook.fresco:animated-gif:1.4.0'
compile 'com.facebook.fresco:animated-webp:1.4.0'
compile 'com.google.code.gson:gson:2.7'
compile 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
compile 'com.h6ah4i.android.widget.verticalseekbar:verticalseekbar:0.7.2'
}

android {
Expand Down
Binary file modified demo/libs/arm64-v8a/libksyapm.so
Binary file not shown.
Binary file modified demo/libs/arm64-v8a/libksylive.so
Binary file not shown.
Binary file modified demo/libs/armeabi-v7a/libksyapm.so
Binary file not shown.
Binary file modified demo/libs/armeabi-v7a/libksylive.so
Binary file not shown.
Binary file modified demo/libs/armeabi/libksyapm.so
Binary file not shown.
Binary file modified demo/libs/armeabi/libksylive.so
Binary file not shown.
Binary file modified demo/libs/ksylive.jar
Binary file not shown.
Binary file modified demo/libs/x86/libksyapm.so
Binary file not shown.
Binary file modified demo/libs/x86/libksylive.so
Binary file not shown.
Binary file removed demo/res/drawable-xhdpi/exposure.png
Diff not rendered.
Binary file removed demo/res/drawable-xhdpi/record_exit_disable.png
Diff not rendered.
Binary file removed demo/res/drawable-xhdpi/record_exit_normal.png
Diff not rendered.
Binary file removed demo/res/drawable-xhdpi/record_exitsure_normal.png
Diff not rendered.
Binary file added demo/res/drawable-xhdpi/screen_cap_disable.png
Binary file added demo/res/drawable-xhdpi/screen_cap_highlight.png
Binary file added demo/res/drawable-xhdpi/screen_cap_normal.png
9 changes: 9 additions & 0 deletions demo/res/drawable/camera_exposure_icon.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>

<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/camera_exposure_disable"
android:state_enabled="false"/>
<item android:drawable="@drawable/camera_exposure_highlight"
android:state_pressed="true"/>
<item android:drawable="@drawable/camera_exposure_normal"/>
</selector>
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/record_flash_disable"
<item android:drawable="@drawable/camera_flash_disable"
android:state_enabled="false"/>
<item android:drawable="@drawable/record_flash_highlighted"
<item android:drawable="@drawable/camera_flash_highlight"
android:state_pressed="true"/>
<item android:drawable="@drawable/record_flash_normal"/>
<item android:drawable="@drawable/camera_flash_normal"/>
</selector>
9 changes: 9 additions & 0 deletions demo/res/drawable/camera_switch_icon.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>

<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/camera_switch_disable"
android:state_enabled="false"/>
<item android:drawable="@drawable/camera_switch_highlight"
android:state_pressed="true"/>
<item android:drawable="@drawable/camera_switch_normal"/>
</selector>
11 changes: 0 additions & 11 deletions demo/res/drawable/recorder_delete_icon.xml

This file was deleted.

9 changes: 0 additions & 9 deletions demo/res/drawable/recorder_rotate_icon.xml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>

<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/record_add_disable"
<item android:drawable="@drawable/screen_cap_disable"
android:state_enabled="false"/>
<item android:drawable="@drawable/record_add_highlight"
<item android:drawable="@drawable/screen_cap_highlight"
android:state_pressed="true"/>
<item android:drawable="@drawable/record_add_normal"/>
<item android:drawable="@drawable/screen_cap_normal"/>
</selector>
9 changes: 9 additions & 0 deletions demo/res/drawable/view_add_icon.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>

<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/view_add_disable"
android:state_enabled="false"/>
<item android:drawable="@drawable/view_add_highlight"
android:state_pressed="true"/>
<item android:drawable="@drawable/view_add_normal"/>
</selector>
123 changes: 123 additions & 0 deletions demo/res/layout/audio_func_fragment.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:orientation="horizontal">

<CheckBox
android:id="@+id/bgm"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="10dp"
android:layout_marginStart="10dp"
android:layout_weight="1"
android:background="#11123456"
android:checked="false"
android:text="背景音乐"
android:textColor="@color/font_color_35"
android:textSize="@dimen/font_size_28px">
</CheckBox>

<TextView
android:id="@+id/bgm_filter"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_gravity="center"
android:layout_marginLeft="10dp"
android:layout_weight="1"
android:gravity="center"
android:background="#11123456"
android:text="bgm升降调"
android:textColor="@color/font_color_35"
android:textSize="@dimen/font_size_28px">
</TextView>

<TextView
android:id="@+id/audio_filter"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_gravity="center"
android:layout_marginLeft="10dp"
android:layout_weight="1"
android:gravity="center"
android:background="#11123456"
android:text="@string/audio_filter_selected"
android:textColor="@color/font_color_35"
android:textSize="@dimen/font_size_28px">
</TextView>
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:orientation="horizontal">

<CheckBox
android:id="@+id/audio_preview"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="10dp"
android:layout_marginStart="10dp"
android:layout_weight="1"
android:background="#11123456"
android:checked="false"
android:text="耳返"
android:textColor="@color/font_color_35"
android:textSize="@dimen/font_size_28px">
</CheckBox>

<CheckBox
android:id="@+id/mute"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="10dp"
android:layout_marginStart="10dp"
android:layout_weight="1"
android:background="#11123456"
android:checked="false"
android:text="静音"
android:textColor="@color/font_color_35"
android:textSize="@dimen/font_size_28px">
</CheckBox>

<CheckBox
android:id="@+id/ns"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="10dp"
android:layout_marginStart="10dp"
android:layout_weight="1"
android:background="#11123456"
android:checked="false"
android:text="降噪"
android:textColor="@color/font_color_35"
android:textSize="@dimen/font_size_28px">
</CheckBox>

<CheckBox
android:id="@+id/audio_ld"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="10dp"
android:layout_marginStart="10dp"
android:layout_weight="1"
android:background="#11123456"
android:checked="false"
android:text="低延迟"
android:textColor="@color/font_color_35"
android:textSize="@dimen/font_size_28px">
</CheckBox>
</LinearLayout>
</LinearLayout>
23 changes: 23 additions & 0 deletions demo/res/layout/base_camera_actionbar.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:gravity="center_vertical"
android:orientation="horizontal">

<ImageView
android:id="@+id/switch_cam"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:scaleType="centerInside"
android:src="@drawable/camera_switch_icon"/>

<ImageView
android:id="@+id/flash"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:scaleType="centerInside"
android:src="@drawable/camera_flash_icon">
</ImageView>
</LinearLayout>
70 changes: 70 additions & 0 deletions demo/res/layout/base_camera_activity.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/root"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#ff000000" >

<android.opengl.GLSurfaceView
android:id="@+id/gl_surface_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentBottom="true"
android:layout_alignParentTop="true" />

<Chronometer
android:id="@+id/chronometer"
android:layout_width="wrap_content"
android:layout_height="46dp"
android:layout_centerHorizontal="true"
android:layout_alignParentTop="true"
android:format="%s"
android:gravity="center"
android:textColor="@color/font_color_35"
android:textSize="@dimen/font_size_38px" />

<include
android:id="@+id/actionbar"
android:layout_width="wrap_content"
android:layout_height="46dp"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_marginRight="10dp"
android:layout_marginEnd="10dp"
layout="@layout/base_camera_actionbar" />

<TextView
android:id="@+id/url"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/actionbar"
android:layout_marginTop="4dp"
android:gravity="center"
android:textColor="@color/font_color_35"
android:textSize="@dimen/font_size_36px" />

<TextView
android:id="@+id/debug_info"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/url"
android:layout_marginTop="8dp"
android:gravity="left"
android:textColor="@color/font_color_41"
android:textSize="@dimen/font_size_22px" />

<TextView
android:id="@+id/start_stream_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="20dp"
android:gravity="center"
android:background="#11123456"
android:text="@string/click_to_shoot"
android:textColor="@color/font_color_35"
android:textSize="@dimen/font_size_36px">
</TextView>
</RelativeLayout>
Loading

0 comments on commit 1d77ea0

Please # to comment.