I am trying to create live event instance in azure from my android app.
I import few jar files and run the below code:
LiveEvent liveEvent = manager.liveEvents().define(liveEventName)
.withExistingMediaservice("stRG", "staccountname")
.withAutoStart(true)
.withInput(new LiveEventInput().withStreamingProtocol(LiveEventInputProtocol.RTMP))
.withEncoding(new LiveEventEncoding().withEncodingType(LiveEventEncodingType.NONE).withPresetName(null))
.withLocation("East US")
.withVanityUrl(false)
.withDescription("Sample LiveEvent for testing")
.withStreamOptions(streamOptions)
.create();
it is crash with the error of com.sun.jdi.VMDisconnectedException
when I debugged it.
any help why, it will be appreciated
Updated 02/08/2020
When I ran it in a different work environment (intelliJ) instead of android studio it ran smoothly