How to convert TCP to UDP using play framework

I have followed the code which is available in the link https://doc.akka.io/docs/akka/2.5/io-udp.html. I have Configured it in my application.I’m trying to call them getting error’s. But unable to run the code.
Any kind of guidance or suggestion is their means kindly help me.
Need to do changes in Play Framework main source code https://www.playframework.com/code means where I need to do or else any other way to convert TCP to UDP using simple play app. kindly provide suggestions ?