Skip to content

Commit d056306

Browse files
committed
Modifying how :muxed is signalled.
Now, instead of using :muxed_audio_video, a list can be supplied to `content_type` field, indicating that a single CMAF Track carries more than one multimedia track and their type. For now, no more information is needed
1 parent b2038bb commit d056306

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/membrane_cmaf/track.ex

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ defmodule Membrane.CMAF.Track do
99
]
1010
defstruct @enforce_keys
1111

12+
@type content_type_t() :: :audio | :video
13+
1214
@typedoc """
1315
Struct describing a single track in Common Media Application Format.
1416
1517
The header field should contain binary contents of a CMAF init file.
1618
"""
1719
@type t :: %__MODULE__{
18-
content_type: :audio | :video | :muxed_audio_video,
20+
content_type: content_type_t() | [content_type_t()],
1921
header: binary
2022
}
2123
end

0 commit comments

Comments
 (0)