|
上一篇大概說明了一下HTML5中關於audio的標籤用法及相關情況,在Sencha Touch中的kitchensink範例中的Audio範例中,可以看到它是怎麼使用Audio。它使用的是Ext.Audio這個專門處理Audio的元件。在官方的API文件上有一個注意事項:
On Android devices, the audio tags controls do not show. You must use the play, pause and toggle methods to control the audio. 在Android設備上,audio標籤controls是不會顯示的。你需要使用play, pause和toggle方法來控制audio.
Android目前2.2及2.3的機種中,得到的結果都是類似的,至少在目前雖然有"支援"但沒"控制列",所以你還需要自己用控制方法+ui來處理這個聲音檔。(註:相關資訊:http://code.google.com/p/android/issues/detail?id=10546)
Tags: android | html5 | sencha touch
|