Phonegap TouchEvent

六眼飞鱼酱① 提交于 2020-01-11 09:36:08

问题


My problem is that I want to play an audio/video file from the frontpage (index.html)

It's working like that:

function setaudio() {
$("#aud").prepend('<a href=# onclick=playaudio();><img src=icons/audio_file.png alt=Audiodatei width=90px height=90px></a>'); }

The function playing the audio:

function playaudio() {
window.plugins.videoPlayer.play(myaudio[0]);}

The problem it's not working on the index.html but it's working on linked sites f.e audio.html where I am calling setaudio(); again...

The catlog is telling me, also I am not clicking on the icon (at the index.html page) in an empty area of the screen:

03-01 13:19:23.980: V/webview(12235):  singleCursorHandlerTouchEvent -getEditableSupport  FASLE 

how to solve that? I am using the new Galaxy 10.1 - It was working with the same code on the Huawei MediaPad...also with Android 3.2

来源:https://stackoverflow.com/questions/9517142/phonegap-touchevent

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!