Skip to content

Instantly share code, notes, and snippets.

@mekya
Last active August 4, 2017 14:57
Show Gist options
  • Save mekya/9c5e6eb740e43fc63145273fb877ca3c to your computer and use it in GitHub Desktop.
Save mekya/9c5e6eb740e43fc63145273fb877ca3c to your computer and use it in GitHub Desktop.
Spring configuration file to publish live stream to social end points
<bean id="preference.store" class="io.antmedia.datastore.preference.PreferenceStore">
<constructor-arg value="/WEB-INF/red5-web.properties" />
</bean>
<bean id="web.handler" class="io.antmedia.serverapp.pscp.Application" >
<property name="videoServiceEndpoints">
<list>
<bean class="io.antmedia.enterprise.social.endpoint.FacebookEndpoint" init-method="start">
<constructor-arg value="Enter Facebook client id"/>
<constructor-arg value="Enter Facebook client secret"/>
<constructor-arg ref="preference.store"/>
</bean>
<bean class="io.antmedia.social.endpoint.PeriscopeEndpoint" init-method="start">
<constructor-arg value="Enter Periscope client id"/>
<constructor-arg value="Enter Periscope client secret"/>
<constructor-arg ref="preference.store"/>
</bean>
<bean class="io.antmedia.enterprise.social.endpoint.YoutubeEndpoint" init-method="start">
<constructor-arg value="Enter Youtube client id"/>
<constructor-arg value="Enter Youtube client secret"/>
<constructor-arg ref="preference.store"/>
</bean>
</list>
</property>
</bean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment