question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remote video Not Playing

See original GitHub issue

I am trying to deploy the openvidu app on Ubuntu with native. After installation i am able to access openvidu dashboard https://173.212.233.93:8443/ following authorization details:

Username: OPENVIDUAPP

Password: MY_SECRET

when i run test it doesnot play remote video and is just loading loading loading… i try this test on my desktop with no camera and mircophone then all the test goes ok just in couple of sec.

Same in case of my application when i try to run my application it doesnot play the remote connected user video. But is shows that a new user join the sessison a new video element is created.

Thanks in advance. !

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:31 (15 by maintainers)

github_iconTop GitHub Comments

2reactions
vivek28111992commented, Mar 29, 2020

Hi @pabloFuente

I am getting same error, I have followed example of web component each & every step. I have deployed on AWS Linux(ubuntu) server. I am using docker container for OpenVidu server and Kurento as stated in document. I have also opened all ports in security groups but still nothing works. Also when I create session I can only see the video streaming of self but not the person who has joined. Please help me.

Screenshot from 2020-03-29 19-33-59

2reactions
pabloFuentecommented, Oct 26, 2017

“It is no creating subscriber video to the publisher”. That’s how it is supposed to work. Publisher users can receive and send video, but Subscriber users can only receive. If you want a N:N communication, all of your users must be Publishers. openvidu-mvc -node works this way: all users are Publishers, so all of them can see each other, as you can see in this demo (its behaviour is exactly the same as openvidu-mvc-node).

I see this in your javascript code:

session.connect(token, '{"clientData": "' + nickName + '"}', function (error) {

		// If the connection is successful, initialize a publisher and publish to the session
		if (!error) {

			// socket.emit('add user', window.username);
			// Here we check somehow if the user has at least 'PUBLISHER' role before
			// trying to publish its stream. Even if someone modified the client's code and
			// published the stream, it wouldn't work if the token sent in Session.connect
			// method doesn't belong to a 'PUBLIHSER' role
			if (isPublisher()) {

				// --- 4) Get your own camera stream ---

				var publisher = OV.initPublisher('video-container', {
					audio: true,        // Whether you want to transmit audio or not
					video: true,        // Whether you want to transmit video or not
					audioActive: true,  // Whetehr you want to start the publishing with your audio unmuted ot muted
					videoActive: true,  // Whether you want to join the publishing with your video enabled or disabled
					quality: 'MEDIUM',  // The quality of yur video ('LOW', 'MEDIUM', 'HIGH')
					screen: false       // true to get your screen as video source instead of your camera.
					// See 'How do I...?' -> 'Screen share' section to learn more
				}, function (error) {       // Function to be executed in case the PUblisher initialization fails
					if (error) {
						console.log('Error while initializing publisher: ', error);
					}
				});

				// When our HTML video has been added to DOM...
				publisher.on('videoElementCreated', function (event) {
					// Init the main video with ours and append our data
					var userData = {
						nickName: nickName,
						userName: userName
					};
					initMainVideo(event.element, userData);
					appendUserData(event.element, userData);
					$(event.element).prop('muted', true); // Mute local video
					// socket.emit('add user', username);
				});


				// --- 5) Publish your stream ---

				session.publish(publisher);

			} else {
				console.warn('You don\'t have permissions to publish');

				initMainVideoThumbnail(); // Show SUBSCRIBER message in main video
			}

If condition if (isPublisher()) { is false, your user will not publish its video. Check that condition to fix this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remote video is no not displaying on Chrome 69 of Window ...
It displays only local stream not remote stream. However each user has getting remote stream and when I debug this stream, it has...
Read more >
Remote video not showing up on one end - WebRTC Video ...
I'm developing a peer to peer video chat app. On the calling side, both remote video and local video shows up. But on...
Read more >
Remote Not Working with TV - 3 Ways to Fix it - YouTube
If you are having trouble with your remote control not working with your TV, here are 3 ways to fix it.Get a replacement...
Read more >
5554 - Cannot Play webrtc remote video in both my android ...
I have used Socket io and node js for server side script. The problem is the video chat is working between two browsers...
Read more >
Problem with video/audio playback after Remote Desktop ...
Hi I just upgraded my laptop to Windows 10 v1511 and met a problem which can be reproduced by the following steps: 1....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found