Skip to content

Video is not shown #15

@anjanaNewput

Description

@anjanaNewput

I reference your code to create webrtc web app
Earlier It was working fine. But today When I run the app its not showing video.

I got a warning in console
URL.createObjectURL(stream) has been deprecated. use srcObject instead.

So I looks for its fix and got a solution suggested by many people.
// Don't do this
video.src = URL.createObjectURL(stream);
// Do this
video.srcObject = stream;

After using it warning goes away, but still i am not able to see the local as well as remote video.

Please help me.
Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions