Reputation: 1860
I created videoplayer in android phonegap using video tag in html5.
I containted 10 link.when I click that any one of the linkvalue of that link is passed into src attribute of video tag.and play that video.
Now I getvalue of link how to pass that value into src attribute of video tag in onclick event?
please help me.
thanks in advance.
Upvotes: 0
Views: 1318
Reputation: 23273
The video tag is broken in the WebView class on Android. In order to work around this issie I created a VideoPlayer plugin for PhoneGap Android.
http://simonmacdonald.blogspot.com/2011/11/video-player-plugin-for-phonegap.html
Upvotes: 2
Reputation: 7655
cant u do a
$('#id').attr('src', linkvalue)
? this would pass the src to the video tag which would render the video
Upvotes: 0