Why can't I see remote video in my WebRTC app?

Stuart P. Bentley

If I open http://chatphrase.com/test/ in two browser tabs (either on the same machine or different machines - I'm testing using Google Chrome for both) and enter the same word in both, the two tabs seem to perform the ICE / STUN / SDP handshaking successfully and connect to each other, but the remote video element, despite having the remote stream attached, remains blank (and hovering over the element causes it to shrink to 2x2).

https://apprtc.appspot.com/ works fine. What is my site doing wrong?

This seems to be an exclusively client-based issue, but for what it's worth, my server-side code is at https://github.com/stuartpb/chatphrase/blob/master/app.js .

Stuart P. Bentley

When the ICE candidates come in, they're not being added to the peer connection:

https://github.com/stuartpb/chatphrase/blob/99ce85330594026d70d5f9441cc06be6c4904b7e/static/chatphrase.js#L44 https://github.com/stuartpb/chatphrase/blob/99ce85330594026d70d5f9441cc06be6c4904b7e/static/chatphrase.js#L76 https://github.com/stuartpb/chatphrase/blob/99ce85330594026d70d5f9441cc06be6c4904b7e/static/chatphrase.js#L168

addIce(resbody.ice); should be addIce(peercon,resbody.ice);.

(I wrote this function somewhere around 4AM, right around the time that you start forgetting the signatures of functions you just wrote.)

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Why can't I see gnome extensions?

分類Dev

Why can't I see my USB drive during Windows 7 installation?

分類Dev

RSelenium: Can't see Browser as I run my Code

分類Dev

Can you see where my unmatched block nesting is wrong? I just can't seem to see it? MASM

分類Dev

Why can't I see CloudWatch Logs for Lambda function?

分類Dev

Why can't I see the keys of an Error object?

分類Dev

Why i can't see new branch in tortoiseHG?

分類Dev

Why, I can't update my react app hosted on Digital Ocean?

分類Dev

git: webrtc: "reference is not a tree" but i can see commit in UI

分類Dev

Why can't I delete this remote bookmark in Mercurial (hg)?

分類Dev

Why I can't send mail to remote mailbox?

分類Dev

Why can't I assign to a variable a JSON value that I can see in Debug mode?

分類Dev

Why is my app requesting permissions I didn't ask for?

分類Dev

Why after login in my site again I can see login page?

分類Dev

Can I see why apt-get install -f is removing my package?

分類Dev

Can I see my gem version history?

分類Dev

Why don't I see WIndows Powershell in the installed app on Windows 10

分類Dev

why can't see regression line?

分類Dev

Can other android app see my app class names?

分類Dev

Why can I see the password of a PasswordBox in Snoop?

分類Dev

Why can't I select cells in my WPF datagrid?

分類Dev

Why can't I use my column alias in WHERE clause?

分類Dev

Why can't I extend my desktop 12.04 in KDE?

分類Dev

Why can't I crash my system with a fork bomb?

分類Dev

Why can't I open my txt file in Ubuntu?

分類Dev

Why can't I download my package through packagist?

分類Dev

Why can't I access my objects member variable?

分類Dev

Can't access my service in a remote Kubernetes

分類Dev

Why do I see two VGA compatible controllers on my PC?

Related 関連記事

  1. 1

    Why can't I see gnome extensions?

  2. 2

    Why can't I see my USB drive during Windows 7 installation?

  3. 3

    RSelenium: Can't see Browser as I run my Code

  4. 4

    Can you see where my unmatched block nesting is wrong? I just can't seem to see it? MASM

  5. 5

    Why can't I see CloudWatch Logs for Lambda function?

  6. 6

    Why can't I see the keys of an Error object?

  7. 7

    Why i can't see new branch in tortoiseHG?

  8. 8

    Why, I can't update my react app hosted on Digital Ocean?

  9. 9

    git: webrtc: "reference is not a tree" but i can see commit in UI

  10. 10

    Why can't I delete this remote bookmark in Mercurial (hg)?

  11. 11

    Why I can't send mail to remote mailbox?

  12. 12

    Why can't I assign to a variable a JSON value that I can see in Debug mode?

  13. 13

    Why is my app requesting permissions I didn't ask for?

  14. 14

    Why after login in my site again I can see login page?

  15. 15

    Can I see why apt-get install -f is removing my package?

  16. 16

    Can I see my gem version history?

  17. 17

    Why don't I see WIndows Powershell in the installed app on Windows 10

  18. 18

    why can't see regression line?

  19. 19

    Can other android app see my app class names?

  20. 20

    Why can I see the password of a PasswordBox in Snoop?

  21. 21

    Why can't I select cells in my WPF datagrid?

  22. 22

    Why can't I use my column alias in WHERE clause?

  23. 23

    Why can't I extend my desktop 12.04 in KDE?

  24. 24

    Why can't I crash my system with a fork bomb?

  25. 25

    Why can't I open my txt file in Ubuntu?

  26. 26

    Why can't I download my package through packagist?

  27. 27

    Why can't I access my objects member variable?

  28. 28

    Can't access my service in a remote Kubernetes

  29. 29

    Why do I see two VGA compatible controllers on my PC?

ホットタグ

アーカイブ