public function playAudio(/* polymorphic */)
  {
    $args = Ensure::Input(func_get_args());
    $url = new URIResource($this->getAudioUrl());
    $data = $args->get(); 

    /** update add simplicity. playAudio('audioFile') = playAudio(array('audioFile' => 'audioFile')) **/
    if ($args->is_string()) {
      $data = array(
        "fileUrl" => $data
      );
    }

    $this->client->post((string) $url, $data);
  }
public function playAudio(/* polymorphic */)
  {
    $args = Ensure::Input(func_get_args());
    $url = new URIResource($this->getAudioUrl());
    $data = $args->get(); 

    /** update add simplicity. playAudio('audioFile') = playAudio(array('audioFile' => 'audioFile')) **/
    if ($args->is_string()) {
      $data = array(
        "fileUrl" => $data
      );
    }

    $this->client->post((string) $url, $data);
  }
public function playAudio ( /* polymorphic */ ) { $ args = Ensure :: Input ( func_get_args ( ) ) ; $ url = new URIResource ( $ this -> getAudioUrl ( ) ) ; $ data = $ args -> get ( ) ; /** update add simplicity. playAudio('audioFile') = playAudio(array('audioFile' => 'audioFile')) **/ if ( $ args -> is_string ( ) ) { $ data = array ( "fileUrl" => $ data ) ; } $ this -> client -> post ( ( string ) $ url , $ data ) ; }
Plays audio on the given
context provided a 'fileUrl'
in args. If not present. Throw
warning

@param args [assoc array] (needs joinUrl)
Plays audio on the given context provided a fileUrl in args . If not present . Throw warning