![miracast on android miracast on android](https://m.media-amazon.com/images/I/51IjFFfqdqL._AC_SS450_.jpg)
Output: Created an object of the MediaChannel class. sessionId : Describes the session id of the current session. UserInfo : Describes the IP, device model, device name and other information of the sender. MediaChannelInfo : Describes the type information of the current session. Input: Session information,Describe business type. Public abstract MediaChannel reqMediaChannel(MediaChannelInfo var1, UserInfo var2, int var3) Public void advReqKeyFrame(int channelId) 3.2 Interface in the MiraProxyBaseImp 3.2.1 Interface for Session access Public void reqKeyFrame(int channelid) 3.1.6 Delay keyframe request Input: The channelid is the ID of the corresponding MediaChannel created by the reqMediaChannel method of the MiraProxyBaseImp class. Called when the app destroys the miracast receiver service. Public native void fini() The fini method of the MiraProxyModule class deinitializes the miracast module. The return value is 0, indicating failed initialization. The return value is 1, indicating successful initialization. The MiraProxyModule object should be designed to have only one global when the app is started for initialization. Public native boolean init(Properties var1) The init method of the MiraProxyModule class initializes the miracast receiver module. Input: An interface instance of the MiraProxyModuleImp class implemented by the user. Public void setProxyImp(MiraProxyBaseImp proxyImp) 3.1 Interface of the MiraProxyModule class 3.1.1 setProxyImp
#MIRACAST ON ANDROID CODE#
Users need to implement the relevant interfaces of the MediaChannel class and the MiraProxyBaseImp class, or refer to the demo source code provided by our company. Through this interface class, the SDK informs the application program of control events such as audio and video data, volume control, video rotation, etc., and the application program processes them in the corresponding player. The MediaChannel class is an interface class, which needs to be implemented by user program.
![miracast on android miracast on android](https://m.media-amazon.com/images/I/51GiHoMu3IL._AC_SY450_.jpg)
The user program needs to create corresponding MediaChannel implementation classes and corresponding player applications according to different session types. The SDK informs the user program of the start and end of miracast screen throwing session through the interface class. The MiraProxyBaseImp class is an interface class, which needs to be implemented by the user. The MiraProxyModule class provides interfaces for initializing SDK, deinitializing SDK, and stopping a session. The interfaces are mainly defined in the MiraProxyModule, MiraProxyBaseImp and MediaChannel classes. MiraRenderChannel implements the MediaChannel class and realizes the processing of the Miracast audio session. MiraProxyModuleImp implements the MiraProxyBaseImp class and realizes the control of the Miracast audio session. It implements the functions of the receiver based on bj_miracast_lib-1.0.19-release.aar and cast_base_lib-1.0.20-release.aar.
#MIRACAST ON ANDROID ANDROID#
2.2 SDK FrameworkīJMiracast Receiver SDK is generally divided into two layersĬast_base_lib-1.0.20-release.aar : It is a Android Module,It defines the interfaces for the MediaChannel class.īj_miracast_lib-1.0.19-release.aar : It is a Android Module,It defines the interfaces for the MiraProxyBaseImp, MiraProxyModule and JNI。 In principle, the application should not modify the contents of cast_base_lib-1.0.20-release.aar and bj_miracast_lib-1.0.19-release.aar 。Ĭastdemo is a reference implementation of the receiver.
#MIRACAST ON ANDROID WINDOWS 10#
This SDK can accept the screen from miracast on Android and miracast on windows 10 or 8 and WiDi and windows 10 or 8, and provide interfaces for the application layer to call processing. The wireless display standard is based on Wi Fi direct, developed by the Wi Fi Alliance in 2012. 1.2 Definition Of Abbreviations Abbreviation This document is applicable to the developers who develop the receiver of Android miracast. It is used to guide the developers who use the Miracast SDK also called WiDiSDK run on Android of BiJie to develop and test. Wireless Display SDK of Miracast 1.1 Purpose