# No\_stream\_playing\_event

**URL:** https://openvidu.discourse.group/t/no-stream-playing-event/3742
**Category:** Issues with deployment
**Tags:** v2
**Created:** [February 10, 2022, 8:08pm UTC](https://openvidu.discourse.group/t/no-stream-playing-event/3742 "2022-02-10T20:08:28Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![Striiki](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@Striiki](https://openvidu.discourse.group/u/Striiki)
#### Post date: [February 10, 2022, 8:08pm UTC](https://openvidu.discourse.group/t/no-stream-playing-event/3742/1 "2022-02-10T20:08:28Z")

</div>

Hi.

I’m using OpenVidu, creating with the RPC protocol.  
I use REST API to get session information and to connect to it.  
I Join the room - RPC protocol  
I publish the video - RPC protocol

But on the room (using the [demos.openvidu.io](http://demos.openvidu.io)), there’s no video, when i dig into the logs, i find this error:

…  
hasBeenPrevented: false  
message: “StreamManager of Stream str\_CAM\_KQ40\_con\_IlpmDzRPk6 (Subscriber) did not trigger “streamPlaying” event in 4000 ms”  
name: “NO\_STREAM\_PLAYING\_EVENT”  
origin: Proxy {userHandlerArrowHandler: WeakMap, ee: EventEmitter, videos: Array(1), lazyLaunchVideoElementCreatedEvent: false, stream: Proxy, …}  
target: Proxy {userHandlerArrowHandler: WeakMap, ee: EventEmitter, streamManagers: Array(2), remoteStreamsCreated: Map(1), remoteConnections: Map(1), …}  
type: “exception”  
…

Any idea?

Regards

---

<div class="post-metadata">

### Author: ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)
#### Post date: [February 11, 2022, 9:25am UTC](https://openvidu.discourse.group/t/no-stream-playing-event/3742/2 "2022-02-11T09:25:56Z")

</div>

See documentation of this exception: [ExceptionEventName | OpenVidu Browser - v2.20.0](https://docs.openvidu.io/en/stable/api/openvidu-browser/enums/exceptioneventname.html#no_stream_playing_event)

---

<div class="post-metadata">

### Author: ![Striiki](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@Striiki](https://openvidu.discourse.group/u/Striiki)
#### Post date: [February 11, 2022, 3:30pm UTC](https://openvidu.discourse.group/t/no-stream-playing-event/3742/3 "2022-02-11T15:30:25Z")

</div>

Well, according to the documentation:  
“But the lack of the event can be caused by multiple reasons…”  
Any idea how can i drill down and find the reason?

---

<div class="post-metadata">

### Author: ![micael.gallego](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/micael.gallego/32/2_2.png) [@micael.gallego](https://openvidu.discourse.group/u/micael.gallego)
#### Post date: [February 11, 2022, 6:11pm UTC](https://openvidu.discourse.group/t/no-stream-playing-event/3742/4 "2022-02-11T18:11:12Z")

</div>

The negotiation with the media server is not correct… for that reason there is no media in the browser.

Why don’t you use the official openvidu-browser?

If you can not use it, use browser developers tools to inspect what are the messages exchanged between browser and server and try to replicate them.

Regards

---

<div class="post-metadata">

### Author: ![Striiki](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@Striiki](https://openvidu.discourse.group/u/Striiki)
#### Post date: [February 14, 2022, 1:15am UTC](https://openvidu.discourse.group/t/no-stream-playing-event/3742/5 "2022-02-14T01:15:23Z")

</div>

How would that work with Unity? Use a browser inside unity?  
Really didn’t get the point.  
Using the developer tools, the error is the one i reported

---

<div class="post-metadata">

### Author: ![micael.gallego](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/micael.gallego/32/2_2.png) [@micael.gallego](https://openvidu.discourse.group/u/micael.gallego)
#### Post date: [February 14, 2022, 9:49am UTC](https://openvidu.discourse.group/t/no-stream-playing-event/3742/6 "2022-02-14T09:49:13Z")

</div>

It is possible that you miss some message exchanged between client and server.

If you look to messages exchanged between a browser using openvidu-browser and openvidu server you can verify if your own implementation is exchanging the same messages.

In any case, to make OpenVidu work with Unity you can take a look to this community project: [GitHub - raggnic/WebRTCPlayground](https://github.com/raggnic/WebRTCPlayground)

Best regards

---

<div class="post-metadata">

### Author: ![Striiki](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@Striiki](https://openvidu.discourse.group/u/Striiki)
#### Post date: [February 16, 2022, 10:00am UTC](https://openvidu.discourse.group/t/no-stream-playing-event/3742/7 "2022-02-16T10:00:50Z")

</div>

Hi @micael.gallego

The messages i exchange are:

- Ping
- Join Room
- OnIceCandidate
- PublishVideo.

Am i missing any message?

Regards

---

<div class="post-metadata">

### Author: ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)
#### Post date: [February 16, 2022, 11:47am UTC](https://openvidu.discourse.group/t/no-stream-playing-event/3742/8 "2022-02-16T11:47:39Z")

</div>

Of course. You will not receive any video if you don’t subscribe to the video…  
[https://docs.openvidu.io/en/stable/developing/rpc/#receivevideofrom](https://docs.openvidu.io/en/stable/developing/rpc/#receivevideofrom)

---

<div class="post-metadata">

### Author: ![Striiki](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@Striiki](https://openvidu.discourse.group/u/Striiki)
#### Post date: [February 16, 2022, 12:20pm UTC](https://openvidu.discourse.group/t/no-stream-playing-event/3742/9 "2022-02-16T12:20:45Z")

</div>

Yes, but receiving is not the problem (yet), the problem is publishing.

So: PC 1 - WebBrowser | PC 2 - Unity

The current flow.

- In **PC 1** i create a session on demos.openvidu.oi (openvidu call) with the name TEST
- In **PC 2** i join that session and create a connection with OpenVidu REST API.
- In **PC 2** i start a websocket connection and:  
– Start the PING message  
– Attach the ICECandidate event from WebRTC to the Message OnIceCandidate  
– Join room - (which i’m able to do because in **PC1** i see a thumbnail of a new user)  
– PublishVideo - here is where it fails. In **PC 1** i’m able to see that the user image goes from a thumbnail to a video size slot, but the image is all black, no video is passing.

---

<div class="post-metadata">

### Author: ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)
#### Post date: [February 16, 2022, 12:40pm UTC](https://openvidu.discourse.group/t/no-stream-playing-event/3742/10 "2022-02-16T12:40:11Z")

</div>

If the video of the Publisher is blank, then the problem is not in the server side.  
The Publisher’s video that the owner sees is by default the local one. The stream provided by the webcam. Not the remote one, sent by OpenVidu from other endpoint.  
I would check the camera access in the application, if I were you.

---

<div class="post-metadata">

### Author: ![Striiki](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@Striiki](https://openvidu.discourse.group/u/Striiki)
#### Post date: [February 16, 2022, 3:05pm UTC](https://openvidu.discourse.group/t/no-stream-playing-event/3742/11 "2022-02-16T15:05:17Z")

</div>

@pabloFuente Thank you for the input.

I have camera access, in the application i can see the video from the camera stream.  
I attach that stream to a VideoStreamTrack. Which i then add as track to the peerconnection.

Like i said in the starting of the post i get an error: NO\_STREAM\_PLAYING\_EVENT  
StreamManager of Stream str\_CAM\_KQ40\_con\_IlpmDzRPk6 (Subscriber) did not trigger “streamPlaying” event in 4000 ms.

I ask again any idea what causes this or how can i debug it?

---

<div class="post-metadata">

### Author: ![micael.gallego](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/micael.gallego/32/2_2.png) [@micael.gallego](https://openvidu.discourse.group/u/micael.gallego)
#### Post date: [February 16, 2022, 3:28pm UTC](https://openvidu.discourse.group/t/no-stream-playing-event/3742/12 "2022-02-16T15:28:28Z")

</div>

Are you trying to implement an OpenVidu client in Unity, right?

Have you tested the code I shared with you?

---

<div class="post-metadata">

### Author: ![Striiki](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@Striiki](https://openvidu.discourse.group/u/Striiki)
#### Post date: [February 16, 2022, 5:08pm UTC](https://openvidu.discourse.group/t/no-stream-playing-event/3742/13 "2022-02-16T17:08:56Z")

</div>

Right I am.  
The code/project you shared throws the error  
{“id”:4,“error”:{“code”:-1,“message”:“java.lang.NullPointerException:null” …

On the PublishVideo message callback

---

<div class="post-metadata">

### Author: ![micael.gallego](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/micael.gallego/32/2_2.png) [@micael.gallego](https://openvidu.discourse.group/u/micael.gallego)
#### Post date: [February 16, 2022, 11:05pm UTC](https://openvidu.discourse.group/t/no-stream-playing-event/3742/14 "2022-02-16T23:05:44Z")

</div>

It seems it is based on and old version of the protocol and some now mandatory params are missing.

Ok, let’s back again to your original issues. I recommend you to connect a browser and inspect the messages exchanged between browser and OpenVidu Server and check if the messages you exchange between Unity app and OpenVidu server are the same.

Regards

---

<div class="post-metadata">

### Author: ![Striiki](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@Striiki](https://openvidu.discourse.group/u/Striiki)
#### Post date: [February 21, 2022, 1:07am UTC](https://openvidu.discourse.group/t/no-stream-playing-event/3742/15 "2022-02-21T01:07:04Z")

</div>

From the begining then.

I recrorded all the messages going to OpenVidu  
And i looked at the Openvidu server logs and i get errors when joining and when publish the video.  
Files [Filebin | x2zjeaf6vhdbrmxt](https://filebin.net/x2zjeaf6vhdbrmxt#)

---

<div class="post-metadata">

### Author: ![Striiki](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@Striiki](https://openvidu.discourse.group/u/Striiki)
#### Post date: [February 28, 2022, 6:37pm UTC](https://openvidu.discourse.group/t/no-stream-playing-event/3742/16 "2022-02-28T18:37:56Z")

</div>

New link with logs

> **[Gofile - Free file sharing and storage platform](https://gofile.io/d/Wbgfo5)**
>
> Gofile is a free file sharing and storage platform. You can store and share data of all types. There is no limit and everything is free.

---

<div class="post-metadata">

### Author: ![Romina\_D](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/romina_d/32/2258_2.png) [@Romina\_D](https://openvidu.discourse.group/u/Romina_D)
#### Post date: [July 21, 2023, 9:07am UTC](https://openvidu.discourse.group/t/no-stream-playing-event/3742/17 "2023-07-21T09:07:17Z")

</div>

Hi @Striiki ,  
How have you solved this issue? I have the same error and I don’t understand why my stream is not playing.
