2016/11/29

bookmark: wifi display /Miracast sink


然後還有這篇,被 刪掉的 blog:
要改的部份:

1. #include <gui/SurfaceTextureClient.h> ==> #include <gui/Surface.h>
2. ISurfaceTexture ===> IGraphicBufferProducer

3. IMediaPlayerService    mPlayer = service->create(getpid(), mPlayerClient, 0); ==>
    mPlayer = service->create( mPlayerClient, 0);

4. sp<ISurfaceTexture> getSurfaceTexture(); ==>;    sp<IGraphicBufferProducer> getIGraphicBufferProducer() const;

比較仔細的是這一篇:https://github.com/kensuke/How-to-Miracast-on-AOSP/wiki/Android-4.4
但是 build 會出現:
frameworks/av/media/libstagefright/wifi-display/wfd.cpp:348: error: undefined reference to 
'android::WifiDisplaySink::WifiDisplaySink(unsigned int, 
                                           android::sp<android::ANetworkSession> const&, 
                                           android::sp<android::IGraphicBufferProducer> const&, 
                                           android::sp<android::AMessage> const&)'

沒有留言:

張貼留言