当前位置:网站首页>Add IPAD control function into shairplay
Add IPAD control function into shairplay
2022-06-23 07:02:00 【Ti-laser】
After several days studying and searching, I can pause/play IPAD through shairplay now. shairplay is a great work which can works as an airplay device to play songs comes from airtune/ipad/iphone, sadly, you can only control music by apple products but on pc during playing. shairplay doesn't implement workable DACP even it has supply a interface. I extend the function of shiarplay by porting some code from internet. now some basic operations have been supported by shairplay, you can pause and play under shairplay console. anyway,the output of shairplay has also port to pulseaudio, it is in its very original stage,I did this work just want to make shairplay to cowork with mpd(both of them use alsa and will conflict with each other during operating ALSA, let pulseauido to mananger them is good idea for me), considering mix of music is not user want to expect usually, shairplay will pause mpd before start play.
the whole project has been update to csdn and you can search keywords shairplay control to download(resource name:shairplay-control).or direct click next link:
http://download.csdn.net/detail/shuaiff/8926195
please download and have a test. (please update it if you find some problems described in this introduction.)
some explanations to the work:
During startup , shairplay will pass the received 'dacp_id' and 'active_remote_header' to application by calling registered function raop_rtp->callbacks.audio_remote_control_id(if exists), these information are necessary to connect airplay control port,one for service inquiry and another for identification. before calling this function, the added function dacp_client_init(dacp_id, active_remote_header) will get controlport supply by iphone using these information firstly. once the communication has been setup, the subsequent control can be response by iphone just simple write dacp commands to that port with correct identification(remote_head).
some bugs not fixed into the package:
in client_callback, parameter to avahi_service_browser_new should be changed from AVAHI_PROTO_INET to AVAHI_PROTO_UNSPEC, or it will always failed in ipv6-only system.
for more information,please refer:http://www.sugrsugr.com/index.php/airplay-prev-next/
边栏推荐
猜你喜欢

Media industry under the epidemic situation, small program ecology driven digital transformation exploration

MySQL重做日志 redo log

Influence of steam education on domestic college students
![[STL] summary of deque usage of sequential containers](/img/33/65c54d14697ee43b2655ea1255d67d.png)
[STL] summary of deque usage of sequential containers

ssm + ftp +ueditor

【STL】关联容器之unordered_map用法总结

Copy and paste of idea without escape

cmder

云原生落地进入深水区,博云容器云产品族释放四大价值

QT designer cannot modify the window size, and cannot change the size by dragging the window with the mouse
随机推荐
excel高级绘图技巧100讲(八)-Excel绘制WIFI图
【STL】关联容器之map用法总结
Centos7 MySQL records
MySQL重做日志 redo log
在金融行业做数据产品经理是什么体验
2121. sum of intervals of the same elements - hash table method
idea安装 CloudToolkit 插件
宝塔忘记密码
English grammar_ Adjective comparative - Level 3 change
[QT] basic learning notes
What you need to know about five insurances and one fund
Business logic design of physical warehouse and virtual warehouse in middle inventory
Concepts and differences of DQL, DML, DDL and DCL
使用ts-node直接运行TypeScript代码
XML DTD record
Side effects of threads in embedded real-time systems
/bin/sh no such file or directory问题
Eureka
嵌入式实时系统线程的副作用
MySQL optimization