Skip to content

Commit

Permalink
Rename boombox_live to membrane_webrtc_live
Browse files Browse the repository at this point in the history
  • Loading branch information
FelonEkonom committed Feb 19, 2025
1 parent 123d123 commit 6c6972c
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 83 deletions.
54 changes: 0 additions & 54 deletions .github/workflows/fetch_changes.yml

This file was deleted.

14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Membrane Template Plugin

[![Hex.pm](https://img.shields.io/hexpm/v/boombox_live.svg)](https://hex.pm/packages/boombox_live)
[![API Docs](https://img.shields.io/badge/api-docs-yellow.svg?style=flat)](https://hexdocs.pm/boombox_live)
[![CircleCI](https://circleci.com/gh/membraneframework/boombox_live.svg?style=svg)](https://circleci.com/gh/membraneframework/boombox_live)
[![Hex.pm](https://img.shields.io/hexpm/v/membrane_webrtc_live.svg)](https://hex.pm/packages/membrane_webrtc_live)
[![API Docs](https://img.shields.io/badge/api-docs-yellow.svg?style=flat)](https://hexdocs.pm/membrane_webrtc_live)
[![CircleCI](https://circleci.com/gh/membraneframework/membrane_webrtc_live.svg?style=svg)](https://circleci.com/gh/membraneframework/membrane_webrtc_live)

This repository contains a template for new plugins.

Expand All @@ -12,12 +12,12 @@ It's a part of the [Membrane Framework](https://membrane.stream).

## Installation

The package can be installed by adding `boombox_live` to your list of dependencies in `mix.exs`:
The package can be installed by adding `membrane_webrtc_live` to your list of dependencies in `mix.exs`:

```elixir
def deps do
[
{:boombox_live, "~> 0.1.0"}
{:membrane_webrtc_live, "~> 0.1.0"}
]
end
```
Expand All @@ -28,8 +28,8 @@ TODO

## Copyright and License

Copyright 2020, [Software Mansion](https://swmansion.com/?utm_source=git&utm_medium=readme&utm_campaign=boombox_live)
Copyright 2020, [Software Mansion](https://swmansion.com/?utm_source=git&utm_medium=readme&utm_campaign=membrane_webrtc_live)

[![Software Mansion](https://logo.swmansion.com/logo?color=white&variant=desktop&width=200&tag=membrane-github)](https://swmansion.com/?utm_source=git&utm_medium=readme&utm_campaign=boombox_live)
[![Software Mansion](https://logo.swmansion.com/logo?color=white&variant=desktop&width=200&tag=membrane-github)](https://swmansion.com/?utm_source=git&utm_medium=readme&utm_campaign=membrane_webrtc_live)

Licensed under the [Apache License, Version 2.0](LICENSE)
2 changes: 1 addition & 1 deletion example_project/assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { Socket } from "phoenix";
import { LiveSocket } from "phoenix_live_view";
import topbar from "../vendor/topbar";

import { createCaptureHook, createPlayerHook } from "boombox_live";
import { createCaptureHook, createPlayerHook } from "membrane_webrtc_live";

let Hooks = {};
const iceServers = [{ urls: "stun:stun.l.google.com:19302" }];
Expand Down
4 changes: 1 addition & 3 deletions example_project/lib/example_project_web/live_views/echo.ex
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
defmodule ExampleProjectWeb.LiveViews.Echo do
use ExampleProjectWeb, :live_view
alias Boombox.Live.WebRTC.{Capture, Player}
alias Membrane.WebRTC.Live.{Capture, Player}

def mount(_params, _session, socket) do
IO.inspect(socket, label: "MOUNT")

socket =
if connected?(socket) do
ingress_signaling = Membrane.WebRTC.SignalingChannel.new()
Expand Down
8 changes: 7 additions & 1 deletion example_project/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ defmodule ExampleProject.MixProject do
# Type `mix help deps` for examples and options.
defp deps do
[
{:boombox_live, path: ".."},
{:boombox,
github: "membraneframework/boombox", ref: "0dae52a0d3023f32c3039ae1eeb353e1433aa2a1"},
{:membrane_webrtc_live, path: "../"},
{:membrane_webrtc_plugin,
github: "membraneframework/membrane_webrtc_plugin",
ref: "c0a4c66cc3b7cd829579a325817ad1727b4474fe",
override: true},
{:phoenix, "~> 1.7.19"},
{:phoenix_html, "~> 4.1"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
Expand Down
2 changes: 2 additions & 0 deletions example_project/mix.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
%{
"bandit": {:hex, :bandit, "1.6.7", "42f30e37a1c89a2a12943c5dca76f731a2313e8a2e21c1a95dc8241893e922d1", [:mix], [{:hpax, "~> 1.0", [hex: :hpax, repo: "hexpm", optional: false]}, {:plug, "~> 1.14", [hex: :plug, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}, {:thousand_island, "~> 1.0", [hex: :thousand_island, repo: "hexpm", optional: false]}, {:websock, "~> 0.5", [hex: :websock, repo: "hexpm", optional: false]}], "hexpm", "551ba8ff5e4fc908cbeb8c9f0697775fb6813a96d9de5f7fe02e34e76fd7d184"},
"bimap": {:hex, :bimap, "1.3.0", "3ea4832e58dc83a9b5b407c6731e7bae87458aa618e6d11d8e12114a17afa4b3", [:mix], [], "hexpm", "bf5a2b078528465aa705f405a5c638becd63e41d280ada41e0f77e6d255a10b4"},
"boombox": {:git, "https://github.com/membraneframework/boombox.git", "0dae52a0d3023f32c3039ae1eeb353e1433aa2a1", [ref: "0dae52a0d3023f32c3039ae1eeb353e1433aa2a1"]},
"bunch": {:hex, :bunch, "1.6.1", "5393d827a64d5f846092703441ea50e65bc09f37fd8e320878f13e63d410aec7", [:mix], [], "hexpm", "286cc3add551628b30605efbe2fca4e38cc1bea89bcd0a1a7226920b3364fe4a"},
"bunch_native": {:hex, :bunch_native, "0.5.0", "8ac1536789a597599c10b652e0b526d8833348c19e4739a0759a2bedfd924e63", [:mix], [{:bundlex, "~> 1.0", [hex: :bundlex, repo: "hexpm", optional: false]}], "hexpm", "24190c760e32b23b36edeb2dc4852515c7c5b3b8675b1a864e0715bdd1c8f80d"},
"bundlex": {:hex, :bundlex, "1.5.4", "3726acd463f4d31894a59bbc177c17f3b574634a524212f13469f41c4834a1d9", [:mix], [{:bunch, "~> 1.0", [hex: :bunch, repo: "hexpm", optional: false]}, {:elixir_uuid, "~> 1.2", [hex: :elixir_uuid, repo: "hexpm", optional: false]}, {:qex, "~> 0.5", [hex: :qex, repo: "hexpm", optional: false]}, {:req, ">= 0.4.0", [hex: :req, repo: "hexpm", optional: false]}, {:zarex, "~> 1.0", [hex: :zarex, repo: "hexpm", optional: false]}], "hexpm", "e745726606a560275182a8ac1c8ebd5e11a659bb7460d8abf30f397e59b4c5d2"},
Expand Down Expand Up @@ -83,6 +84,7 @@
"membrane_vp8_format": {:hex, :membrane_vp8_format, "0.5.0", "a589c20bb9d97ddc9b717684d00cefc84e2500ce63a0c33c4b9618d9b2f9b2ea", [:mix], [], "hexpm", "d29e0dae4bebc6838e82e031c181fe626d168c687e4bc617c1d0772bdeed19d5"},
"membrane_vp9_format": {:hex, :membrane_vp9_format, "0.5.0", "c6a4f2cbfc39dba5d80ad8287162c52b5cf6488676bd64435c1ac957bd16e66f", [:mix], [], "hexpm", "68752d8cbe7270ec222fc84a7d1553499f0d8ff86ef9d9e89f8955d49e20278e"},
"membrane_vpx_plugin": {:hex, :membrane_vpx_plugin, "0.3.0", "60404d1b1511b4c62ba6bbf7b6212570f1732ba477015c4072e0aa33e18a8809", [:mix], [{:membrane_core, "~> 1.0", [hex: :membrane_core, repo: "hexpm", optional: false]}, {:membrane_precompiled_dependency_provider, "~> 0.1.0", [hex: :membrane_precompiled_dependency_provider, repo: "hexpm", optional: false]}, {:membrane_raw_video_format, "~> 0.4.0", [hex: :membrane_raw_video_format, repo: "hexpm", optional: false]}, {:membrane_vp8_format, "~> 0.5.0", [hex: :membrane_vp8_format, repo: "hexpm", optional: false]}, {:membrane_vp9_format, "~> 0.5.0", [hex: :membrane_vp9_format, repo: "hexpm", optional: false]}, {:unifex, "~> 1.2", [hex: :unifex, repo: "hexpm", optional: false]}], "hexpm", "effa7762bbf73efd8d21d0978bce79538414719284194db97672afbce665b56a"},
"membrane_webrtc_plugin": {:git, "https://github.com/membraneframework/membrane_webrtc_plugin.git", "c0a4c66cc3b7cd829579a325817ad1727b4474fe", [ref: "c0a4c66cc3b7cd829579a325817ad1727b4474fe"]},
"metrics": {:hex, :metrics, "1.0.1", "25f094dea2cda98213cecc3aeff09e940299d950904393b2a29d191c346a8486", [:rebar3], [], "hexpm", "69b09adddc4f74a40716ae54d140f93beb0fb8978d8636eaded0c31b6f099f16"},
"mime": {:hex, :mime, "2.0.6", "8f18486773d9b15f95f4f4f1e39b710045fa1de891fada4516559967276e4dc2", [:mix], [], "hexpm", "c9945363a6b26d747389aac3643f8e0e09d30499a138ad64fe8fd1d13d9b153e"},
"mimerl": {:hex, :mimerl, "1.3.0", "d0cd9fc04b9061f82490f6581e0128379830e78535e017f7780f37fea7545726", [:rebar3], [], "hexpm", "a1e15a50d1887217de95f0b9b0793e32853f7c258a5cd227650889b38839fe9d"},
Expand Down
2 changes: 1 addition & 1 deletion lib/boombox_live/webrtc/capture.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
defmodule Boombox.Live.WebRTC.Capture do
defmodule Membrane.WebRTC.Live.Capture do
@moduledoc ~S'''
Component for sending and playing audio and video via WebRTC from a Phoenix app to a browser (browser subscribes).
Expand Down
4 changes: 1 addition & 3 deletions lib/boombox_live/webrtc/player.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
defmodule Boombox.Live.WebRTC.Player do
defmodule Membrane.WebRTC.Live.Player do
@moduledoc ~S'''
Component for sending and playing audio and video via WebRTC from a Phoenix app to a browser (browser subscribes).
Expand Down Expand Up @@ -159,8 +159,6 @@ defmodule Boombox.Live.WebRTC.Player do

@impl true
def mount(_params, %{"class" => class, "id" => id}, socket) do
IO.inspect(self(), label: "DUPA")

socket = assign(socket, class: class, player: nil)

if connected?(socket) do
Expand Down
2 changes: 1 addition & 1 deletion lib/boombox_live/webrtc/utils.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
defmodule Boombox.Live.WebRTC.Utils do
defmodule Membrane.WebRTC.Live.Utils do
@moduledoc false

defmacro log_prefix(id) do
Expand Down
12 changes: 6 additions & 6 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
defmodule Boombox.Live.Mixfile do
defmodule Membrane.WebRTC.Live.Mixfile do
use Mix.Project

@version "0.1.0"
@github_url "https://github.com/membraneframework/boombox_live"
@github_url "https://github.com/membraneframework/membrane_webrtc_live"

def project do
[
app: :boombox_live,
app: :membrane_webrtc_live,
version: @version,
elixir: "~> 1.13",
elixirc_paths: elixirc_paths(Mix.env()),
Expand Down Expand Up @@ -37,9 +37,9 @@ defmodule Boombox.Live.Mixfile do

defp deps do
[
# {:boombox, "~> 0.1.0"},
{:boombox, path: "../boombox"},
# {:membrane_webrtc_plugin, "~> 0.23.2"},
{:membrane_webrtc_plugin,
github: "membraneframework/membrane_webrtc_plugin",
ref: "c0a4c66cc3b7cd829579a325817ad1727b4474fe"},
{:plug_cowboy, "~> 2.5"},
{:phoenix_live_view, "~> 1.0"},
{:phoenix, "~> 1.7"},
Expand Down
4 changes: 2 additions & 2 deletions mix.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%{
"bandit": {:hex, :bandit, "1.6.7", "42f30e37a1c89a2a12943c5dca76f731a2313e8a2e21c1a95dc8241893e922d1", [:mix], [{:hpax, "~> 1.0", [hex: :hpax, repo: "hexpm", optional: false]}, {:plug, "~> 1.14", [hex: :plug, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}, {:thousand_island, "~> 1.0", [hex: :thousand_island, repo: "hexpm", optional: false]}, {:websock, "~> 0.5", [hex: :websock, repo: "hexpm", optional: false]}], "hexpm", "551ba8ff5e4fc908cbeb8c9f0697775fb6813a96d9de5f7fe02e34e76fd7d184"},
"bimap": {:hex, :bimap, "1.3.0", "3ea4832e58dc83a9b5b407c6731e7bae87458aa618e6d11d8e12114a17afa4b3", [:mix], [], "hexpm", "bf5a2b078528465aa705f405a5c638becd63e41d280ada41e0f77e6d255a10b4"},
"boombox": {:hex, :boombox, "0.1.0", "86433412c72c3fc6255cba223e968a857680b0d58225dffa3fa05c1eb10113b2", [:mix], [{:burrito, "~> 1.0", [hex: :burrito, repo: "hexpm", optional: true]}, {:image, "~> 0.54.0", [hex: :image, repo: "hexpm", optional: false]}, {:membrane_aac_fdk_plugin, "~> 0.18.0", [hex: :membrane_aac_fdk_plugin, repo: "hexpm", optional: false]}, {:membrane_aac_plugin, "~> 0.18.0", [hex: :membrane_aac_plugin, repo: "hexpm", optional: false]}, {:membrane_core, "~> 1.1", [hex: :membrane_core, repo: "hexpm", optional: false]}, {:membrane_ffmpeg_swresample_plugin, "~> 0.20.0", [hex: :membrane_ffmpeg_swresample_plugin, repo: "hexpm", optional: false]}, {:membrane_ffmpeg_swscale_plugin, "~> 0.16.0", [hex: :membrane_ffmpeg_swscale_plugin, repo: "hexpm", optional: false]}, {:membrane_h264_ffmpeg_plugin, "~> 0.32.0", [hex: :membrane_h264_ffmpeg_plugin, repo: "hexpm", optional: false]}, {:membrane_h26x_plugin, "~> 0.10.0", [hex: :membrane_h26x_plugin, repo: "hexpm", optional: false]}, {:membrane_hackney_plugin, "~> 0.11.0", [hex: :membrane_hackney_plugin, repo: "hexpm", optional: false]}, {:membrane_http_adaptive_stream_plugin, "~> 0.18.5", [hex: :membrane_http_adaptive_stream_plugin, repo: "hexpm", optional: false]}, {:membrane_mp4_plugin, "~> 0.35.2", [hex: :membrane_mp4_plugin, repo: "hexpm", optional: false]}, {:membrane_opus_plugin, "~> 0.20.3", [hex: :membrane_opus_plugin, repo: "hexpm", optional: false]}, {:membrane_realtimer_plugin, "~> 0.9.0", [hex: :membrane_realtimer_plugin, repo: "hexpm", optional: false]}, {:membrane_rtmp_plugin, "~> 0.25.0", [hex: :membrane_rtmp_plugin, repo: "hexpm", optional: false]}, {:membrane_rtp_plugin, "~> 0.29.0", [hex: :membrane_rtp_plugin, repo: "hexpm", optional: false]}, {:membrane_rtsp_plugin, "~> 0.3.0", [hex: :membrane_rtsp_plugin, repo: "hexpm", optional: false]}, {:membrane_webrtc_plugin, "~> 0.22.0", [hex: :membrane_webrtc_plugin, repo: "hexpm", optional: false]}], "hexpm", "a1baaebbff25bd77a12261a29ef28e8e348bc3f1773c2665d781064575ffb7e8"},
"boombox": {:git, "https://github.com/membraneframework/boombox.git", "0dae52a0d3023f32c3039ae1eeb353e1433aa2a1", [ref: "0dae52a0d3023f32c3039ae1eeb353e1433aa2a1"]},
"bunch": {:hex, :bunch, "1.6.1", "5393d827a64d5f846092703441ea50e65bc09f37fd8e320878f13e63d410aec7", [:mix], [], "hexpm", "286cc3add551628b30605efbe2fca4e38cc1bea89bcd0a1a7226920b3364fe4a"},
"bunch_native": {:hex, :bunch_native, "0.5.0", "8ac1536789a597599c10b652e0b526d8833348c19e4739a0759a2bedfd924e63", [:mix], [{:bundlex, "~> 1.0", [hex: :bundlex, repo: "hexpm", optional: false]}], "hexpm", "24190c760e32b23b36edeb2dc4852515c7c5b3b8675b1a864e0715bdd1c8f80d"},
"bundlex": {:hex, :bundlex, "1.5.4", "3726acd463f4d31894a59bbc177c17f3b574634a524212f13469f41c4834a1d9", [:mix], [{:bunch, "~> 1.0", [hex: :bunch, repo: "hexpm", optional: false]}, {:elixir_uuid, "~> 1.2", [hex: :elixir_uuid, repo: "hexpm", optional: false]}, {:qex, "~> 0.5", [hex: :qex, repo: "hexpm", optional: false]}, {:req, ">= 0.4.0", [hex: :req, repo: "hexpm", optional: false]}, {:zarex, "~> 1.0", [hex: :zarex, repo: "hexpm", optional: false]}], "hexpm", "e745726606a560275182a8ac1c8ebd5e11a659bb7460d8abf30f397e59b4c5d2"},
Expand Down Expand Up @@ -88,7 +88,7 @@
"membrane_vp8_format": {:hex, :membrane_vp8_format, "0.5.0", "a589c20bb9d97ddc9b717684d00cefc84e2500ce63a0c33c4b9618d9b2f9b2ea", [:mix], [], "hexpm", "d29e0dae4bebc6838e82e031c181fe626d168c687e4bc617c1d0772bdeed19d5"},
"membrane_vp9_format": {:hex, :membrane_vp9_format, "0.5.0", "c6a4f2cbfc39dba5d80ad8287162c52b5cf6488676bd64435c1ac957bd16e66f", [:mix], [], "hexpm", "68752d8cbe7270ec222fc84a7d1553499f0d8ff86ef9d9e89f8955d49e20278e"},
"membrane_vpx_plugin": {:hex, :membrane_vpx_plugin, "0.3.0", "60404d1b1511b4c62ba6bbf7b6212570f1732ba477015c4072e0aa33e18a8809", [:mix], [{:membrane_core, "~> 1.0", [hex: :membrane_core, repo: "hexpm", optional: false]}, {:membrane_precompiled_dependency_provider, "~> 0.1.0", [hex: :membrane_precompiled_dependency_provider, repo: "hexpm", optional: false]}, {:membrane_raw_video_format, "~> 0.4.0", [hex: :membrane_raw_video_format, repo: "hexpm", optional: false]}, {:membrane_vp8_format, "~> 0.5.0", [hex: :membrane_vp8_format, repo: "hexpm", optional: false]}, {:membrane_vp9_format, "~> 0.5.0", [hex: :membrane_vp9_format, repo: "hexpm", optional: false]}, {:unifex, "~> 1.2", [hex: :unifex, repo: "hexpm", optional: false]}], "hexpm", "effa7762bbf73efd8d21d0978bce79538414719284194db97672afbce665b56a"},
"membrane_webrtc_plugin": {:git, "https://github.com/membraneframework/membrane_webrtc_plugin.git", "8c1567c212f6ce4dfb06b6d5ed183b37d435336f", []},
"membrane_webrtc_plugin": {:git, "https://github.com/membraneframework/membrane_webrtc_plugin.git", "c0a4c66cc3b7cd829579a325817ad1727b4474fe", [ref: "c0a4c66cc3b7cd829579a325817ad1727b4474fe"]},
"metrics": {:hex, :metrics, "1.0.1", "25f094dea2cda98213cecc3aeff09e940299d950904393b2a29d191c346a8486", [:rebar3], [], "hexpm", "69b09adddc4f74a40716ae54d140f93beb0fb8978d8636eaded0c31b6f099f16"},
"mime": {:hex, :mime, "2.0.6", "8f18486773d9b15f95f4f4f1e39b710045fa1de891fada4516559967276e4dc2", [:mix], [], "hexpm", "c9945363a6b26d747389aac3643f8e0e09d30499a138ad64fe8fd1d13d9b153e"},
"mimerl": {:hex, :mimerl, "1.3.0", "d0cd9fc04b9061f82490f6581e0128379830e78535e017f7780f37fea7545726", [:rebar3], [], "hexpm", "a1e15a50d1887217de95f0b9b0793e32853f7c258a5cd227650889b38839fe9d"},
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "boombox_live",
"name": "membrane_webrtc_live",
"version": "0.1.0",
"description": "Phoenix Live Components for Boombox",
"description": "Phoenix Live Components for Membrane WebRTC Plugin",
"main": "./assets/index.js",
"repository": {
"type": "git",
"url": "git://github.com/membraneframework/boombox_live.git"
"url": "git://github.com/membraneframework/membrane_webrtc_live.git"
},
"license": "Apache-2.0",
"homepage": "https://github.com/membraneframework/boombox_live"
"homepage": "https://github.com/membraneframework/membrane_webrtc_live"
}

0 comments on commit 6c6972c

Please sign in to comment.