View Single Post
  #12   Spotlight this post!  
Unread 23-05-2014, 15:44
raystubbs's Avatar
raystubbs raystubbs is offline
Programmer, Builder, Designer
FRC #2657 (Thundercats)
Team Role: Student
 
Join Date: Mar 2014
Rookie Year: 2012
Location: Deming NM
Posts: 121
raystubbs will become famous soon enough
Re: Android Driver Station

Quote:
Originally Posted by dmaciel10123 View Post
Sure. Give me a few minutes so I can get my hands on a computer. I've been using my phone all day.

Edit: wow okay whoops. I dun goofed. Just tried opening it with the code I added and it crashed immediately. I'll keep working on it.
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.
__________________
"If all else fails, read the instructions."