'Flag media player features that are supported.'

@property
def supported_features(self):

    supported_features = SUPPORT_YAMAHA
    supports = self._playback_support
    mapping = {'play': (SUPPORT_PLAY | SUPPORT_PLAY_MEDIA), 'pause': SUPPORT_PAUSE, 'stop': SUPPORT_STOP, 'skip_f': SUPPORT_NEXT_TRACK, 'skip_r': SUPPORT_PREVIOUS_TRACK}
    for (attr, feature) in mapping.items():
        if getattr(supports, attr, False):
            supported_features |= feature
    return supported_features
