millicast / millicast-sdk

SDK for building a realtime broadcaster using the Millicast platform.
Other
37 stars 29 forks source link

Exposing sendMetadata & worker method #334

Closed Santiago-Souto closed 5 months ago

Santiago-Souto commented 6 months ago

How to run the publisher app

  1. Build SDK
    npm run build --scope=@millicast/sdk
  2. Install SDK
    cd packages/millicast-publisher-demo
    npm i
  3. Copy Worker file
    npx copy-worker
    > Set your app's public folder path: default is [dist] ? // press [enter] to use default folder 'dist'
  4. Run Publisher app
    npm run start

    In the browser's console, to send metadata you can type:

    millicastPublish.sendMetadata(payload, uuid)

    Being uuid some UUID string (6e9cfd2a-5907-49ff-b363-8978a6e8340e, by default) and payload any string you want.

    How to run the viewer app

    Refer to #326

changeset-bot[bot] commented 6 months ago

⚠️ No Changeset found

Latest commit: 34bc95fb854367d0938d6035b0d86f5af6d1b2bd

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

vincentsong commented 5 months ago

@Santiago-Souto please update your branch and fix any bugs, then we could merge it