mirror of
https://github.com/maxkratz/lectureStudio.git
synced 2024-05-18 20:00:16 +00:00
presenter: fixed missing default access link in publisher api
This commit is contained in:
parent
3017e56d38
commit
6fc39584f2
|
@ -120,10 +120,10 @@ public abstract class CefStreamPresenter<T extends View> extends Presenter<T> {
|
|||
|
||||
// Open the running course url.
|
||||
StreamConfiguration streamConfig = ctx.getConfiguration().getStreamConfig();
|
||||
long courseId = ctx.getCourse().getId();
|
||||
String accessLink = ctx.getCourse().getDefaultAccessLink();
|
||||
String serverName = streamConfig.getServerName();
|
||||
String serverUrl = String.format("https://%s", serverName);
|
||||
String courseApiUrl = String.format("%s/course/api/%d", serverUrl, courseId);
|
||||
String courseApiUrl = String.format("%s/course/api/%s", serverUrl, accessLink);
|
||||
|
||||
browser = client.createBrowser(courseApiUrl, false, false);
|
||||
}
|
||||
|
|
|
@ -25,6 +25,8 @@ public class Course {
|
|||
|
||||
private Long id;
|
||||
|
||||
private String defaultAccessLink;
|
||||
|
||||
private String roomId;
|
||||
|
||||
private String title;
|
||||
|
@ -36,6 +38,10 @@ public class Course {
|
|||
return id;
|
||||
}
|
||||
|
||||
public String getDefaultAccessLink() {
|
||||
return defaultAccessLink;
|
||||
}
|
||||
|
||||
public String getRoomId() {
|
||||
return roomId;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue