Edit src/draco/core/options.h
Add below function to Options class
#include <sstream>
...
<!DOCTYPE html> | |
<html> | |
<body> | |
<canvas id="myCanvas" width="360" height="450" style="border:1px solid #d3d3d3;"> | |
</canvas> | |
<script> | |
function deviceOrientationListener(event) { | |
var c=document.getElementById("myCanvas"); | |
var ctx=c.getContext("2d"); |
//Export War file from Eclipse Web Project with Gradle | |
// we need to use war plugin | |
apply plugin: 'war' | |
//default webAppDirName in gradle is not "WebContent" but | |
// it is default in eclise so change it according to eclipse layout | |
// it encapsulates all files under webAppDirName | |
webAppDirName = 'WebContent' |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.net.DatagramPacket; | |
import java.net.DatagramSocket; | |
import java.net.HttpURLConnection; | |
import java.net.InetSocketAddress; | |
import java.net.SocketException; | |
import java.net.URL; | |
import java.util.Locale; |
<bean id="app.storageClient" class="io.antmedia.storage.AmazonS3StorageClient"> | |
<property name="accessKey" value="Enter your S3_ACCESS_KEY" /> | |
<property name="secretKey" value="Enter your S3_SECRET_KEY" /> | |
<property name="region" value="Enter your REGION_NAME e.g. eu-central-1" /> | |
<property name="storageName" value="Enter your BUCKET_NAME" /> | |
</bean> |
public class HttpForwardFilter implements javax.servlet.Filter { | |
@Override | |
public void destroy() { | |
} | |
@Override | |
public void doFilter(ServletRequest request, ServletResponse response, | |
FilterChain chain) throws IOException, ServletException { | |
String requestURI = ((HttpServletRequest)request).getRequestURI(); |
<context:component-scan base-package="io.antmedia.rest" /> | |
<bean id="db.datastore" class="io.antmedia.datastore.db.MongoStore"> | |
<constructor-arg value="${webapp.dbName}" /> | |
</bean> | |
<bean id="web.handler" class="Enter your web handler class that inherits from AntMediaApplicationAdapter" > | |
<property name="dataStore" ref="db.datastore" /> | |
</bean> |
#!/bin/bash | |
# | |
# Download latest ant media server and run this script by giving the zip file | |
# ./install_ant-media-server.sh ant-media-server-*.zip | |
# | |
if [ -z "$1" ]; then | |
echo "Please give the Ant Media Server zip file as parameter" | |
echo "$0 ant-media-server-....zip" |