Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
e4d2e4b
描画範囲を指定できるように修正
nobuo-kobayashi Aug 17, 2021
410aa4c
各マイムタイプごとに設定を保存できるように修正
nobuo-kobayashi Aug 19, 2021
db7197b
プラグインの接続タイミングを修正
nobuo-kobayashi Aug 20, 2021
a15f79b
MJPEGの送信タイミングを修正
nobuo-kobayashi Aug 20, 2021
c9b1a3a
MJPEG のフレームレートの値入力を数値のみに変更
nobuo-kobayashi Aug 23, 2021
024ae88
音声用のストリーミング用の設定を修正
nobuo-kobayashi Aug 23, 2021
b1cb435
不要なログを出力しないように修正
nobuo-kobayashi Aug 23, 2021
d9508aa
マイムタイプごとに設定を保存するように修正
nobuo-kobayashi Aug 23, 2021
4970e1e
Connectionプロファイルの network api に upstream と downstream の帯域幅を追加
nobuo-kobayashi Aug 25, 2021
9aded16
設定できないプロファイル・レベルが設定された場合に例外が発生するので、 try-catch を追加して設定できないように修正
nobuo-kobayashi Aug 25, 2021
1992fd7
ビットレートとキーフレームの要求処理を修正
nobuo-kobayashi Aug 25, 2021
9b051ae
ダイアログを削除する時にアニメーションを表示しないように修正
nobuo-kobayashi Aug 25, 2021
35be91e
SRT の設定を HostMediaRecorder#Settings に統合
nobuo-kobayashi Aug 25, 2021
6973253
通信ビットレートの履歴を取得できるように修正
nobuo-kobayashi Aug 26, 2021
2c881cd
プレビューサーバ、配信などの機能を動的に追加できるように修正
nobuo-kobayashi Aug 31, 2021
df5b335
プレビュー配信サーバなどの設定を追加できるように修正
nobuo-kobayashi Sep 1, 2021
3b41f67
ビットレートの情報を時刻で範囲指定できるように修正
nobuo-kobayashi Sep 10, 2021
3d4a282
Hostプラグインのレコーダのソースコードを整理
nobuo-kobayashi Sep 11, 2021
71c6e45
MJPEG、RTSP、SRT の設定画面を共通のクラスを継承するように修正
nobuo-kobayashi Sep 13, 2021
24b25be
テクスチャを描画する時のマイナスの座標になった時の処理を追加
nobuo-kobayashi Sep 13, 2021
dee266d
画面が回転された時のエンコーダ再起動処理を修正
nobuo-kobayashi Sep 13, 2021
6b0b6b0
Merge commit '217c56e10c7fe12ef24424fe637f8ad6cc13c92e' into feature_…
nobuo-kobayashi Sep 13, 2021
5771729
全ての RTMP が切断された時に停止イベントを通知するように修正
nobuo-kobayashi Sep 14, 2021
05c6ca1
同じプロファイルとレベルはリストに追加しないように修正
nobuo-kobayashi Sep 21, 2021
765f5e1
プロファイルとレベルの比較用に equals と hashCode を実装
nobuo-kobayashi Sep 21, 2021
7e2e20d
VideoQuality で low_latency のパラメータを渡せるように修正
nobuo-kobayashi Sep 21, 2021
a22b18a
カメラの設定画面にボタンを追加
nobuo-kobayashi Oct 4, 2021
0f131cb
Merge pull request #714 from TakayukiHoshi1984/modify_external_camera
TakayukiHoshi1984 Oct 4, 2021
b5f6b02
Merge branch 'main' into feature_host_plugin_update
nobuo-kobayashi Oct 4, 2021
8ca2637
mediaStreamingRecording のレスポンスを修正
nobuo-kobayashi Oct 5, 2021
263a94f
MJPEG の配信サイズの設定を修正
nobuo-kobayashi Oct 5, 2021
fdc0ef8
Hostカメラアプリ起動時に横向き固定で起動するように修正
nobuo-kobayashi Oct 5, 2021
987f2e0
/gotapi/mediaStreamRecording/options:PUT に previewClipDuration を追加
nobuo-kobayashi Oct 7, 2021
511ee20
RTP のパケットの作成する時に NAL Unit ごとに送るように修正
nobuo-kobayashi Oct 7, 2021
c3a1457
端末の回転を固定できるように修正
nobuo-kobayashi Oct 8, 2021
10ed924
キーフレームの間隔に対して 0 を設定できるように修正
nobuo-kobayashi Oct 11, 2021
570d2b8
カメラが追加された時と削除された時の処理を追加
nobuo-kobayashi Oct 12, 2021
91578b6
ビットレートが変更された場合には、MediaCodec の再起動なしで値を設定するように修正
nobuo-kobayashi Oct 20, 2021
a75aca3
スペルミスを修正
nobuo-kobayashi Oct 21, 2021
b061477
音声のポート番号のデフォルト値を変更
nobuo-kobayashi Oct 24, 2021
aea80a1
Merge pull request #715 from TakayukiHoshi1984/bugfix_srt_library
TakayukiHoshi1984 Oct 25, 2021
f9e7447
Merge branch 'main' of https://github.com/DeviceConnect/DeviceConnect…
TakayukiHoshi1984 Oct 25, 2021
36d4b79
Merge branch 'main' into feature_host_plugin_update
TakayukiHoshi1984 Oct 25, 2021
39263e8
libmediaのバージョンを1.3.0にアップデート
TakayukiHoshi1984 Oct 25, 2021
fb99a65
libsrtのバージョンを1.3.0にアップデート
TakayukiHoshi1984 Oct 25, 2021
a65bfc9
libmedia,libsrtのアップデート
TakayukiHoshi1984 Oct 25, 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
6 changes: 3 additions & 3 deletions dConnectDevicePlugin/dConnectDeviceHost/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ android {
buildConfigField "String", "DEMO_DIR", "\"demo\""
buildConfigField "String", "DEMO_ZIP", "\"" + DEMO_ZIP_NAME + "\""
buildConfigField "long", "STATS_INTERVAL", "5000L"
}
}

