Added image/video control and property manipulation
This commit is contained in:
@@ -147,4 +147,19 @@ public interface DomHost {
|
||||
* @return list of ids (never null)
|
||||
*/
|
||||
List<String> queryByClass(String className);
|
||||
|
||||
/**
|
||||
* Sets a DOM property (e.g. video.currentTime, video.volume).
|
||||
*/
|
||||
void setProperty(String elementId, String property, Object value);
|
||||
|
||||
/**
|
||||
* Gets a DOM property.
|
||||
*/
|
||||
Object getProperty(String elementId, String property);
|
||||
|
||||
/**
|
||||
* Invokes a DOM method (e.g. video.play()).
|
||||
*/
|
||||
Object call(String elementId, String method, Object... args);
|
||||
}
|
||||
Reference in New Issue
Block a user