Connect to Samsung TV using AllShare from a Non-Samsung phone I have a Nexus 5 phone and want to connect to my Samsung Smart TV (which supports AllShare). 
How can I do this? 

Thanks.

UPDATE: I tried again after updating my phone to Android 5.0 . but no luck to getting this work .
I had the same problem and then I found an app called Mirror it allows you to mirror your android device screen to pretty much any streaming box or stick or smart TV with streaming capabilities like Samsung Smart TV's. You can even mirror to an Apple TV. With Mirror there is a bit of a delay from you doing something on your phone to it on the TV.

There is also an app called AllCast for just streaming media like music, videos and movies that are on your phone or on one of the few media streaming websites that are available to stream within the app. These include: Twitch, Google+, Dropbox and Google Drive.