From 60095b09134e2162af976dbabc2298691265471f Mon Sep 17 00:00:00 2001 From: tomasgarba Date: Wed, 31 Jan 2024 09:13:32 +0100 Subject: [PATCH] feat: handle Double, Float --- .../kaltura/playkit/plugins/broadpeak/BroadpeakPlugin.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/broadpeakplugin/src/main/java/com/kaltura/playkit/plugins/broadpeak/BroadpeakPlugin.java b/broadpeakplugin/src/main/java/com/kaltura/playkit/plugins/broadpeak/BroadpeakPlugin.java index 48aee36..53bc92e 100644 --- a/broadpeakplugin/src/main/java/com/kaltura/playkit/plugins/broadpeak/BroadpeakPlugin.java +++ b/broadpeakplugin/src/main/java/com/kaltura/playkit/plugins/broadpeak/BroadpeakPlugin.java @@ -344,6 +344,10 @@ private void addSessionConfig(StreamingSession session) { session.setOption(entry.getKey(), (boolean) entry.getValue()); } else if (entry.getValue() instanceof String) { session.setOption(entry.getKey(), entry.getValue().toString()); + } else if (entry.getValue() instanceof Float) { + session.setOption(entry.getKey(), ((Float) entry.getValue()).intValue()); + } else if (entry.getValue() instanceof Double) { + session.setOption(entry.getKey(), ((Double) entry.getValue()).intValue()); } } }