954,529 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Can't get my video player work

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");
		   	     } 
	   	   	    	}
	   	    	
	   	     });
somon
Newbie Poster
16 posts since Oct 2010
Reputation Points: 26
Solved Threads: 0
 

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

somon
Newbie Poster
16 posts since Oct 2010
Reputation Points: 26
Solved Threads: 0
 

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

Have look at this discussion @stackoverflow

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: