1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Android で撮ったカメラ画像をKinesis Video Stream でプレビューする

Posted at

https://docs.aws.amazon.com/ja_jp/kinesisvideostreams/latest/dg/producer-sdk-android.html
こちらをベース実施したところ、10分くらいでできました。一応メモ。

流れ

  • Cognito のUser Poolを作成
  • Cognito のID Pool を作成
    • Kinesis Video Streamのロールをアタッチ
  • githubから、AndroidのサンプルコードをClone
    • AmazonKinesisVideoDemoApp をAndroid StudioでOpenする。
  • awsconfiguration.json でCognitoのID情報を入力
  • 下記の補足の箇所を修正
  • Androidのサンプルアプリを実行
    • アカウントを新規作成
    • キャプチャ開始
  • Kinesis Video Stream のMedia previewを確認

補足

Androidのコードで、リージョン情報の更新が必要

KinesisVideoDemoApp.java
    // public static Regions KINESIS_VIDEO_REGION = Regions.US_WEST_2;
    public static Regions KINESIS_VIDEO_REGION = Regions.AP_NORTHEAST_1;
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?