mirror of https://github.com/Genymobile/scrcpy
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
452 B
Java
23 lines
452 B
Java
package com.genymobile.scrcpy;
|
|
|
|
public enum VideoSource {
|
|
DISPLAY("display"),
|
|
CAMERA("camera");
|
|
|
|
private final String name;
|
|
|
|
VideoSource(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
static VideoSource findByName(String name) {
|
|
for (VideoSource videoSource : VideoSource.values()) {
|
|
if (name.equals(videoSource.name)) {
|
|
return videoSource;
|
|
}
|
|
}
|
|
|
|
return null;
|
|
}
|
|
}
|