# Playing YouTube video in LG TV

**URL:** <https://forum.webostv.developer.lge.com/t/playing-youtube-video-in-lg-tv/8835>\
**Category:** Web App Development\
**Created:** [August 4, 2024, 6:02pm UTC](https://forum.webostv.developer.lge.com/t/playing-youtube-video-in-lg-tv/8835 "2024-08-04T18:02:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lg-123](https://avatars.discourse-cdn.com/v4/letter/l/5fc32e/32.png) [@lg-123](https://forum.webostv.developer.lge.com/u/lg-123)\
**Post date:** [August 4, 2024, 6:02pm UTC](https://forum.webostv.developer.lge.com/t/playing-youtube-video-in-lg-tv/8835/1 "2024-08-04T18:02:24Z")

</div>

Hi everybody. I am new to LG. I want to play a YouTube video from my app.

When I run my app in the Simulator (on Window 10) it telling me:

‘errorCode: -101, errorText: “The app was not found.”’

If I buy a LG TV, will I be able to launch YouTube ?

What is YouTube’s appId ?

=======================

It seems that no apps, beside my app, are installed within the simulator.

Here is the code I run:

```auto
var request = webOS.service.request('luna://com.webos.applicationManager', {
  method: 'launch',
  parameters: {
    id: 'com.webos.app.browser',
    params: {
      url: 'https://see-a-movie.com/',
    },
  },
  onSuccess: function (inResponse) {
    console.log('The app is launched');
    // To-Do something
  },
  onFailure: function (inError) {
    console.log('Failed to launch the app');
    console.log('[' + inError.errorCode + ']: ' + inError.errorText);
    // To-Do something
    return;
  },
});

```

---

<div class="post-metadata">

**Author:** ![narae0.kim](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@narae0.kim](https://forum.webostv.developer.lge.com/u/narae0.kim)\
**Post date:** [August 6, 2024, 6:31am UTC](https://forum.webostv.developer.lge.com/t/playing-youtube-video-in-lg-tv/8835/2 "2024-08-06T06:31:45Z")

</div>

webOS TV apps are web-based. It’s not much different from general web app development. You can find more information by searching Google for how to play YouTube videos in HTML. Thank you.
