private static StreamInfo getImageFileStreamInfo()

in src/main/java/com/amazonaws/kinesisvideo/parser/utilities/ProducerStreamUtil.java [177:193]


    private static StreamInfo getImageFileStreamInfo(final MediaSourceConfiguration configuration,
                                                     final String streamName) throws KinesisVideoException {
        try {
            return (StreamInfo) configuration.getClass().getMethod("toStreamInfo", String.class)
                    .invoke(configuration, streamName);
        } catch (final IllegalAccessException e) {
            throw new KinesisVideoException(e);
        } catch (final IllegalArgumentException e) {
            throw new KinesisVideoException(e);
        } catch (final InvocationTargetException e) {
            throw new KinesisVideoException(e);
        } catch (final NoSuchMethodException e) {
            throw new KinesisVideoException(e);
        } catch (final SecurityException e) {
            throw new KinesisVideoException(e);
        }
    }