-
Notifications
You must be signed in to change notification settings - Fork 3
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
API improvements #30
API improvements #30
Conversation
lib/boombox/mp4.ex
Outdated
@@ -77,4 +77,24 @@ defmodule Boombox.MP4 do | |||
|
|||
%Ready{actions: [spec: spec]} | |||
end | |||
|
|||
defp resolve_transport(location, opts) do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a function resolving the transport would be better to have in Boombox.Pipeline
, since the transport
option won't be unique to mp4 files (for example we'll support streaming HLS to a server).
|
||
@spec get_switch_type([String.t()], atom(), Keyword.t()) :: :boolean | :string | ||
defp get_switch_type(argv, option, aliases) do | ||
with [] <- OptionParser.parse(argv, strict: [{option, :string}], aliases: aliases) |> elem(0), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pretty esoteric use of with
, I like it :P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🪄
No description provided.