Skip to content

Commit

Permalink
Continue refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mekya committed Sep 17, 2019
1 parent 66a9125 commit e4d563d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/main/java/io/antmedia/AntMediaApplicationAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ public void startPublish(String streamName) {

if (broadcast == null) {

broadcast = saveUndefinedBroadcast(streamName, getScope().getName(), dataStoreLocal, appSettings, getServerSettings().getServerName(), getServerSettings().getHostAddress());
broadcast = saveUndefinedBroadcast(streamName, getScope().getName(), dataStoreLocal, appSettings, AntMediaApplicationAdapter.BROADCAST_STATUS_BROADCASTING, getServerSettings().getServerName(), getServerSettings().getHostAddress());

} else {

Expand Down Expand Up @@ -468,13 +468,6 @@ public void publishSocialEndpoints(List<Endpoint> endPointList)






public static Broadcast saveUndefinedBroadcast(String streamId, String scopeName, DataStore dataStore, AppSettings appSettings, String fqdn, String hostAddress) {
return saveUndefinedBroadcast(streamId, scopeName, dataStore, appSettings, AntMediaApplicationAdapter.BROADCAST_STATUS_BROADCASTING, fqdn, hostAddress);
}

public static Broadcast saveUndefinedBroadcast(String streamId, String scopeName, DataStore dataStore, AppSettings appSettings, String streamStatus, String fqdn, String hostAddress) {
Broadcast newBroadcast = new Broadcast();
newBroadcast.setDate(System.currentTimeMillis());
Expand Down

0 comments on commit e4d563d

Please sign in to comment.