signingConfigs {
releaseConfig {
Expand Down 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.2'
implementation 'org.deviceconnect:libsrt:1.2.2'
implementation 'org.deviceconnect:libmedia:1.3.0'
implementation 'org.deviceconnect:libsrt:1.3.0'
// implementation project(':libmedia')
// implementation project(':libsrt')
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,15 @@
android:name="org.deviceconnect.android.deviceplugin.host.setting.HostSettingActivity"
android:exported="false"
android:launchMode="singleTask"
android:taskAffinity=".settings"
android:theme="@style/AppCompatTheme" />

<!-- レコーダー設定画面用の Activity -->
<activity
android:name=".activity.recorder.settings.SettingsActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:exported="false"
android:taskAffinity=".recorder_settings"
android:theme="@style/AppCompatTheme" />

<!-- プラグイン本体サービス -->
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ protected void onKeyStoreUpdated(final KeyStore keyStore, final Certificate cert
}
mSSLContext = createSSLContext(keyStore, DEFAULT_PASSWORD);
} catch (Exception e) {
mLogger.log(Level.SEVERE, "Failed to update keystore", e);
mLogger.log(Level.WARNING, "Failed to update keystore", e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ public class HostDevicePluginBindActivity extends AppCompatActivity {
*/
private boolean mIsBound = false;

/**
* 画面の回転固定フラグ.
*/
private boolean mDisplayRotationFixed = false;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Expand Down Expand Up @@ -179,9 +174,18 @@ public void onServiceDisconnected(ComponentName name) {
* @param fixed 固定する場合はtrue、それ以外はfalse
*/
public void setDisplayRotation(boolean fixed) {
mDisplayRotationFixed = fixed;
setDisplayRotation(fixed, getDisplayOrientation());
}

/**
* 画面に表示されている状態で回転を固定します.
*
* @param fixed 固定する場合はtrue、それ以外はfalse
* @param orientation 固定する向き
*/
public void setDisplayRotation(boolean fixed, int orientation) {
if (fixed) {
setRequestedOrientation(getDisplayOrientation());
setRequestedOrientation(orientation);
} else {
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);
}
Expand All @@ -193,14 +197,14 @@ public void setDisplayRotation(boolean fixed) {
* @return 画面が固定されている場合はtrue、それ以外はfalse
*/
public boolean isDisplayRotationFixed() {
return mDisplayRotationFixed;
return getRequestedOrientation() != ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED;
}

/**
* 画面固定を切り替えます.
*/
public void toggleDisplayRotation() {
setDisplayRotation(!mDisplayRotationFixed);
setDisplayRotation(!isDisplayRotationFixed());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,15 @@ public static AlertDialogFragment create(final String tag, final String title, f
* @return AlertDialogFragmentのインスタンス
*/
public static AlertDialogFragment create(final String tag, final String title, final String message,
final String positive, final String negative) {
final String positive, final String negative) {
Bundle args = createParam(tag, title, message, positive, negative);
AlertDialogFragment dialog = new AlertDialogFragment();
dialog.setArguments(args);
return dialog;
}

public static Bundle createParam(final String tag, final String title, final String message,
final String positive, final String negative) {
Bundle args = new Bundle();
args.putString(KEY_TAG, tag);
args.putString(KEY_TITLE, title);
Expand All @@ -78,10 +86,7 @@ public static AlertDialogFragment create(final String tag, final String title, f
if (negative != null) {
args.putString(KEY_NEGATIVE, negative);
}

AlertDialogFragment dialog = new AlertDialogFragment();
dialog.setArguments(args);
return dialog;
return args;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.res.Configuration;
import android.os.Bundle;
import android.view.MenuItem;

import androidx.appcompat.app.ActionBar;

import org.deviceconnect.android.deviceplugin.host.HostDevicePlugin;
import org.deviceconnect.android.deviceplugin.host.R;
import org.deviceconnect.android.deviceplugin.host.activity.HostDevicePluginBindActivity;
import org.deviceconnect.android.deviceplugin.host.recorder.HostMediaRecorder;
Expand All @@ -17,6 +19,7 @@ public class SettingsActivity extends HostDevicePluginBindActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setRequestedOrientation(getDisplayOrientation());
setContentView(R.layout.activity_recorder_settings);

ActionBar actionBar = getSupportActionBar();
Expand All @@ -27,9 +30,8 @@ public void onCreate(Bundle savedInstanceState) {
}

@Override
public void onStart() {
super.onStart();
setRequestedOrientation(getDisplayOrientation());
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
}

@Override
Expand Down Expand Up @@ -60,17 +62,20 @@ public int getDisplayOrientation() {
return ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED;
}

public HostMediaRecorder getRecorder() {
String recorderId = null;
public String getRecorderId() {
Intent intent = getIntent();
if (intent != null) {
recorderId = intent.getStringExtra("recorder_id");
return intent.getStringExtra("recorder_id");
}
return getHostDevicePlugin().getHostMediaRecorderManager().getRecorder(recorderId);
return null;
}

public String getRecorderId() {
return getRecorder().getId();
public HostMediaRecorder getRecorder() {
HostDevicePlugin plugin = getHostDevicePlugin();
if (plugin != null) {
return plugin.getHostMediaRecorderManager().getRecorder(getRecorderId());
}
return null;
}

public static Intent createSettingsActivityIntent(Context context, String recorderId, Integer rotationFlag) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@ public class SettingsAudioFragment extends SettingsParameterFragment {

@Override
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
getPreferenceManager().setSharedPreferencesName(getRecorderId().replaceAll("/", "_"));
getPreferenceManager().setSharedPreferencesName(getRecorderId());
setPreferencesFromResource(R.xml.settings_host_recorder_audio, rootKey);
}

@Override
public void onBindService() {
mMediaRecorder = getRecorder();
if (mMediaRecorder == null) {
return;
}

setPreviewAudioSource(mMediaRecorder.getSettings());
setPreviewSampleRate(mMediaRecorder.getSettings());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,17 @@ public String getRecorderId() {
}
return null;
}

/**
* プレビューサーバ、配信設定ファイル名を取得します.
*
* @return 設定のファイル名
*/
public String getEncoderId() {
Bundle args = getArguments();
if (args != null) {
return args.getString("encoder_id");
}
return null;
}
}
Loading