开发者

How to sync counter via sockets on iPad

I have a 开发者_开发问答Application on a PC which displays time-information for a mp3 song that is played. I now need to display this time information within an iPad App. The counting timers for remaining time, player position and song length must be in sync between iPad an PC.

I thought about using a socket connection (AsyncSocket on iPad) to keep the counters in sync.

Is there a better way doing this? I don't want to run in the wrong direction...

Additional, it should be possible to have more than one iPad showing the Information in future. That's a "nice to have" feature...

I don't need ready to use code snippets, it's more a theoretical question. (if someone has a ready to use code snippet, that's also good for me :-) )

MadMaxApp


i now used the AsyncSocket to solve the requirements. It works perfectly. Don't forget the handling of closing the socket connection if the app goes in background. Depending on the server the app is talking with, not closing the socket can lead to a problem in reconnecting.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