View Single Post
  #70   Spotlight this post!  
Unread 23-05-2014, 16:11
dmaciel10123 dmaciel10123 is offline
The Everything Guy
AKA: David Maciel
FRC #3525 (The Nuts and Bolts of Fury)
Team Role: Alumni
 
Join Date: Feb 2013
Rookie Year: 2013
Location: Waterbury, Connecticut
Posts: 100
dmaciel10123 is an unknown quantity at this point
Quote:
Originally Posted by raystubbs View Post
Are you using VideoView? What I've tried is:

Code:
video = (VideoView)findViewById(R.id.video);

// Set uriString to "rtsp://10.xx.yy.11/axis-media/media.3gp"
String uriString = "rtsp://" + "10." + Integer.toString((addr & 0xff0000)>>16)  //"rtsp://10.xx.yy.11/axis-media/media.3gp"
	+"."+ Integer.toString((addr & 0xff00)>>8) + ".11/" + "axis-media/media.3gp";  

video.setVideoURI(Uri.parse(uriString));
video.requestFocus();
video.start();
Nothing happens for a while, but then a dialog comes up and says that it can't play the video.
I'm actually trying to load the image that the Axis Camera saves at image.jpg and set it as the background at about 30 fps
__________________