Hi everyone,
I was developing an online streaming application using RTSP server.
In my application I need to know the duration of the video file, for
this I was using the getDuration() api of VideoView.
But in the result of getDuration() I am getting the duration as zero,
even though the video file is present on server.
Can anyone help me out what is the problem. Any suggestion or
alternatives are welcome.
The code snippet is:
Uri videoUrl = Uri.parse(uriPath);
mVideoView.getDuration();
mVideoView.setVideoURI(videoUrl);
mVideoView.requestFocus();
mVideoView.start();
Warm Regards,
Nayan Jain
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
To unsubscribe, reply using "remove me" as the subject.