# Playing Local Files With VLCJVideo Library

**URL:** <https://discourse.processing.org/t/playing-local-files-with-vlcjvideo-library/47949>\
**Category:** Libraries\
**Created:** [February 23, 2026, 4:12pm UTC](https://discourse.processing.org/t/playing-local-files-with-vlcjvideo-library/47949 "2026-02-23T16:12:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eureka](https://avatars.discourse-cdn.com/v4/letter/e/74df32/32.png) [@Eureka](https://discourse.processing.org/u/Eureka)\
**Post date:** [February 23, 2026, 4:12pm UTC](https://discourse.processing.org/t/playing-local-files-with-vlcjvideo-library/47949/1 "2026-02-23T16:12:10Z")

</div>

Hi, Hopefully somebody knows about this. I want to use the VLCJ library to play video on the vlcj website it says it can stream video or play it from a local source. I have installed the library but all of the example are streaming from the web, which works. There are no examples of playing a local file. Can it play local files and if so how do I do it? Thanks

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [February 23, 2026, 7:17pm UTC](https://discourse.processing.org/t/playing-local-files-with-vlcjvideo-library/47949/2 "2026-02-23T19:17:55Z")

</div>

Hello @Eureka ,

This worked on my Windows 10 PC:

```auto
  // Convert file path to a URI format
  String uri = "file:///" + sketchPath() + "/data/VID_20180520_194732867.mp4";
  println(uri);

```

You will have to modify for your resource location.

> **[Uniform Resource Identifier](https://en.wikipedia.org/wiki/Uniform_Resource_Identifier)**
>
> A Uniform Resource Identifier (URI), formerly Universal Resource Identifier, is a unique sequence of characters that identifies an abstract or physical resource,: 1  such as resources on a webpage, email address, phone number,: 7  books, real-world objects such as people and places, and concepts.: 5 
> URIs which provide a means of locating and retrieving information resources on a network (either on the Internet or on another private network, such as a computer file system or an Intranet) are Uni...

`:)`

---

<div class="post-metadata">

**Author:** ![Eureka](https://avatars.discourse-cdn.com/v4/letter/e/74df32/32.png) [@Eureka](https://discourse.processing.org/u/Eureka)\
**Post date:** [February 24, 2026, 10:41am UTC](https://discourse.processing.org/t/playing-local-files-with-vlcjvideo-library/47949/3 "2026-02-24T10:41:45Z")

</div>

Great thanks for that
