Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
661822e
uvc のライブラリを変更
nobuo-kobayashi Feb 12, 2021
a2da066
UVC の H264、MJPEG ごとにレコーダを分けるように修正
nobuo-kobayashi Feb 12, 2021
0d57151
UVC プラグインの設定画面を一新。
nobuo-kobayashi Feb 15, 2021
49aa48b
アイコンを追加
nobuo-kobayashi Feb 15, 2021
00f09d5
Uncompressed のレコーダを追加
nobuo-kobayashi Feb 16, 2021
8dbf0da
ユーザ認可の設定を設定ファイルから読み込むように修正
nobuo-kobayashi Feb 16, 2021
217284d
オフライン時は設定画面へ遷移できないように修正
nobuo-kobayashi Feb 16, 2021
39593d6
不要なクラスを削除
nobuo-kobayashi Feb 16, 2021
3f0cd1d
切り抜き範囲を設定するように修正
nobuo-kobayashi Feb 16, 2021
4d1c3f8
UVCDeviceService に接続されている UVCService を返却するメソッドを追加
nobuo-kobayashi Feb 18, 2021
47643cd
MJPEG 描画用 Paint を追加
nobuo-kobayashi Feb 18, 2021
a9ffb6c
不要なログを削除
nobuo-kobayashi Feb 18, 2021
ea82ae5
UvcSurfaceDrawingThread で描画を行うサイズの設定を行うように修正
nobuo-kobayashi Feb 18, 2021
045446e
app:destination の値を修正
nobuo-kobayashi Feb 18, 2021
f248d62
使用していないクラスとレイアウトを削除
nobuo-kobayashi Feb 18, 2021
d555167
プラグインの名前の設定を変更
nobuo-kobayashi Feb 18, 2021
24a044c
不要になったメソッドを削除
nobuo-kobayashi Feb 18, 2021
b667cb0
プラグインの設定画面の遷移を修正
nobuo-kobayashi Feb 18, 2021
0ead56b
AndroidManifest.xml に設定するアプリ名を修正
nobuo-kobayashi Feb 18, 2021
d427b13
UVC の設定画面に渡す引数の管理を方法を修正
nobuo-kobayashi Feb 19, 2021
145ef27
不要なログを削除
nobuo-kobayashi Feb 19, 2021
b26ecff
MediaRecorderManager に機能を実装
nobuo-kobayashi Feb 19, 2021
32f6eea
設定画面はホームアイコンを表示しないように修正
nobuo-kobayashi Feb 19, 2021
bcf7605
不要な宣言を削除
nobuo-kobayashi Feb 19, 2021
9ede495
不要になったクラスを削除
nobuo-kobayashi Feb 20, 2021
eb606e0
UVC サービスのオンライン状態を先にチェックするように修正
nobuo-kobayashi Feb 22, 2021
17d078d
Merge branch 'feature_host_camera' into feature_uvc_plugin_update
nobuo-kobayashi Feb 22, 2021
e431d2a
言語切り替え Off の設定を追加
nobuo-kobayashi Feb 22, 2021
619f5b5
previewClipReset に null チェックを追加
nobuo-kobayashi Feb 24, 2021
cfad480
preview、broadcast を行う前にパーミッションを確認するように修正
nobuo-kobayashi Feb 24, 2021
b602252
Merge branch 'feature_host_camera' into feature_uvc_plugin_update
nobuo-kobayashi Feb 24, 2021
d49d9f1
カメラのパーミッションの確認を行うタイミングを USB のアタッチ前に移動
nobuo-kobayashi Feb 24, 2021
cdbb0e2
UVC から切断された時の処理を追加しました。
nobuo-kobayashi Mar 2, 2021
277fc17
Merge branch 'feature_host_camera' into feature_uvc_plugin_update
nobuo-kobayashi Mar 2, 2021
fb2e2ac
Merge branch 'feature_host_camera' into feature_uvc_plugin_update
nobuo-kobayashi Mar 2, 2021
dccb3ff
UVC の処理にエラーチェックを追加
nobuo-kobayashi Mar 2, 2021
7590b9e
Merge branch 'feature_host_camera' into feature_uvc_plugin_update
nobuo-kobayashi Mar 3, 2021
2d907db
Merge branch 'feature_host_camera' into feature_uvc_plugin_update
nobuo-kobayashi Mar 3, 2021
3b0826d
Merge pull request #709 from TakayukiHoshi1984/modify_ca_manually_ins…
masaru-takano Mar 3, 2021
2081559
UVC 用レコーダの設定変更をリスナーに通知するように修正
nobuo-kobayashi Mar 4, 2021
42e7d0e
UVC プラグインのレコーダ情報で返却する情報にエンコーダや描画範囲などを追加
nobuo-kobayashi Mar 4, 2021
07051d6
Merge branch 'feature_host_camera' into feature_uvc_plugin_update
nobuo-kobayashi Mar 9, 2021
def1871
Merge branch 'feature_host_camera' into feature_uvc_plugin_update
nobuo-kobayashi Mar 9, 2021
aeb1d3c
ダイアログのラベル名を修正
nobuo-kobayashi Mar 10, 2021
07cef3e
Merge commit '7e6f5b480adb2f761c2d226b9e7a3a34f5839349' into feature_…
nobuo-kobayashi Mar 10, 2021
57622de
UVCプラグインに配信処理のリトライ処理を追加
nobuo-kobayashi Mar 10, 2021
ac61072
レコーダの同期を取るための処理を追加
nobuo-kobayashi Mar 11, 2021
c476896
MP4への出力を修正
nobuo-kobayashi Mar 12, 2021
b05fe9a
不要なコードを削除
nobuo-kobayashi Mar 12, 2021
4caaf33
Merge pull request #710 from TakayukiHoshi1984/feature_host_camera
TakayukiHoshi1984 Mar 15, 2021
2749cdc
ライブラリのバージョンを更新
nobuo-kobayashi Mar 15, 2021
42412fe
Merge branch 'main' into feature_uvc_plugin_update
nobuo-kobayashi Mar 15, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
26 changes: 22 additions & 4 deletions dConnectDevicePlugin/dConnectDeviceUVC/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: 'com.android.application'

