AgoraIO / Basic-Video-Broadcasting

Sample app to join/leave a channel, set the role as a host/audience, mute/unmute, switch between front/rear cameras, and set the video parameters.
MIT License
269 stars 287 forks source link

Media Undefined #72

Closed bvergara87 closed 4 years ago

bvergara87 commented 4 years ago

Screen Shot 2020-04-02 at 11 20 51 PM

Having issues with starting up the Web Demo, I get the error "media undefined" as well as this after following the steps.

sathish-xe commented 4 years ago

@bvergara87 I'm getting the same error. could you please share the fix?

bvergara87 commented 4 years ago

You need to make sure the room/topic you enter is the same string as the string you entered when generating the temp token.

vgavrilovikj commented 4 years ago

You need to make sure the room/topic you enter is the same string as the string you entered when generating the temp token.

Where can I find that string?

bvergara87 commented 4 years ago

On the Agora Dashboard, the channel name you use when generating that temp token needs to be the same as when you initialize the Agora client.

vgavrilovikj commented 4 years ago

Okay, so I have created a channel named Music: image Then I am inserting "Music" here as well: image

But, when I click on Start Broadcast - I get this error: image

How can I resolve this?

bvergara87 commented 4 years ago

Did you follow the steps to setup your app certification and temporary token?

On Sat, May 2, 2020 at 12:50 PM vgavrilovikj notifications@github.com wrote:

Okay, so I have created a channel named Music: [image: image] https://user-images.githubusercontent.com/29601489/80888723-bf564b80-8cbe-11ea-8119-76de1ae5a3ab.png Then I am inserting "Music" here as well: [image: image] https://user-images.githubusercontent.com/29601489/80888964-d09f5800-8cbe-11ea-9e46-729f22fed062.png

But, when I click on Start Broadcast - I get this error: [image: image] https://user-images.githubusercontent.com/29601489/80889248-e3199180-8cbe-11ea-8dab-f95a92f4cf66.png

How can I resolve this?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/AgoraIO/Basic-Video-Broadcasting/issues/72#issuecomment-623004896, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACZBPNO3CSGW3Q3A32CB3S3RPR2Q5ANCNFSM4L3P776Q .

-- Bryant Vergara CTO

[image: Dexter Website] https://www.dexterlearning.com/ 719 Scott Avenue, Ste 200, Wichita Falls, TX https://maps.google.com/?q=719+Scott+Avenue,+Wichita+Falls,+TX+(940&entry=gmail&source=g (940)782-3390

This email is intended only for the use of the addressee and may contain legally privileged and confidential information. If you are not the intended recipient of this email, you are notified that any dissemination, distribution, logging or copying of this email is strictly prohibited. If you have received this email in error, please notify me immediately and permanently delete it from your system.

vgavrilovikj commented 4 years ago

Sorry my mistake.. I have left the < and > in the .ENV it works perfectly fine :)