Skip to content

Commit ca4682b

Browse files
authored
Add information about resolutions and codecs and release 0.7.0 (#8)
* Add information about resolutions and codecs * Bump version
1 parent 4567953 commit ca4682b

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Membrane description for Common Media Application Format.
1111
Add the following line to your `deps` in `mix.exs`. Run `mix deps.get`.
1212

1313
```elixir
14-
{:membrane_cmaf_format, "~> 0.6.1"}
14+
{:membrane_cmaf_format, "~> 0.7.0"}
1515
```
1616

1717
## Copyright and License

lib/membrane_cmaf/track.ex

+11-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ defmodule Membrane.CMAF.Track do
77
:content_type,
88
:header
99
]
10-
defstruct @enforce_keys
10+
defstruct @enforce_keys ++
11+
[
12+
resolution: nil,
13+
codecs: %{}
14+
]
1115

1216
@type content_type_t() :: :audio | :video
1317

@@ -18,6 +22,11 @@ defmodule Membrane.CMAF.Track do
1822
"""
1923
@type t :: %__MODULE__{
2024
content_type: content_type_t() | [content_type_t()],
21-
header: binary
25+
header: binary,
26+
resolution: {non_neg_integer(), non_neg_integer()} | nil,
27+
codecs: %{
28+
optional(:avc1) => %{aot_id: binary(), channels: integer(), frequency: integer()},
29+
optional(:mp4a) => %{profile: binary(), compatibiliy: binary(), level: binary()}
30+
}
2231
}
2332
end

mix.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule Membrane.CMAF.MixProject do
22
use Mix.Project
33

4-
@version "0.6.1"
4+
@version "0.7.0"
55
@github_url "https://github.com/membraneframework/membrane_cmaf_format"
66

77
def project do

0 commit comments

Comments
 (0)