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 e8337d0..a20e5a5 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 @@ -10,6 +10,7 @@ import com.kaltura.playkit.PKLog; import com.kaltura.playkit.PKMediaConfig; import com.kaltura.playkit.PKMediaEntry; +import com.kaltura.playkit.PKMediaFormat; import com.kaltura.playkit.PKMediaSource; import com.kaltura.playkit.PKPlugin; import com.kaltura.playkit.Player; @@ -198,6 +199,13 @@ public void apply(PKMediaEntry mediaEntry, PKMediaEntryInterceptor.Listener list } PKMediaSource source = mediaEntry.getSources().get(0); + if (PKMediaFormat.udp.equals(source.getMediaFormat())) { + // Replace the URL + log.d("Apply New Entry URL for UDP: " + mediaEntry.getName() + " - " + mediaEntry.getId() + " url: " + source.getUrl()); + source.setUrl(source.getUrl()); + listener.onComplete(); + return; + } // Start the session and get the final stream URL session = SmartLib.getInstance().createStreamingSession(); if (session == null) {