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

Add general use RTMP server #85

Merged
merged 47 commits into from
Jun 18, 2024
Merged
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
5c0b665
Add POC of RTMP server capable of serving multiple RTMP clients
varsill Feb 13, 2024
fe10680
Perform refactor. Move parsing functions to message_parser. Separate …
varsill Feb 13, 2024
02f1f9d
Move client handler to a separate module
varsill Feb 13, 2024
2495cc6
Remove validator. Add RTMP.Server.Behaviour
varsill Feb 16, 2024
6c56ca0
Add ability to specify initial client handler state. Remove handle_in…
varsill Feb 19, 2024
982bc0d
Rewrite Source and SourceBin to support new architecture. Adjust test…
varsill Feb 20, 2024
a821766
Perform formatting
varsill Feb 20, 2024
6262d90
Fix compilation warnings
varsill Feb 20, 2024
7888b2c
Fix formatting
varsill Feb 20, 2024
2eaead3
Refactor
varsill Feb 20, 2024
0f4a5cd
Merge branch 'master' of https://github.com/membraneframework/membran…
varsill Feb 21, 2024
6747ddd
Add moduledocs and typespecs
varsill Feb 21, 2024
348f525
Remove nonexisting reference in docs
varsill Feb 21, 2024
1d55c5e
fix dialyzer error
varsill Feb 21, 2024
af6a05e
Allow for spawning RTMP server under desired name
varsill Feb 26, 2024
4e6358e
Fix a misspelling of a Source behaviour module
varsill Feb 26, 2024
855c71d
Add typespec for `RTMP.Server.start_link/1`
varsill Feb 26, 2024
6c6a4b4
perform formatting
varsill Feb 26, 2024
e9df383
Implement reviewers suggestions. Add backpressure mechanism.
varsill May 21, 2024
baa1014
Fix tests running
varsill May 21, 2024
3c3b351
Add hansling of elements demands
varsill May 21, 2024
6a68408
Fix credo warnings
varsill May 22, 2024
27a5d20
Merge branch 'master' of https://github.com/membraneframework/membran…
varsill May 22, 2024
cf98cfd
Fix options name
varsill May 22, 2024
3518d97
simplify handling of demands
varsill May 22, 2024
bc80001
Add helper function to send demands from the client handler
varsill May 22, 2024
e288276
Move all the sockets data reading to the client handle
varsill May 22, 2024
aa77ff4
make credo happy
varsill May 22, 2024
406e061
make dialyzer happy
varsill May 22, 2024
dd28fcd
Finish setup immediately in source
varsill May 22, 2024
692c664
Make source properly handle playing mode enterance in different modes
varsill May 22, 2024
385bce1
Make the rtmp source test server bind to port 0
varsill May 23, 2024
a5a521d
remove debugging leftover
varsill May 23, 2024
8a53668
Add ability not to pass controlling process to default source behaviour
varsill May 27, 2024
7752fd8
Update RTMPServer.subscribe() spec
varsill May 27, 2024
b833ff9
Change handle_info into handle_cast for subscribe handling in RTMP se…
varsill May 28, 2024
2620570
Add await_subscription/2 function in rtmp server
varsill May 28, 2024
6e15040
Fix a spec in rtmp server
varsill May 28, 2024
bd74a5a
Add struct to define options in default source handler behaviour impl…
varsill May 28, 2024
83adaf3
Fix credo warnings
varsill May 28, 2024
ecb4c3f
Implement reviewers suggestions.
varsill Jun 11, 2024
9dd8317
Update source description in the README. Add more comprehensive docs …
varsill Jun 11, 2024
5d11bfd
Update source.exs example
varsill Jun 11, 2024
8eee65c
Add an example with standalone server. Use mix run instead of elixir …
varsill Jun 11, 2024
cdc36d7
Revoke usage of elixir <script.exs> for sink examples.
varsill Jun 11, 2024
bdbd699
Implement reviewers suggestions. Rename client behaviour into client …
varsill Jun 14, 2024
d976959
Fix credo warning
varsill Jun 14, 2024
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
Prev Previous commit
Next Next commit
make dialyzer happy
varsill committed May 22, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 406e0612e548b65ffc510abd61ba33e4d3644824
4 changes: 2 additions & 2 deletions lib/membrane_rtmp_plugin/rtmp_server.ex
Original file line number Diff line number Diff line change
@@ -44,8 +44,8 @@ defmodule Membrane.RTMP.Server do
@doc """
Returns the port on which the server listens for connection.
"""
@spec get_port(pid()) :: :inet.port()
def get_port(server_pid) do
@spec get_port(pid()) :: :inet.port_number()
def(get_port(server_pid)) do
GenServer.call(server_pid, :get_port)
end