# Audio on HeadPhone Not Working!

**URL:** <https://forum.webosose.org/t/audio-on-headphone-not-working/370>\
**Category:** Uncategorized\
**Created:** [May 21, 2018, 9:09am UTC](https://forum.webosose.org/t/audio-on-headphone-not-working/370 "2018-05-21T09:09:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shahbaz](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@shahbaz](https://forum.webosose.org/u/shahbaz)\
**Post date:** [May 21, 2018, 9:09am UTC](https://forum.webosose.org/t/audio-on-headphone-not-working/370/1 "2018-05-21T09:09:36Z")

</div>

When I play any video on the youtube app, I get audio from the built in speakers on the connected LED panel, But when I insert Headphone into audio jack of my pi board, the audio still runs on the built in speakers. I need to run audio on my headphones. How can I do that.

I tried to change the media scenario, first I checked the current media scenario using following _luna-send_

```
luna-send -n 1 -f luna://com.webos.service.audio/media/getCurrentScenario '{}'

```

It returned following values.

```
{
"scenario": "media_back_speaker",
"returnValue": true
}

```

They I tried to change the scenario, using following _luna-send_

```
luna-send -n 1 -f luna://com.webos.service.audio/media/enableScenario '{"scenario":"media__default"}'

```

but it throws an error

```
{
"errorCode": 3,
"returnValue": false,
"errorText": "Invalid 'scenario' string parameter value or file not found."
}

```

Any solutions !

---

<div class="post-metadata">

**Author:** ![Changhyeok](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/changhyeok/32/247_2.png) [@Changhyeok](https://forum.webosose.org/u/Changhyeok)\
**Post date:** [May 24, 2018, 11:40am UTC](https://forum.webosose.org/t/audio-on-headphone-not-working/370/2 "2018-05-24T11:40:09Z")

</div>

I didn't test it using headphone but I will see it soon. Thanks for your report.

---

<div class="post-metadata">

**Author:** ![Changhyeok](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/changhyeok/32/247_2.png) [@Changhyeok](https://forum.webosose.org/u/Changhyeok)\
**Post date:** [May 25, 2018, 1:56am UTC](https://forum.webosose.org/t/audio-on-headphone-not-working/370/3 "2018-05-25T01:56:34Z")

</div>

@shahbaz  
I checked our media team and current we don't support headphone.  
If you would like to use headphone, you need to change source code and then compile again.

In [https://github.com/webosose/libndl-directmedia2/blob/master/src/esplayer.cpp](https://github.com/webosose/libndl-directmedia2/blob/master/src/esplayer.cpp), please change below

#define AUDIO\_OUTPUT\_DESTINATION "hdmi" -\> #define AUDIO\_OUTPUT\_DESTINATION "analogue"

---

<div class="post-metadata">

**Author:** ![shahbaz](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@shahbaz](https://forum.webosose.org/u/shahbaz)\
**Post date:** [May 25, 2018, 4:40am UTC](https://forum.webosose.org/t/audio-on-headphone-not-working/370/4 "2018-05-25T04:40:34Z")

</div>

@Changhyeok  
Thanks for your help, I shall recompile the source code and get back with results !
