Clapper.Player.post_message

### Method

# Clapper Playerpost_message

since: 0.10

#### Declaration [src]

    void
    clapper_player_post_message (
      ClapperPlayer* player,
      GstMessage* msg,
      ClapperPlayerMessageDestination destination
    )

#### Description [src]

Allows sending custom messages to the desired `destination`.

This functionality can be used for communication with enhancers implementing `ClapperReactable` interface. Useful for applications to send custom messages to enhacers that can react to them and/or for enhancers development to send events from them to the applications. It can also be used for sending specific messages from application or enhancers to the player itself.

Messages send to the application can be received by connecting a `ClapperPlayer::message` signal handler. Inspection of message source object can be done to determine who send given message.

Available since: 0.10

#### Parameters

`msg`

  Type: `GstMessage`

  A `GstMessage`.

  The instance takes ownership of the data, and is responsible for freeing it.

`destination`

  Type: `ClapperPlayerMessageDestination`

  A `ClapperPlayerMessageDestination`.