<abstract> new MediaStream()
Extends
- olympe.ui.UIElement
Methods
-
getUIProxyMediaStream()
-
This method needs to be public for the Video objects to be able to access the UI stream proxy
Returns:
Native media stream proxy
- Type
- olympe.uiapi.media.MediaStream
-
takePicture(callback [, pictureSize])
-
Take a still picture of the stream
Parameters:
Name Type Argument Description callbackolympe.ui.media.MediaStream.PictureTakenCallback Callback function
pictureSizeolympe.df.Vector2 | olympe.df.Proxy.<olympe.df.Vector2> <optional>
If specified, the stream picture will cover the area (aspect ratio is preserved, some cropping my occur)
Type Definitions
-
PictureTakenCallback(dataUrl)
-
Parameters:
Name Type Description dataUrlstring The data url of the picture taken
Olympe SDK