Ok, here you go:
Download iPhone template release 1
A few notes:
- Like Larskl's template, this one requires that you access it via index.html
- The "playlist row" field in the HTTP Control preferences must be set to the following, or some variation thereof:
{ "artist": "$ifgreater($len(%artist%),29,$cut(%artist%,29)'...',%artist%)", "album": "$ifgreater($len(%album%),29,$cut(%album%,29)'...',%album%)", "number": "%tracknumber%", "track": "$ifgreater($len($replace(%title%,",)),28,$cut($replace(%title%,",),28)'...',$replace(%title%,",))", "len": "%length%" }
- The shuffle button does not work like the iPhone shuffle, on account of the foobar shuffle not working like the iPhone shuffle. Rather than shuffling the playlist, it picks a single track at random and continues forward from there.
- This template automatically refreshes every 5 seconds, regardless of whether or not you have the auto-refresh option checked in the HTTP Control preferences. This is largely because the the AUTO_REFRESH macro is passed with quotes, and I didn't feel like stripping them out for an option that you should really leave turned on. If there's a demand for it, I'll fix it.
- Many features are missing, on account of it being really hard to mimic Apple's UI with only a single form of user input (left-click). I have a few ideas in the works, but feel free to make suggestions.