StreamServer

interface StreamServer : Peripheral

StreamServer peripheral interface.

This peripheral allows streaming of live camera video and replay of video files stored in drone memory.

This peripheral can be obtained from a drone using:

drone.getPeripheral(StreamServer.class)

See also

com.parrot.drone.groundsdk.device.Drone

Drone#getPeripheral(Class, Ref.Observer)

Functions

enableStreaming
Link copied to clipboard
abstract fun enableStreaming(enable: Boolean)
Drone streaming control.
live
Link copied to clipboard
abstract fun live(@NonNull observer: Ref.Observer<CameraLive>): Ref<CameraLive>
Provides access to the drone active camera default live stream.
abstract fun live(@NonNull source: CameraLive.Source, @NonNull observer: Ref.Observer<CameraLive>): Ref<CameraLive>
Provides access to a drone video live stream.
replay
Link copied to clipboard
abstract fun replay(@NonNull source: MediaReplay.Source, @NonNull observer: Ref.Observer<MediaReplay>): Ref<MediaReplay>
Creates a new replay stream for some remote media.
streamingEnabled
Link copied to clipboard
abstract fun streamingEnabled(): Boolean
Tells whether streaming is currently enabled.