The Artima Developer Community
Sponsored Link

Java Buzz Forum
Plesae Fix MediaPlayer to play Input Streams

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Fred Grott

Posts: 4361
Nickname: shareme
Registered: Jan, 2003

Fred Grott is Lead Developer-CEO of ShareMe Technologies LLC -The Mobile Future
Plesae Fix MediaPlayer to play Input Streams Posted: Dec 30, 2008 4:56 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Fred Grott.
Original Post: Plesae Fix MediaPlayer to play Input Streams
Feed Title: ShareMe Technologies LLC-The Mobile Future
Feed URL: http://www.jroller.com/shareme/feed/entries/rss
Feed Description: A Weblog about Java programming and digital convergence on mobile devices in such areas as P2P and collaborative technology.
Latest Java Buzz Posts
Latest Java Buzz Posts by Fred Grott
Latest Posts From ShareMe Technologies LLC-The Mobile Future

Advertisement

Going through enabling certain features in PhoneGap for Android and found  that I cannot easily play audio files from the android_asset folder as its a security violation as far as MediaPlayer is concerned. I couk dopen a socket and I guess store a temp file and than sendit to MdiaPlayer but that is too CPU intensive and I do not feel like subjecting users to SoundPOol in its current form.

What I have come up with is the native PhoneGap code for Android loads two sounds in the raw resoruce folder and uses them. I check via if staements to see if correct filemane has been supplied and choose the int resorucve base don that if statements.   Want more soudns than suppleid, than you have to add them and change the PhoneGap source.

Yes, an ugly hack but it will have to do until SDK version 1.1 and yes I am putting in the SDK vrsion checking. Thus, Google and OHA please fix, you could probably improve SoundPool and most of us woukd be happy about it.

Read: Plesae Fix MediaPlayer to play Input Streams

Topic: Xmas Gifts: R2D2 Previous Topic   Next Topic Topic: Best Android Book?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use