watch static method

Stream<CloudMediaItem> watch(
  1. String mediaId
)

Watch real-time status updates for a media item.

Emits updates as the item transitions through: pending → processing → syncing → synced

CloudMedia.watch(item.id).listen((updated) {
  print(updated.status.displayName);
  print(updated.downloadUrl); // available when synced
});

Implementation

static Stream<CloudMediaItem> watch(String mediaId) {
  _ensure();
  return _provider!.watchMedia(mediaId);
}