Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6976987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:34:03+00:00 2026-05-27T17:34:03+00:00

Can anyone in guide me how to play a video from a particular time?

  • 0

Can anyone in guide me how to play a video from a particular time?
I have a video url ,i need to play the video from a particular time i used seekTo() but its not working. so i thought that first we need to stream the video to a file and then we need to play…but i dnt how to stream a video from a url.

Can anybody provide me the sample code.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:34:04+00:00Added an answer on May 27, 2026 at 5:34 pm

    Hi try the following it will help you

        <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:orientation="vertical" android:layout_width="fill_parent"
        android:layout_height="fill_parent" >
         <VideoView android:id="@+id/playvideo" 
            android:layout_height="fill_parent" 
            android:layout_width="fill_parent"
            android:keepScreenOn="true" 
            android:layout_centerInParent="true"></VideoView> 
    
    
    
    </RelativeLayout>
    

    Android:

    public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
    
            setContentView(R.layout.videolayout);
            this.videoView=(VideoView)findViewById(R.id.playvideo);
    
    
             play();
    
        }
         private void play(){
                MediaController mediaController = new MediaController(this);
                mediaController.setAnchorView(this.videoView);  
    
             Uri video=Uri.parse("http://your.mp4/35.mp4");
                Log.e("Uri video",video.toString());
                videoView.setMediaController(mediaController);
                videoView.setVideoURI(video);     
                videoView.seekTo(60000*10);//10 mins...
                videoView.start();
                videoView.setOnCompletionListener(new OnCompletionListener(){
    
                    public void onCompletion(MediaPlayer arg0) {
                        // TODO Auto-generated method stub
    
                    }
    
                });
         }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anyone guide how to generate image from input text. Image might have any
Can anyone point me to a guide for creating inf files? In particular, I'm
I need innovative ideas on Gaming Application for Windows Phone. Can anyone guide me
I have a libraries from open source for real time play click and sound.
I have a libraries from open source for real time play click and sound.
Can anyone guide me on using oci_bind_by_name. I have written this piece of code:
in my application,user can download and play videos from different video sites like bofunk.com,dailymotion.com,youtube.com,metacafe.com,stupid
Can anyone guide me how could I raise tivoli alerts from my java code.I
i am trying to genarate XML from xsd using perl can anyone guide me
Can anyone guide me how to convert XLS to CSV using PHP? I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.