// Create github.properties in root project folder file with
// gpr.usr=GITHUB_USER_ID
// gpr.key=PERSONAL_ACCESS_TOKEN
Expand All @@ -7,8 +8,9 @@ def githubProperties = new Properties()
if (githubPropertiesFile.exists()) {
githubProperties.load(new FileInputStream(githubPropertiesFile))
}

android {
compileSdkVersion 29
compileSdkVersion 30

def getVersionName = { ->
def version
Expand Down Expand Up @@ -46,6 +48,10 @@ android {
}
}

dataBinding {
enabled = true
}

packagingOptions {
exclude 'LICENSE.txt'
exclude 'META-INF/DEPENDENCIES'
Expand All @@ -61,6 +67,7 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

repositories {
maven {
name = "DeviceConnect-Android"
Expand All @@ -76,8 +83,19 @@ android {

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
implementation 'com.github.pedroSG94.rtmp-rtsp-stream-client-java:rtplibrary:1.9.1'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation "androidx.navigation:navigation-fragment:2.3.3"
implementation "androidx.navigation:navigation-ui:2.3.3"
implementation "androidx.navigation:navigation-fragment-ktx:2.3.3"
implementation "androidx.navigation:navigation-ui-ktx:2.3.3"
implementation "androidx.preference:preference:1.1.1"
implementation 'androidx.lifecycle:lifecycle-viewmodel:2.3.0'
implementation 'androidx.lifecycle:lifecycle-livedata:2.3.0'
implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
implementation 'com.github.pedroSG94.rtmp-rtsp-stream-client-java:rtplibrary:1.9.7'
implementation 'org.deviceconnect:dconnect-device-plugin-sdk:2.8.6'
implementation 'org.deviceconnect:libmedia:1.1.2'
implementation project(':libuvccamera')
implementation 'org.deviceconnect:libmedia:1.2.2'
implementation 'org.deviceconnect:libsrt:1.2.2'
implementation project(':libuvc')
}
Original file line number Diff line number Diff line change
@@ -1,34 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.deviceconnect.android.deviceplugin.uvc" >

<uses-feature android:name="android.hardware.usb.host" />
package="org.deviceconnect.android.deviceplugin.uvc">

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />

<uses-feature android:name="android.hardware.usb.host" />

<application
android:name=".UVCDeviceApplication"
android:allowBackup="false"
android:icon="@drawable/dconnect_icon"
android:label="@string/app_name"
android:theme="@style/AppTheme" >

<activity
android:name=".activity.UVCServiceListActivity"
android:label="@string/app_name" >
</activity>
android:label="@string/app_name_uvc"
android:theme="@style/AppTheme">

<activity
android:name=".activity.UVCDeviceSettingsActivity"
android:label="@string/app_name" >
</activity>
<!-- プラグインの設定画面用の Activity -->
<activity android:name=".activity.UVCSettingsActivity"
android:exported="true"
android:label="@string/app_name_uvc_settings"
android:theme="@style/AppCompatTheme" />

<activity
android:name=".activity.ErrorDialogActivity"
android:theme="@style/Theme.Transparent">
</activity>
<!-- プラグイン本体サービス -->
<service
android:name=".UVCDeviceService"
android:exported="true">
<meta-data
android:name="org.deviceconnect.android.deviceplugin"
android:resource="@xml/org_deviceconnect_android_deviceplugin_uvc" />
</service>

<receiver android:name=".UVCDeviceServiceProvider" >
<!-- Device Connect API リクエストのレシーバー -->
<!--
NOTE: 下記のレシーバーは、旧仕様のDevice Connect Managerとの互換性、
およびDevice Connect Managerのアンインストール検知のために残しています.
-->
<receiver
android:name=".UVCDeviceServiceProvider"
android:enabled="true"
android:exported="true">
<meta-data
android:name="org.deviceconnect.android.deviceplugin"
android:resource="@xml/org_deviceconnect_android_deviceplugin_uvc" />
Expand All @@ -39,32 +48,9 @@
<action android:name="org.deviceconnect.action.POST" />
<action android:name="org.deviceconnect.action.DELETE" />
<!-- uninstall notification -->
<action android:name="android.intent.action.PACKAGE_FULLY_REMOVED"/>
<data android:scheme="package"/>
<action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
<data android:scheme="package" />
</intent-filter>
</receiver>

<service
android:name=".UVCDeviceService"
android:exported="true" >
<meta-data
android:name="org.deviceconnect.android.deviceplugin"
android:resource="@xml/org_deviceconnect_android_deviceplugin_uvc" />
</service>

<service
android:name="org.deviceconnect.android.message.DConnectLaunchService"
android:exported="true" >
<meta-data
android:name="org.deviceconnect.android.deviceplugin"
android:value="enable" />
</service>

<activity
android:name="org.deviceconnect.android.localoauth.activity.ConfirmAuthActivity"
android:excludeFromRecents="true"
android:exported="false" >
</activity>
</application>

</manifest>
Loading