GithubHelp home page GithubHelp logo

miracast-sink's Introduction

编译说明:
    1. 编译APK
      需要在源码下边编译,可以用以下命令进行编译:
            make libwfd
            make libwfd_jni
        把编译好的两个lib库放到APP的相关路径下, 可以执行脚本(cplib.sh)进行快速copy
        然后在Eclipse下编译APK
        把此APK安装进手机. 手机必须支持Miracast.
    2. 修改framework.
        把 framework-modify/路径下的patch, 打到framework中
        编译services.jar, 用如下命令:
            make services
        把编译好的 services.jar, 替换手机中的 system/framework/services.jar 文件.

使用说明:
    1. 重启手机使services.jar起做用.
    2. 打开setting->display->wifidisplay: 点一下搜索显示设备, 则在其它的Source端可以看到本Sink.
    3. 用其它手机连接, 然后快速切换到上一步编译好的APK中.


注意: 此程序并不是一个完美的完成品, 未完成部分如下:
    1. 不用修改Framework, 而直接在程序中管理Wifi direct的连接及发现部分.
    2. 目前的连接好的IP不是计算得来的, 需要计算找到对方的IP.
    3. 播放的一些控制及释放等.

此程序的大部分移植自 Android4.2.2的源码, 但是在4.3中此块源码竟然被删掉了, 真是猜不透Google怎么想的.


miracast-sink's People

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.