ok this is how I got Perfect Player on firestick to stream zgemma channels, get the .apk here
http://niklabs.com/?wpdmdl=772 or from the playstore
https://play.google.com/store/apps/details?id=com.niklabs.pp
after installing the perfect player .apk on firestick, start openwebif on you pc ie the ip address of your zgemma. Now you have to save the .m3u file from the bouquet you want to view. Click on bouquets at the top of openwebif then click the little tv icon to the left of the bouquet name you want to view on firestick and the .m3u will download. Ive got Entertainment and Sports on my firestick Perfect Player but you could download the .m3u for "all channels" if you wanted I guess. Now rename the .m3u you've just download to "entertainment" "sports" or whatever bouquet(s) you've chosen. Perfect Player only lets you have 2 categories by the way.
Now transfer the .m3u file(s) over to the firestick, I use use Rapfox FTP on the stick and filezilla on pc which works great. I transferred the .m3u files to/storage/emulated/0/download/
To set up Perfect Player settings:
IPTV data server = your zgemma IP
And this is how I've set up my playlist settings in perfect player:
Playlist 1:
/storage/emulated/0/download/entertainment.m3u
Playlist 2:
/storage/emulated/0/download/sports.m3u
This method works great for me, the only downside is there is no EPG, I've not worked out how to do that yet lol