Skip to content

Commit

Permalink
openvidu-test-browsers: print hasAudioTracks and hasVideoTracks
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloFuente committed Oct 5, 2023
1 parent beecb10 commit c8fd209
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,11 @@ public boolean assertMediaTracks(Iterable<WebElement> videoElements, boolean aud
System.err.println("srcObject of HTMLVideoElement was not defined!");
return false;
}
success = success && (audioTransmission == this.hasAudioTracks(video, ""))
&& (videoTransmission == this.hasVideoTracks(video, ""));
boolean hasAudioTracks = this.hasAudioTracks(video, "");
boolean hasVideoTracks = this.hasVideoTracks(video, "");
System.out.println("Video " + video.getAttribute("id") + " has audio tracks [" + hasAudioTracks
+ "] and has video tracks [" + hasVideoTracks + "]");
success = success && (audioTransmission == hasAudioTracks) && (videoTransmission == hasVideoTracks);
if (!success)
break;
}
Expand Down

0 comments on commit c8fd209

Please sign in to comment.