-
Notifications
You must be signed in to change notification settings - Fork 0
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
WebRTC Components #1
Open
FelonEkonom
wants to merge
46
commits into
master
Choose a base branch
from
implement-webrtc-components
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 8 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
be9250d
wip
FelonEkonom b8b612e
wip
FelonEkonom 4996e6d
Try fix demo wip
FelonEkonom 9ad6fa4
Maybe it works now
FelonEkonom 626a508
Now player works more or less
FelonEkonom cef29f0
Rename demo
FelonEkonom 8922025
Refactor js
FelonEkonom 7d2f4cc
Suffix event names with player id
FelonEkonom 874c175
Write Capture, write capture demo
FelonEkonom 8beb69e
Logs refactor
FelonEkonom f6f434d
Refactor logs
FelonEkonom 16f4533
Celanup demo
FelonEkonom 83eaf49
Refactor live views, add example project
FelonEkonom 43aaeef
Fix bugs in components and demo
FelonEkonom a512cc5
Add path to .. to esbuild in example project
FelonEkonom c5b853b
Add JS hooks
FelonEkonom 82340a5
Add live view module content
FelonEkonom aa449df
Make example project work wip
FelonEkonom 9040ff0
Create new example project
FelonEkonom 791000b
Finally fix example project
FelonEkonom edf3322
Comment out phoenix header
FelonEkonom 8ffc2f0
Remove old example project
FelonEkonom 123d123
Delete single-file demos
FelonEkonom 6c6972c
Rename boombox_live to membrane_webrtc_live
FelonEkonom d075767
Merge remote-tracking branch 'origin/master' into implement-webrtc-co…
FelonEkonom e5e823b
Refactor README.md
FelonEkonom 7ef6aee
Refactor README.md
FelonEkonom 745bdf8
Refactor liveview modules attrs
FelonEkonom 63a8f3b
Refactor moduledocs of player and capture
FelonEkonom cbdc0a7
Remove leftovers
FelonEkonom d672533
Remove unnecesary modules
FelonEkonom c164850
Bump webrtc plugin 0.24.0
FelonEkonom 30d3ca5
simplify liveviews APIs
mat-hek 10e4194
Partially implement CR
FelonEkonom 14f9209
Add captured video preview
FelonEkonom 88dd337
Refactor player and capture
FelonEkonom aad34f2
Fix README.md
FelonEkonom 5cf38ed
Fix dialyzer
FelonEkonom e6d833c
Fix lint
FelonEkonom 2abbd7c
Fix lint
FelonEkonom e6ce995
Refactor example project filenames
FelonEkonom 0d257ee
Send Objects via websocket instead of strings
FelonEkonom d71adac
Refactor element style
FelonEkonom 4b3be44
Remove old debug code
FelonEkonom bc136cd
Refactor live render attrs
FelonEkonom af61686
Update attributes docs
FelonEkonom File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,23 @@ | ||
# ExampleProject | ||
# Example Project | ||
|
||
To start your Phoenix server: | ||
Example project showing how `Membrane.WebRTC.Live.Capture` and `Membrane.WebRTC.Live.Player` can be used. | ||
|
||
* Run `mix setup` to install and setup dependencies | ||
* Start Phoenix endpoint with `mix phx.server` or inside IEx with `iex -S mix phx.server` | ||
It contains a simple demo, where: | ||
- the video stream is get from the browser and sent via WebRTC to Elixir server using `Membrane.WebRTC.Live.Capture` | ||
- then, this same video stream is re-sent again to the browser and displayed using `Membrane.WebRTC.Live.Player`. | ||
|
||
Now you can visit [`localhost:4000`](http://localhost:4000) from your browser. | ||
This demo uses also [Boombox](https://hex.pm/packages/boombox). | ||
|
||
The most important file in the project is `example_project/lib/example_project_web/live_views/echo.ex`, that | ||
contains the usage of `Boombox` and LiveViews defined in `membrane_webrtc_live`. | ||
|
||
You can also take a look at `example_project/assets/js/app.js` to see how you can use `membrane_webrtc_live` JS hooks. | ||
|
||
Ready to run in production? Please [check our deployment guides](https://hexdocs.pm/phoenix/deployment.html). | ||
## Run server | ||
|
||
## Learn more | ||
To start Phoenix server: | ||
|
||
* Official website: https://www.phoenixframework.org/ | ||
* Guides: https://hexdocs.pm/phoenix/overview.html | ||
* Docs: https://hexdocs.pm/phoenix | ||
* Forum: https://elixirforum.com/c/phoenix-forum | ||
* Source: https://github.com/phoenixframework/phoenix | ||
* Run `mix setup` to install and setup dependencies | ||
* Start Phoenix endpoint with `mix phx.server` or inside IEx with `iex -S mix phx.server` | ||
|
||
Now you can visit [`localhost:4000`](http://localhost:4000) from your browser. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
let's create a proper readme