If you want to share media files from another phone to your HTC phone,  or between two HTC phones, you can download 
HTC Transfer Tool from 
Google Play Store. This tool uses 
Wi-Fi Direct® to transfer data, like messages and photos from your current phone. 
See the user guide for details on how to use the HTC Transfer Tool. 
 If you want to share media files from your HTC phone to other Android phones using Wi-Fi Direct, you may download a third-party app to enable such transfers.