Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
6a378a9
カメラを切り替えた時に、トーストで選択されているカメラを表示するように修正
nobuo-kobayashi Feb 12, 2021
0f0d453
サポートしているサンプルレートの範囲を MediaCodec のエンコードできる範囲に修正
nobuo-kobayashi Feb 12, 2021
cfdcc21
指定されたサンプルレートをサポートしているMediaCodecを使用するように修正
nobuo-kobayashi Feb 12, 2021
8bbd4b5
MediaStreamRecording と Camera プロファイルにおけるパラメータチェックを修正
nobuo-kobayashi Feb 16, 2021
b10a1c8
音声のエンコードでのハードウェアエンコーダの指定が間違っていたので修正
nobuo-kobayashi Feb 16, 2021
77164ca
カメラの配信中は、切り替えられないように修正
nobuo-kobayashi Feb 16, 2021
001cec1
録画中もカメラの切り替えができないように修正
nobuo-kobayashi Feb 16, 2021
d5d7e0d
カメラを使用中の表示を行うように修正しました。
nobuo-kobayashi Feb 16, 2021
e98d282
ClipRect のサイズで 0 も含めるように修正
nobuo-kobayashi Feb 16, 2021
2e81131
不要なログを削除
nobuo-kobayashi Feb 20, 2021
908b1a9
EGLSurfaceBase に EGLCore を設定するタイミングを修正
nobuo-kobayashi Feb 23, 2021
a164c2a
MicAACLATMEncoder にフィルタを設定できるように修正
nobuo-kobayashi Feb 23, 2021
d2821c0
HostDevicePluginBindActivity で Manager の状態にかかわらずにサービスにバインドするように修正
nobuo-kobayashi Feb 24, 2021
ad2d789
extendsするクラスを変更
nobuo-kobayashi Feb 24, 2021
63e5eb5
Canvasプロファイルで、ダウンロード用のスレッドを作成するタイミングを修正
nobuo-kobayashi Mar 2, 2021
fb4cb59
使用履歴確認画面からアプリ起動ボタンを削除
nobuo-kobayashi Mar 2, 2021
1715d2a
レコーダの中に status を追加し、preview、broadcast、recording の状態を取得できるようにします。
nobuo-kobayashi Mar 2, 2021
026159b
MediaStreamRecordingプロファイルでカメラの操作を排他的に行うように修正
nobuo-kobayashi Mar 3, 2021
47b1526
Canvasプロファイル用、KeyEventプロファイル用、 Touchプロファイル用の Activity のテーマを変更
nobuo-kobayashi Mar 3, 2021
fae9d19
静止画用とプレビュー用の解像度に現在の設定が表示されるように修正
nobuo-kobayashi Mar 3, 2021
e4db614
設定変更時に例外が発生した場合にエラーを返却するように修正
nobuo-kobayashi Mar 3, 2021
ad2d3d4
EGLSurfaceDrawingThread の SurfaceTextureManager の作成部分をオーバーライドできるように修正
nobuo-kobayashi Mar 9, 2021
a49a693
RTMP のエラーハンドリングを修正
nobuo-kobayashi Mar 9, 2021
dee0db8
不要なファイルを削除
nobuo-kobayashi Mar 9, 2021
9c4ff3f
RTMPとSRTにリトライ処理を追加
nobuo-kobayashi Mar 9, 2021
e34e092
MediaStreamer でエラーを返却する場合にも同じようにリトライするように修正
nobuo-kobayashi Mar 10, 2021
370024d
音声のフィルタ処理を追加
nobuo-kobayashi Mar 10, 2021
7e6f5b4
更新したlibmediaとlibsrtをDeviceConnectのGitHubPackagesにアップロードした。
TakayukiHoshi1984 Mar 10, 2021
41a5ff6
MP4への書き込みに同期処理を追加
nobuo-kobayashi Mar 12, 2021
29743fd
MP4への書き込みチェックのタイミングを修正
nobuo-kobayashi Mar 13, 2021
590f917
libmediaとlibsrtの更新分をGitHubPackageに反映した。
TakayukiHoshi1984 Mar 15, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dConnectDevicePlugin/dConnectDeviceHost/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ dependencies {
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:dconnect-demo-lib:1.0.1'
implementation 'org.deviceconnect:libmedia:1.2.0'
implementation 'org.deviceconnect:libsrt:1.2.0'
implementation 'org.deviceconnect:libmedia:1.2.2'
implementation 'org.deviceconnect:libsrt:1.2.2'
// implementation project(':libmedia')
// implementation project(':libsrt')
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,23 +62,23 @@
android:exported="false"
android:launchMode="singleInstance"
android:taskAffinity=".canvas"
android:theme="@style/AppCompatTheme" />
android:theme="@style/AppCompatTheme.NoActionBar" />

<activity
android:name="org.deviceconnect.android.deviceplugin.host.activity.profile.TouchProfileActivity"
android:excludeFromRecents="true"
android:exported="false"
android:launchMode="singleInstance"
android:taskAffinity=".touch"
android:theme="@style/AppCompatTheme" />
android:theme="@style/AppCompatTheme.NoActionBar" />

<activity
android:name="org.deviceconnect.android.deviceplugin.host.activity.profile.KeyEventProfileActivity"
android:excludeFromRecents="true"
android:exported="false"
android:launchMode="singleInstance"
android:taskAffinity=".keyevent"
android:theme="@style/AppCompatTheme" />
android:theme="@style/AppCompatTheme.NoActionBar" />

<!-- パーミッション要求画面 -->

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ public void onCreate(Bundle savedInstanceState) {
@Override
public void onResume() {
super.onResume();

if (isManagerStarted()) {
bindService();
}
bindService();
}

@Override
Expand Down Expand Up @@ -75,7 +72,7 @@ public boolean isManagerStarted() {
ActivityManager manager = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE);
for (ActivityManager.RunningServiceInfo serviceInfo : manager.getRunningServices(Integer.MAX_VALUE)) {
if ("org.deviceconnect.android.manager".equals(serviceInfo.service.getPackageName())) {
return true;
return serviceInfo.started;
}
}
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,20 @@ public void showToast(int resId) {
});
}

