io.antmedia.social.endpoint.FakeEndpoint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ant-media-server Show documentation
Show all versions of ant-media-server Show documentation
Ant Media Server supports RTMP, RTSP, MP4, HLS, WebRTC, Adaptive Streaming, etc.
package io.antmedia.social.endpoint;
import io.antmedia.api.periscope.type.Broadcast;
import io.antmedia.datastore.db.IDataStore;
import io.antmedia.datastore.db.types.BroadcastStatus;
import io.antmedia.datastore.db.types.Endpoint;
import io.antmedia.datastore.db.types.SocialEndpointCredentials;
import io.antmedia.datastore.preference.PreferenceStore;
public class FakeEndpoint extends VideoServiceEndpoint {
public FakeEndpoint(String clientId, String clientSecret, IDataStore dataStore, SocialEndpointCredentials credentials) {
super(clientId, clientSecret, dataStore, credentials);
}
@Override
public void init(String accountName, String accessToken, String refreshToken, long expireTime, String tokenType,
long authtimeInMilliSeconds) {
}
@Override
public String getName() {
return "fake";
}
@Override
public DeviceAuthParameters askDeviceAuthParameters() throws Exception {
return null;
}
@Override
public boolean askIfDeviceAuthenticated() throws Exception {
return false;
}
@Override
public boolean isAuthenticated() {
return false;
}
@Override
public Endpoint createBroadcast(String name, String description, boolean is360, boolean isPublic, int videoHeight, boolean is_low_latency)
throws Exception {
return null;
}
@Override
public void publishBroadcast(Endpoint endpoint) throws Exception {
}
@Override
public void stopBroadcast(Endpoint endpoint) throws Exception {
}
@Override
public String getBroadcast(Endpoint endpoint) {
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy