summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2012-02-23 19:31:27 +0000
committerBen Murdoch <benm@google.com>2012-02-24 11:15:11 +0000
commit0168bef13ff08e100845c7a4b26e37fcc6b5f8af (patch)
treeb74725221aa0d939dd10dd925ed7eb54cd43d6b7 /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
parent2eb7309388644db2ad3be18986804422611fd90e (diff)
Fix looping HTML5 Audio.
When an <audio> tag has the loop=true attribute, Webkit tells us to seek back to 0 before we are supposed to have stopped the stream. But by the time that the message gets back to the Android MediaPlayer java side, it's already stopped. So after seeking, we play() again if the player is in the COMPLETED state. Change the code to do this and handle the case that we call play on a COMPLETED stream (resetting internal state, etc). Note that this has the side effect that we will start playing the stream after any seek on a COMPLETED stream - e.g. dragging the slider thumb on the progress track after the stream is finished. Bug: 5461143 Change-Id: I6cf4d46d9a1985caf9f9ab85dbcf65535c8dcd77
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions