play pause implementation using flag over bluetooth