Changeset 83
- Timestamp:
- 08/20/10 01:45:00 (18 months ago)
- Location:
- trunk/builders/androidapplestreaming/src
- Files:
-
- 1 added
- 2 edited
-
com/rtmpd/CommandsInterface.java (modified) (1 diff)
-
com/rtmpd/VideoCallbacks.java (added)
-
org/apache/android/media/VideoViewDemo.java (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/builders/androidapplestreaming/src/com/rtmpd/CommandsInterface.java
r77 r83 23 23 24 24 public class CommandsInterface { 25 public native void EnvRun(String ip, int port); 25 26 public native void EnvRun(VideoCallbacks callbackHandler, String ip, int port); 26 27 27 28 public native void EnvStop(); -
trunk/builders/androidapplestreaming/src/org/apache/android/media/VideoViewDemo.java
r82 r83 42 42 import com.rtmpd.*; 43 43 44 public class VideoViewDemo extends Activity {44 public class VideoViewDemo extends Activity implements VideoCallbacks { 45 45 private static final String TAG = "VideoViewDemo"; 46 46 … … 55 55 56 56 private RetryHandler mRetryHandler = new RetryHandler(); 57 private VideoCallbacks callbackObj; 57 58 58 59 @Override … … 63 64 64 65 _ci = new CommandsInterface(); 66 callbackObj = this; 65 67 66 68 _thread = new Thread() { 67 69 public void run() { 68 _ci.EnvRun( "68.246.67.43",5544);70 _ci.EnvRun(callbackObj, "0.0.0.0", 55544); 69 71 } 70 72 }; … … 207 209 } 208 210 209 final String path = "rtsp:// 68.246.67.43:5544/" + msgInfoListStreams.getStreamName(0);211 final String path = "rtsp://127.0.0.1:55544/" + msgInfoListStreams.getStreamName(0); 210 212 Log.v(TAG, "path: " + path); 211 213 if (path == null || path.length() == 0) { … … 228 230 } 229 231 232 public void EventAvailable(HashMap<Object, Object> event) { 233 Toast.makeText(getApplicationContext(), "got event!", Toast.LENGTH_SHORT).show(); 234 } 235 230 236 static { 231 237 System.loadLibrary("crtmpserver_dynamic");
Note: See TracChangeset
for help on using the changeset viewer.
