-
Notifications
You must be signed in to change notification settings - Fork 1
virtucamera.VCServer Attributes
shycats edited this page May 14, 2021
·
5 revisions
All attributes are read-only
- SERVER_VERSION
- is_event_loop_running
- current_camera
- capture_mode
- capture_format
- capture_width
- capture_height
- use_vflip
- is_stopping
- is_serving
- is_connected
- is_capturing
- server_port
- client_ip
- client_port
version of PyVirtuCamera as (major,minor,patch)
True while the server is running, from the moment the server
is started with VCServer.start_serving() to the moment the
server is completely stopped, when VCBase.server_did_stop()
is called. When VCServer is created with VCServer.EVENTMODE_PULL,
VCServer.execute_pending_events() must be called
regularly while VCServer.is_event_loop_running is True.
Related: VCServer.start_serving() ||| VCServer.stop_serving() ||| VCBase.server_did_stop() ||| VCServer.execute_pending_events()
The name of the camera currently selected in VirtuCamera app.
Mode to be used for capturing the viewport. One of:
* VCServer.CAPMODE_SCREENSHOT
* VCServer.CAPMODE_BUFFER
* VCServer.CAPMODE_BUFFER_POINTER
See VCServer.set_capture_mode() and VCBase.capture_will_start()
for more details.
Related: VCServer.set_capture_mode() ||| VCBase.capture_will_start()
Pixel format when a buffer is used. One of:
* VCServer.CAPFORMAT_UBYTE_RGB
* VCServer.CAPFORMAT_UBYTE_BGR
* VCServer.CAPFORMAT_UBYTE_RGBA
* VCServer.CAPFORMAT_UBYTE_BGRA
See VCServer.set_capture_mode() and VCBase.capture_will_start()
for more details.
Related: VCServer.set_capture_mode() ||| VCBase.capture_will_start()
Horizontal size of the captured image in pixels.
Related: VCServer.set_capture_resolution()
Vertical size of the captured image in pixels.
Related: VCServer.set_capture_resolution()
True if vertical flip of the viewport video feed
is enabled, False otherwise.
Related: VCServer.set_vertical_flip()
True while the server is shutting down all its processes
after VCServer.stop_serving() is called.
Related: VCServer.stop_serving() ||| VCBase.server_did_stop()
True while the server is open to incomming connections
from the app.
Related: VCServer.start_serving()
True while an app is connected to the server.
True during a viewport video capture session.
Related: VCBase.capture_will_start() ||| VCBase.capture_did_end()
Port where the server is listening for incomming connections
after calling VCServer.start_serving()
Related: VCServer.start_serving()
Network address of the client app connected to the server.
Network port of the client app connected to the server.