/**
* トーストを表示します.
*
* @param message メッセージ
*/
public void showToast(String message) {
runOnUiThread(() -> {
Context context = getContext();
if (context != null) {
Toast.makeText(context, message, Toast.LENGTH_SHORT).show();
}
});
}

/**
* UI スレッドで Runnable を実行します.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@

import org.deviceconnect.android.deviceplugin.host.HostDevicePlugin;
import org.deviceconnect.android.deviceplugin.host.activity.HostDevicePluginBindActivity;
import org.deviceconnect.android.deviceplugin.host.activity.recorder.camera.CameraActivity;

public abstract class HostDevicePluginBindPreferenceFragment extends PreferenceFragmentCompat implements CameraActivity.OnHostDevicePluginListener {
public abstract class HostDevicePluginBindPreferenceFragment extends PreferenceFragmentCompat implements HostDevicePluginBindActivity.OnHostDevicePluginListener {

private final Handler mUIHandler = new Handler(Looper.getMainLooper());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,22 +153,21 @@ protected void onCreate(final Bundle savedInstanceState) {
@Override
protected void onResume() {
super.onResume();

mForegroundFlag = true;

IntentFilter filter = new IntentFilter();
filter.addAction(CanvasDrawImageObject.ACTION_DRAW_CANVAS);
filter.addAction(CanvasDrawImageObject.ACTION_DELETE_CANVAS);
LocalBroadcastManager.getInstance(this).registerReceiver(mReceiver, filter);

refreshImage(mIntent);

if (mDownloadThread != null) {
mDownloadThread.terminate();
}
mDownloadThread = new DownloadThread();
mDownloadThread.setName("Canvas-Download-Thread");
mDownloadThread.start();

refreshImage(mIntent);

IntentFilter filter = new IntentFilter();
filter.addAction(CanvasDrawImageObject.ACTION_DRAW_CANVAS);
filter.addAction(CanvasDrawImageObject.ACTION_DELETE_CANVAS);
LocalBroadcastManager.getInstance(this).registerReceiver(mReceiver, filter);
}

@Override
Expand Down

This file was deleted.

Loading