airplay mirroring and airplay casting SDK for mac
- support sender and receiver on the same device
- can work without network
- raw h264 data out support
- hardware decode support with a low cpu usage
- audio data out support
- multi sessions support
pod 'aircast', :git => 'https://github.com/AirCastLab/aircast-ios.git'
then
#import <aircast_sdk_ios/acast_c.h>
This demo is command line app, before you run you need copy aircast_sdk_mac.framework to DerivedData/aircast-demo/Build/Products/Debug/ or DerivedData/aircast-demo/Build/Products/Release/
aircast instance callbacks
static int ac_callback( EACMsgType eType, void* data, size_t dataSize, void* opaque)
{
switch (eType)
{
case eACMsgType_Error:
{
// error callback
break;
}
case eACMsgType_Info:
// info callback
break;
case eACMsgType_Connected:
// connected callback
break;
case eACMsgType_MediaDesc:
// media desc callback, include audio and video
break;
case eACMsgType_Disconnected:
// disconnected clalback
break;
case eACMsgType_VideoData:
// video data callback
break;
case eACMsgType_AudioData:
// audio data callback
break;
case eACMsgType_LicenseRequest:
// license need request, when the sdk need license
ac_update_license(*license);
break;
}
}
aircat setup
int ac_setup( AC_CALLBACK listener, void* opaque)
int ac_start(const SACStartParams* params)
void ac_stop(void);
void ac_finalize(void);
void ac_update_license(const char* license);
- the demo is just for testing, please do not use in production
- if you does not provide license, the demo just can work for several minutes
- we only release the iOS sdk, other Platforms(android/windows/linux/mac) SDK can contact us
Please provide your company info and product info
- Email: leeoxiang@gmail.com
- QQ: 2462437409