I want to stream music from my android to pc using bluetooth's A2DP feature since my sound bar has no bluetooth feaure.I have connected my soundbar to pc so that I can use them with bluetooth but i dont know how to stream my music from android to pc via bluetooth.
I am not sure but I think that the bluetooth function in your PC is as a transmitter not a receiver. This means that it is meant to send audio to your soundbar not receive audio from your phone.
I would suggest adding a bluetooth receiver to your soundbar. Better anyway since you won't need to run the PC to make it work.