Skip to content

Commit ca05ee4

Browse files
committed
Minor RTSP demo refactor
1 parent 27898c4 commit ca05ee4

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

rtsp_to_hls/lib/pipeline.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ defmodule Membrane.Demo.RTSPToHLS.Pipeline do
1010
def handle_init(_context, options) do
1111
spec = [
1212
child(:source, %Membrane.RTSP.Source{
13-
transport: {:udp, options.port, options.port + 5},
13+
transport: {:udp, options.port, options.port + options.port_range_size},
1414
allowed_media_types: [:video, :audio],
1515
stream_uri: options.stream_url,
1616
on_connection_closed: :send_eos

rtsp_to_hls/rtsp_to_hls.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ File.mkdir_p(output_path)
1111

1212
pipeline_options = %{
1313
port: rtp_port,
14+
port_range_size: 5,
1415
output_path: output_path,
1516
stream_url: rtsp_stream_url,
1617
parent_pid: self()

0 commit comments

Comments
 (0)