GithubHelp home page GithubHelp logo

vlc-java-client-spring-boot's Introduction

README

一个VLC的Java客户端,基于VLC的HTTP接口,类型安全,代码可读。

技术栈:

  • Spring Boot
  • Spring Cloud Feign

配置

开启VLC的HTTP支持

  1. 打开配置,点击Show All
  2. 开启Web支持
  3. 配置密码

配置应用

  1. 修改application.properties 中的vlc.http.password.password 配置属性,与你VLC中配置的密码一致。

  2. 修改Feign Client的url,改为你VLC所在地址。

    @FeignClient(name = "vlc", url = "http://localhost:8080/requests", configuration = VlcConfiguration.class)
    public interface VlcFeignClient {
        ...
    }

    如果对代码有洁癖,也可将url属性搞到配置文件里,或者弄个常量。

使用示例

vlcFeignClient.playlist();	// 查看播放列表
vlcFeignClient.status(ComplexVlcCommand.IN_PLAY, "file:///文件路径") // 播放指定素材
...

一切尽在vlcFeignClient 中。

测试示例

详见com.itmuch.vlc.VlcTestController 中的代码,应有仅有。只需启动,然后用VlcTestController中注释的地址访问即可。

LICENCE

Apache 2.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.