Problem playing music via Chromecast
Had similar issue when streaming music from phone to wireless speakers via wifi. Phone, unfortunately, wont allow sleep mode to be turned off completely (only when charging phone). Best solution I have is using app called INSOMNIA. It allows you to switch sleep mode off completely. Worked with Huawei P8 lite.