millicast / millicast-sdk

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

Vanilla viewer from README does not work #418

Open lockenj opened 3 months ago

lockenj commented 3 months ago

Version affected 1.6.1

Describe the bug If I copy the vanilla viewer example into an index.html page and launch it using https://github.com/dolbyio-samples/rts-app-react-publisher-viewer/tree/main

To Reproduce Steps to reproduce the behavior:

  1. Setup a stream usinn the publisher from https://github.com/dolbyio-samples/rts-app-react-publisher-viewer/tree/main
  2. Paste this into an index.html
    
    <html>


3. Launch the index.html page

**Expected behavior**
Expect to see the viewer auto connect. All it does is spin.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Environment (please complete the following information):**
 - OS: [e.g. iOS]
 - Browser [e.g. chrome, safari]
 - Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
lockenj commented 3 months ago

After further digging this does work with the vanilla publisher also located in the README.

I am trying to use the publisher from [rts-app-react-publisher-viewer](https://github.com/dolbyio-samples/rts-app-react-publisher-viewer/tree/main)

to quickly publish a local MP4 and work through the viewer side first...

It appears there may be more to this than I thought. I will dig through the docs and report back.

juanpiquerez commented 1 week ago

@lockenj I was looking at what you are reporting, the problem you are having is that when using that publisher, it is publishing without having a main source (sourceId=null) this is unexpected for the viewer, it expects there to be a main source, so it is loading, as it cannot process what you send it. Could you try publishing with a main source (sourceId=null) and let me know if this solves your problem?