Skip to content
This repository was archived by the owner on Sep 10, 2022. It is now read-only.

Split this web component to 2 web components #17

@FluorescentHallucinogen

Description

Thanks to @jeffposnick, since version 2.0.0 <google-youtube-upload> supports capturing video directly from a camera via MediaRecorder API.

What about "Do one thing and do it well" philosophy and split <google-youtube-upload> to 2 web components:

  1. web component for uploading video files to YouTube
  2. full-featured (fully configurable via properties) MediaRecorder API web component for recording video from the camera or screen

and share data between these 2 web components use data binding?

From this point of view these 2 web components are independent, they only share data. If you want to replace MediaRecorder API web component with another component, you can easily do that. There is only one requirement, that another web component must provide video data. E.g. it may be a web component which receives a WebRTC video stream from another device or a web component which receives a video file from WebTorrent (BitTorrent over WebRTC) decentralized peer-to-peer network (for more info see https://github.com/feross/webtorrent, https://webtorrent.io).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions