Could somebody please check this lines of codes , i cant get my video played from current url, and it doesn't give me any mistake either

call.setOnClickListener(new OnClickListener() {
	   	    public void onClick(View v) {
	   	    	int a =canli.getVisibility();
	   	    	canli.setVisibility(1);
	   	    	try {
	   	    		
	   	    		
	   	    		
	   	    		call.setVisibility(a);
	   	    		pb.setVisibility(1);
		   	    	 Uri web = Uri.parse("http://tegos.ru/video/new/prikol/3gp/Ukhodi_Dver_Zakroj.3gp");
		   	    	 canli.setVideoURI(web);
		   	    	 canli.setMediaController(mc);
		   	    	 canli.requestFocus();
		   	    	 canli.start();
		   	    	 mc.show();
		   	     }
		   	     catch(Exception e) {
		   	    	 System.out.print(e.getMessage()+"error");
		   	     } 
	   	   	    	}
	   	    	
	   	     });

Recommended Answers

All 2 Replies

really? 9 views and no single answer?? :) come on people...

9 views means nothing. It could have been moderators checking for possible spam. Did you consider that?

Have look at this discussion @stackoverflow

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.