awslabs / amazon-kinesis-video-streams-producer-sdk-java

Allows developers to install and customize their connected camera and other devices to securely stream video, audio, and time-encoded data to Kinesis Video Streams
Apache License 2.0
78 stars 76 forks source link

Use System.getProperty for stream name in PutMediaDemo #176

Closed NickCellino closed 1 year ago

NickCellino commented 2 years ago

Issue #, if available:

Description of changes:

This updates the PutMediaDemo so that it uses the STREAM_NAME value that is set by the system property rather than being hardcoded to "my-stream". The documentation in the README indicates that this is how the PutMediaDemo should operate so this is just making the actual code consistent with what is already in the docs.

This tripped me up for a while before I noticed that the STREAM_NAME was actually hardcoded in this demo.

The relevant docs: Screen Shot 2022-09-26 at 1 56 19 PM

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.