# Class AsyncMedia.PlayRequest

java.lang.Object
java.util.Observable
com.codename1.util.AsyncResource<AsyncMedia>
com.codename1.media.AsyncMedia.PlayRequest

Enclosing interface:
  `AsyncMedia`

public static class AsyncMedia.PlayRequest extends AsyncResource<AsyncMedia>

An async resource used to track the progress of a playAsync() request. It will resolve when the media has started playing, or if an error occurs first.

##### Since

7.0

##### See also

- #playAsync()

- ## Nested Class Summary

  ### Nested classes/interfaces inherited from class AsyncResource

  `AsyncResource.AsyncExecutionException, AsyncResource.CancellationException`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PlayRequest()`

- ## Method Summary

  ### Methods inherited from class AsyncResource

  `addListener, all, all, asPromise, await, await, await, cancel, complete, error, except, except, get, get, get, isCancelled, isCancelled, isDone, isReady, onResult, ready, ready, waitFor`

  ### Methods inherited from class Observable

  `addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### PlayRequest

    public PlayRequest()