> This page is for APIs.

> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes.

# call.play

GET /

Receive call.play events

Reference: https://signalwire.com/docs/apis/relay/client/fabric/call-play

## AsyncAPI Specification

```yaml
asyncapi: 2.6.0
info:
  title: call.play
  version: subpackage_callPlay.call.play
  description: Receive call.play events
channels:
  /:
    description: Receive call.play events
    publish:
      operationId: subpackage_callPlay.call.play-publish
      summary: call.play
      message:
        name: onCallPlayCallPlayEvent
        title: call.play
        payload:
          $ref: '#/components/schemas/call.play_callPlayEvent'
servers:
  production:
    url: wss://relay.signalwire.com/
    protocol: wss
    x-default: true
components:
  schemas:
    ChannelsCallPlayMessagesCallPlayEventJsonrpc:
      type: string
      enum:
        - '2.0'
      description: JSON-RPC version. Always `2.0`.
      title: ChannelsCallPlayMessagesCallPlayEventJsonrpc
    ChannelsCallPlayMessagesCallPlayEventMethod:
      type: string
      enum:
        - signalwire.event
      description: Always `signalwire.event`.
      title: ChannelsCallPlayMessagesCallPlayEventMethod
    ChannelsCallPlayMessagesCallPlayEventParamsEventType:
      type: string
      enum:
        - call.play
      description: The event type — identifies which event this is.
      title: ChannelsCallPlayMessagesCallPlayEventParamsEventType
    Fabric.FabricCallPlayState:
      type: string
      enum:
        - playing
        - paused
        - error
        - finished
      title: Fabric.FabricCallPlayState
    Fabric.CallPlayParams:
      type: object
      properties:
        call_id:
          type: string
          description: >-
            Unique identifier of the call this event is about. Always present on
            Fabric events.
        node_id:
          type: string
          description: The node the call leg lives on.
        room_session_id:
          type: string
          description: >-
            The room session this call leg belongs to. In a 1:1 call this equals
            the `call_id`.
        control_id:
          type: string
          description: >-
            The `control_id` of the playback this event refers to, from the
            request that started it.
        state:
          $ref: '#/components/schemas/Fabric.FabricCallPlayState'
          description: Where the playback currently stands.
      required:
        - call_id
        - node_id
        - room_session_id
        - control_id
        - state
      description: >-
        Payload of the Call Fabric `call.play` event: playback state for a
        `call.play` action.
      title: Fabric.CallPlayParams
    ChannelsCallPlayMessagesCallPlayEventParams:
      type: object
      properties:
        event_type:
          $ref: >-
            #/components/schemas/ChannelsCallPlayMessagesCallPlayEventParamsEventType
          description: The event type — identifies which event this is.
        event_channel:
          type: string
          description: >-
            The channel the event was delivered on — for Calling events, the
            `protocol`

            string your connection received from `signalwire.connect`.
        timestamp:
          type: number
          format: double
          description: >-
            When the event was emitted, as a Unix timestamp in seconds. Always
            present.
        project_id:
          type: string
          description: >-
            Your project ID. Present on Calling events and most Call Fabric
            events; absent on `call.joined`, `call.left`, `member.joined`, and
            `member.left`.
        space_id:
          type: string
          description: >-
            Your space ID. Present on Calling events and most Call Fabric
            events; absent on `call.joined`, `call.left`, `member.joined`, and
            `member.left`.
        params:
          $ref: '#/components/schemas/Fabric.CallPlayParams'
          description: The event-specific payload.
      required:
        - event_type
        - event_channel
        - timestamp
        - params
      description: The event envelope.
      title: ChannelsCallPlayMessagesCallPlayEventParams
    call.play_callPlayEvent:
      type: object
      properties:
        jsonrpc:
          $ref: '#/components/schemas/ChannelsCallPlayMessagesCallPlayEventJsonrpc'
          description: JSON-RPC version. Always `2.0`.
        id:
          type: string
          description: >-
            Event id — a unique UUID generated for each event. Events are
            notifications: you do not reply to them.
        method:
          $ref: '#/components/schemas/ChannelsCallPlayMessagesCallPlayEventMethod'
          description: Always `signalwire.event`.
        params:
          $ref: '#/components/schemas/ChannelsCallPlayMessagesCallPlayEventParams'
          description: The event envelope.
      required:
        - jsonrpc
        - id
        - method
        - params
      description: >-
        Fires when audio playback on a Call Fabric call starts, pauses, resumes,
        finishes, or errors, so you can track the playback through to
        completion. SWML or a server-side application starts it on the leg;
        there is no client request that starts it.
      title: call.play_callPlayEvent

```