Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace payloaders with parsers and adjust tests to new timestamp generation #87

Merged
merged 7 commits into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ In future, the support for MPEG-DASH is planned as well
Add the following line to your `deps` in `mix.exs`. Run `mix deps.get`.

```elixir
{:membrane_http_adaptive_stream_plugin, "~> 0.16.1"}
{:membrane_http_adaptive_stream_plugin, "~> 0.17.0"}
```

## Usage Example
Expand Down
8 changes: 5 additions & 3 deletions lib/membrane_http_adaptive_stream/sink_bin.ex
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ defmodule Membrane.HTTPAdaptiveStream.SinkBin do
"""
use Membrane.Bin

alias Membrane.{MP4, Time}
alias Membrane.{AAC, H264, MP4, Time}
alias Membrane.HTTPAdaptiveStream.{Manifest, Sink, Storage}

def_options manifest_name: [
Expand Down Expand Up @@ -339,7 +339,9 @@ defmodule Membrane.HTTPAdaptiveStream.SinkBin do

defp get_payloader(encoding, state) do
if encoding == :AAC,
do: MP4.Payloader.AAC,
else: %MP4.Payloader.H264{parameters_in_band?: state.mp4_parameters_in_band?}
do: %AAC.Parser{output_config: :esds, out_encapsulation: :none},
else: %H264.Parser{
output_stream_structure: if(state.mp4_parameters_in_band?, do: :avc3, else: :avc1)
}
end
end
10 changes: 5 additions & 5 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Membrane.HTTPAdaptiveStream.MixProject do
use Mix.Project

@version "0.16.1"
@version "0.17.0"
@github_url "https://github.com/membraneframework/membrane_http_adaptive_stream_plugin"

def project do
Expand Down Expand Up @@ -65,11 +65,11 @@ defmodule Membrane.HTTPAdaptiveStream.MixProject do
[
{:membrane_core, "~> 0.12.0"},
{:membrane_tee_plugin, "~> 0.11.0"},
{:membrane_mp4_plugin, "~> 0.26.1"},
{:membrane_aac_plugin, "~> 0.15.0", only: :test},
{:membrane_hackney_plugin, "~> 0.10.0", only: :test},
{:membrane_h264_ffmpeg_plugin, "~> 0.27.0", only: :test},
{:membrane_mp4_plugin, "~> 0.29.0"},
{:membrane_aac_plugin, "~> 0.16.0"},
{:membrane_h264_plugin, "~> 0.7.1"},
{:bunch, "~> 1.5"},
{:membrane_hackney_plugin, "~> 0.10.0", only: :test},
{:credo, "~> 1.6.1", only: :dev, runtime: false},
{:ex_doc, "~> 0.25", only: :dev, runtime: false},
{:dialyxir, "~> 1.1", only: :dev, runtime: false}
Expand Down
Loading