# Video/audio doesn't play in the client (UI) player

**URL:** <https://janus.discourse.group/t/video-audio-doesnt-play-in-the-client-ui-player/483>\
**Category:** General\
**Created:** [August 4, 2023, 1:12pm UTC](https://janus.discourse.group/t/video-audio-doesnt-play-in-the-client-ui-player/483 "2023-08-04T13:12:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yvvarun](https://avatars.discourse-cdn.com/v4/letter/y/59ef9b/32.png) [@yvvarun](https://janus.discourse.group/u/yvvarun)\
**Post date:** [August 4, 2023, 1:12pm UTC](https://janus.discourse.group/t/video-audio-doesnt-play-in-the-client-ui-player/483/1 "2023-08-04T13:12:38Z")

</div>

Hello,  
i have a video player on a UI that is receiving media from a janus server through relay (turn server). i am facing an issue where the media sometimes loads and sometimes it doesn’t.

in janus.js →

```auto
function createHandle(callbacks) {
...
...
...
var pluginHandle = {
          session: that,
          plugin: plugin,
          id: handleId,
          token: handleToken,
          detached: false,
          webrtcStuff: {
            started: false,
            myStream: null,
            streamExternal: false,
            remoteStream: null,
            mySdp: null,
            mediaConstraints: null,
            pc: null,
            dataChannelOptions: callbacks.dataChannelOptions,
            dataChannel: {},
            dtmfSender: null,
            trickle: false,
            iceDone: false,
            volume: {
              value: null,
              timer: null
            },
            bitrate: {
              value: null,
              bsnow: null,
              bsbefore: null,
              tsnow: null,
              tsbefore: null,
              timer: null
            }
          },
...
...
...

```

i’ve tried with both trickle: true and trickle: false  
also, i’ve set request.jsep.force\_relay = true;

and in janus.jcfg (on the server) →

```auto
allow_force_relay = true
full_trickle = false (tried with full_trickle = true as well)

```

i’ve made an observation in the janus request, response messages from the UI where i’ve seen that when the media doesn’t load, there’s only a single trickle message sent from the UI which is end-of-candidates.  
and when the media loads, there are 2 trickle messages sent from the UI, one of which has the relay candidate.  
i’ve attached a screenshot of this if that helps.

 ![Screenshot 2023-08-04 at 6.18.44 PM](https://global.discourse-cdn.com/free1/uploads/janus/original/1X/6e567186b874fefa66a631d46a6bcf3956febeb8.jpeg)

could you please help? let me know if you need any more configs or logs.

---

<div class="post-metadata">

**Author:** ![yvvarun](https://avatars.discourse-cdn.com/v4/letter/y/59ef9b/32.png) [@yvvarun](https://janus.discourse.group/u/yvvarun)\
**Post date:** [August 9, 2023, 11:17am UTC](https://janus.discourse.group/t/video-audio-doesnt-play-in-the-client-ui-player/483/2 "2023-08-09T11:17:30Z")

</div>

hey @lorenzo, could you please have a look?

---

<div class="post-metadata">

**Author:** ![lorenzo](https://yyz2.discourse-cdn.com/free1/user_avatar/janus.discourse.group/lorenzo/32/425_2.png) [@lorenzo](https://janus.discourse.group/u/lorenzo)\
**Post date:** [August 29, 2023, 6:45am UTC](https://janus.discourse.group/t/video-audio-doesnt-play-in-the-client-ui-player/483/3 "2023-08-29T06:45:04Z")

</div>

I can only guess that sometimes the browser doesn’t get a TURN candidate which you apparently need.

---

<div class="post-metadata">

**Author:** ![yvvarun](https://avatars.discourse-cdn.com/v4/letter/y/59ef9b/32.png) [@yvvarun](https://janus.discourse.group/u/yvvarun)\
**Post date:** [August 31, 2023, 10:36am UTC](https://janus.discourse.group/t/video-audio-doesnt-play-in-the-client-ui-player/483/4 "2023-08-31T10:36:03Z")

</div>

okay, any idea when can that happen and how i can debug further?  
i’m using coturn service and it seems to be running even when this issue occurs and i don’t see any error in the service logs

---

<div class="post-metadata">

**Author:** ![yvvarun](https://avatars.discourse-cdn.com/v4/letter/y/59ef9b/32.png) [@yvvarun](https://janus.discourse.group/u/yvvarun)\
**Post date:** [August 31, 2023, 10:38am UTC](https://janus.discourse.group/t/video-audio-doesnt-play-in-the-client-ui-player/483/5 "2023-08-31T10:38:44Z")

</div>

this issue is related - [STUN BINDING request timing out](https://janus.discourse.group/t/stun-binding-request-timing-out/516)
