Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Android
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Android
videoview will only play one mp4 out of 10
Tony fig
Ranch Hand
Posts: 90
posted 4 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Can you tell me why I can only get videoview to play 1 mp4 out 10..... here is the code I'm using.
final VideoView videoView = (VideoView) findViewById(R.id.videoView); MediaController mediaController= new MediaController(this); mediaController.setAnchorView(videoView); //specify the location of media file Uri uri=Uri.parse(Environment.getExternalStorageDirectory().getPath()+"/Download/hero.mp4"); videoView.setMediaController(mediaController); videoView.setVideoURI(uri); videoView.requestFocus(); videoView.start();
Al Hobbs
Bartender
Posts: 667
14
I like...
posted 4 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
So in your code you mention the hero mp4 video. That seems like one video to me.
Tony fig
Ranch Hand
Posts: 90
posted 4 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
yes, but it should play all mp4 videos and its not. can you tell me why it wont play all the mp4's
Tim Moores
Saloon Keeper
Posts: 7585
176
posted 4 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The code you posted plays one video. What are you doing thet you think will result in making it play more than one?
Tony fig
Ranch Hand
Posts: 90
posted 4 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
what I mean is the I can only get it to play the one video if i try playing any other video it wont play it.
Paul Clapham
Marshal
Posts: 28193
95
I like...
posted 4 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
So if you change the
string
from "hero.mp4" to any other string which represents a video in that Download folder, it doesn't play the video?
Tony fig
Ranch Hand
Posts: 90
posted 4 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
no, and I think the only reason its playing the one its because its a sort video.
Al Hobbs
Bartender
Posts: 667
14
I like...
posted 4 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Maybe the video types are different.
Destiny's powerful hand has made the bed of my future. And this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Eventlistener for VLC
Does Java suffer from trying to be too "all encompassing"?
Reg finalize() method
The canonical source-in-Eclipse setup
Setting custom configuration variables in JForum
More...