Skip to content

Change preview overwrite tests #4207

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/io/antmedia/muxer/Muxer.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public abstract class Muxer {
*/
protected String bsfVideoName = null;

protected String streamId = null;
protected String streamId;

protected Map<Integer, AVRational> inputTimeBaseMap = new ConcurrentHashMap<>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -791,8 +791,16 @@ public void testChangePreviewOverwriteSettings() {
//check that preview is created

Awaitility.await()
.atMost(10, TimeUnit.SECONDS)
.pollInterval(1, TimeUnit.SECONDS).until(() -> checkURLExist("http://localhost:5080/LiveApp/previews/"+streamId+".png"));
.atMost(20, TimeUnit.SECONDS)
.pollInterval(1, TimeUnit.SECONDS).until(() -> checkURLExist("http://localhost:5080/LiveApp/previews/"+streamId+"_temp.png"));

Awaitility.await()
.atMost(20, TimeUnit.SECONDS)
.pollInterval(1, TimeUnit.SECONDS).until(() -> checkURLExist("http://localhost:5080/LiveApp/previews/"+streamId+ "_1" + ".png"));

Awaitility.await()
.atMost(20, TimeUnit.SECONDS)
.pollInterval(1, TimeUnit.SECONDS).until(() -> checkURLExist("http://localhost:5080/LiveApp/previews/"+streamId+ "_2" + ".png"));

//stop it
AppFunctionalV2Test.destroyProcess();
Expand Down