ivygroup / miracast-sink Goto Github PK
View Code? Open in Web Editor NEWAndroid miracast sink
Android miracast sink
编译说明: 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怎么想的.
Hi
我在Android4.4.2下编译native时报错:
make libwfd
In file included from native/wifi-display/sink/RTPSink.cpp:21:0:
native/wifi-display/sink/RTPSink.h:38:22: error: 'ISurfaceTexture' was not declared in this scope
native/wifi-display/sink/RTPSink.h:38:37: error: template argument 1 is invalid
native/wifi-display/sink/RTPSink.h:69:8: error: 'ISurfaceTexture' was not declared in this scope
native/wifi-display/sink/RTPSink.h:69:23: error: template argument 1 is invalid
In file included from native/wifi-display/sink/RTPSink.cpp:24:0:
native/wifi-display/sink/TunnelRenderer.h:40:22: error: 'ISurfaceTexture' was not declared in this scope
native/wifi-display/sink/TunnelRenderer.h:40:37: error: template argument 1 is invalid
native/wifi-display/sink/TunnelRenderer.h:59:8: error: 'ISurfaceTexture' was not declared in this scope
native/wifi-display/sink/TunnelRenderer.h:59:23: error: template argument 1 is invalid
native/wifi-display/sink/RTPSink.cpp:241:18: error: 'ISurfaceTexture' was not declared in this scope
native/wifi-display/sink/RTPSink.cpp:241:33: error: template argument 1 is invalid
make: *** [out/target/product/sabresd_6dq/obj/SHARED_LIBRARIES/libwfd_intermediates/sink/RTPSink.o] Error 1
可以帮忙看一下吗?感谢!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.