XinDawnAirPlaySDKForLinux接口说明文档-.doc

  1. 1、本文档共9页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
XinDawnAirPlaySDKForLinux接口说明文档-

XinDawn Airplay SDK for Linux 开发说明文档 XinDawn Tech 2015-09 系统SDK 启动 airplay服务 int XinDawn_StartMediaServer(char *friendname, int width, int height, airplay_callbacks_t *cb); 函数功能: 启动Airplay服务 输入参数: friendname iOS 设备上显示的接收设备名称 width 设置接收设备的最佳显示宽度 height 设置接收设备的最佳显示高度 cb 设置回调函数 返回值: -1:端口被占用 0:成功 停止airplay 服务 void XinDawn_StopMediaServer(); 函数功能: 停止airplay 服务 输入参数: 无。 返回值: 无。 设置回调函数 输出屏幕镜像时视频流头数据 void(*AirPlayMirroring_Play)(void *cls,int width,int height,const void *buffer, int buflen, int payloadtype, double timestamp); 函数功能: 输出屏幕镜像时视频流头信息(SPS/PPS) 输入参数: cls 用户回调句柄 width 输出视频宽带 height 输出视频高度 buffer 视频信息输出缓冲区指针 buflen 视频信息长度 payloadtype 保留 timestamp 保留 返回值: 无。 输出屏幕镜像时视频数据 void(*AirPlayMirroring_Process)(void *cls, const void *buffer, int buflen, int payloadtype, double timestamp); 函数功能: 输出屏幕镜像时视频流数据。 输入参数: cls 用户回调句柄 buffer 视频数据输出缓冲区指针 buflen 视频数据长度 payloadtype 视频类型 1:额外的视频流信息 0:视频数据 timestamp 视频时间戳,单位是秒 返回值: 无。 注意: 1.额外的视频流信息 它出现在视频流开始或者屏幕发生旋转并且视频分辨率改变的时候 H.264 codec data from iPad 0000 01 64 c0 28 ff e1 00 10 67 64 c0 28 ac 56 20 0d 0010 81 4f e5 9b 81 01 01 01 01 00 04 28 ee 3c b0 The H.264 codec data is interpreted as follows: size value description 1 byte 1 version 1 byte 100 profile (high) 1 byte 0xc0 compatibility 1 byte 40 level (4.0) 6 bits 0x3f reserved 2 bits 3 NAL units length size - 1 3 bits 0x7 reserved 5 bits 1 number of SPS 2 bytes 16 length of SPS 16 bytes … Sequence parameter set 1 byte 1 number of PPS 2 bytes 4 length of PPS 4 bytes … Picture parameter set 2.视频流信息 这个数据用于解码包括IDR,NON-IDR数据 3.H.264数据的单位是NAL,每次输出的数据可能包含多个NAL,需要依次处理。 通知屏幕镜像时视频流输出关闭 void(*AirPlayMirroring_Stop)(void *cls); 函数功能: 通知视频流输出关闭 输入参数: cls 用户回调句柄 返回值: 无 输出屏幕镜像/播放音乐时音频流信息 void(*AirPlayAudio_Init)(void *cls, int bits, int channels, int samplerate, int isaudio); 函数功能: 输出屏幕镜像时音频流信息。 输入参数: cls 用户回调句柄 bits 音频采样大小 channels 音频的

文档评论(0)

almm118 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档