Skip to content

Commit

Permalink
Feat englishm#10: Renamed player-component to video-moq
Browse files Browse the repository at this point in the history
  • Loading branch information
santipuppoQualabs committed Dec 10, 2024
1 parent 20dffae commit 950b54f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions web_component_demo/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

<h1>Web Component Example</h1>
<!-- Using the custom player component -->
<player-component
<video-moq
src="https://localhost:4443"
fingerprint="https://localhost:4443/fingerprint"
namespace="bbb"
controls="true"
></player-component>
></video-moq>
</body>
</html>
4 changes: 2 additions & 2 deletions web_component_demo/public/src/video-moq.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class VideoMoq extends HTMLElement {
const fingerprint = this.getAttribute("fingerprint");

if (!src) {
this.error("No 'src' attribute provided for <player-component>");
this.error("No 'src' attribute provided for <video-moq>");
}
if (src === null || namespace === null || fingerprint === null) return;

Expand Down Expand Up @@ -456,5 +456,5 @@ const PAUSE_SVG = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" f
<path d="M6 5h4v14H6zM14 5h4v14h-4z" />
</svg>`;
// Register the custom element
customElements.define("player-component", VideoMoq);
customElements.define("video-moq", VideoMoq);
export default VideoMoq;

0 comments on commit 950b54f

Please sign in to comment.