File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed
Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 44<%@ page import =" java.util.Map" %>
55<%@ page import =" java.net.InetAddress" %>
66<%@ page import =" java.util.ArrayList" %>
7+ <%@ include file =" Config.jsp" %>
78<%
8- String user_id = " YOUR USER ID" ;
9- String api_key = " YOUR API KEY" ;
109String server_url = " http://" + InetAddress . getLocalHost(). getHostName();
1110
1211try
Original file line number Diff line number Diff line change 1+ <%
2+ String user_id = " YOUR USER ID" ;
3+ String api_key = " YOUR API KEY" ;
4+ % >
Original file line number Diff line number Diff line change 11<%@ page import =" com.dmcloud.*" %>
2+ <%@ include file =" Config.jsp" %>
23<%
34 String url = request. getParameter(" url" );
45
5- String user_id = " YOUR USER ID" ;
6- String api_key = " YOUR API KEY" ;
76 CloudKey_Media media = new CloudKey_Media (user_id, api_key);
87 out. write(" video id : " + media. create(url));
98% >
Original file line number Diff line number Diff line change 6060 </style >
6161<%@ page import =" com.dmcloud.*" %>
6262<%@ page import =" java.net.InetAddress" %>
63+ <%@ include file =" Config.jsp" %>
6364<%
64- String user_id = " YOUR USER ID" ;
65- String api_key = " YOUR API KEY" ;
66- String redirect_url = " http://" + InetAddress . getLocalHost(). getHostName() + " /examples/MediaCreate.jsp" ;
65+ String redirect_url = " http://" + InetAddress . getLocalHost(). getHostName() + " :8080/examples/MediaCreate.jsp" ;
6766
6867CloudKey_Media media = new CloudKey_Media (user_id, api_key);
6968DCObject result = media. upload(true , true , redirect_url);
You can’t perform that action at this time.
0 commit comments