开发者

Mp4 video not playing in Galaxy Tab and in MyTouch?

i m trying t play an mp4 Video file url in Galaxy tab using both video And web View.

But it's not working even in both mod in Tab and in MyTouch mob,]

for Video View I am using following way :

        @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.web_main);

        try {
            videoView = (VideoView)findViewById(R.id.videoView);

            MediaController mediaController = new MediaController(this);
            mediaController.setAnchorView(videoView);
      开发者_如何学C      // Set video link (mp4 format )
            Uri video = Uri.parse("http://pbkweb.pbkennelclub.com/mobile/62320111A.mp4");
        videoView.setMediaController(mediaController);
        videoView.setVideoURI(video);
        videoView.requestFocus();
        videoView.start();



    } catch (Exception e) {
        // TODO Auto-generated catch block

        Log.e("Exception durin Videoview video View ",e.toString());
        e.printStackTrace();
    }

but it returning mew Nullpointer Exception.

pls let me if any solution.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