YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.share.LiveStreamTarget Class Reference

The target of a ShareRegistry.Kind#LIVE_STREAM entry: the live stream of this phone (the device audio or the screen) that is captured only as long as the share exists. More...

Inheritance diagram for de.yaacc.share.LiveStreamTarget:
Inheritance graph
Collaboration diagram for de.yaacc.share.LiveStreamTarget:
Collaboration graph

Classes

interface  Capture
 What the share needs from the capture of the phone. More...
 

Public Member Functions

 LiveStreamTarget (boolean audio, Capture capture)
 
boolean isAudio ()
 
InputStream open () throws IOException
 
void close ()
 Gives the capture back, once.
 

Detailed Description

The target of a ShareRegistry.Kind#LIVE_STREAM entry: the live stream of this phone (the device audio or the screen) that is captured only as long as the share exists.

Closing it (the registry does that once, when the entry is removed or expires) gives the capture back; the capture stops when nobody else needs it. Plain Java: the capture is behind Capture.

Member Function Documentation

◆ isAudio()

boolean de.yaacc.share.LiveStreamTarget.isAudio ( )
Returns
true for the device audio, false for the screen cast

◆ open()

InputStream de.yaacc.share.LiveStreamTarget.open ( ) throws IOException
Returns
a new stream for one client, or null if the share is closed or the capture is not running

The documentation for this class was generated from the following file: