如何使用html,css和javascript在androidphonegap中播放视频 [英] how to play video in androidphonegap using html,css and javascript

查看:81
本文介绍了如何使用html,css和javascript在androidphonegap中播放视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

08-23 18:13:33.738:DEBUG/SntpClient(59):请求时间失败:java.net.SocketException:协议不支持地址族
08-23 18:14:23.074:DEBUG/AndroidRuntime(329):>>>>>>>>>>>> AndroidRuntime START<<<<<<<<<<<<
08-23 18:14:23.074:调试/AndroidRuntime(329):CheckJNI已打开
08-23 18:14:23.407:DEBUG/AndroidRuntime(329):-注册本机函数---
08-23 18:14:24.885:DEBUG/dalvikvm(224):GC_EXPLICIT在90ms内释放了117个对象/5464字节
08-23 18:14:25.104:DEBUG/dalvikvm(59):GC_EXPLICIT在170ms内释放了8389个对象/366080个字节
08-23 18:14:25.255:DEBUG/AndroidRuntime(329):关闭VM
08-23 18:14:25.265:DEBUG/dalvikvm(329):调试器已分离;对象注册表有1个条目
08-23 18:14:25.309:INFO/AndroidRuntime(329):注意:线程``Binder Thread#3''的附加失败
08-23 18:18:33.747:DEBUG/SntpClient(59):请求时间失败:java.net.SocketException:协议不支持地址族 08-23 18:23:33.755:DEBUG/SntpClient(59):请求时间失败:java.net.SocketException:协议不支持地址族
08-23 18:28:33.765:DEBUG/SntpClient(59):请求时间失败:java.net.SocketException:协议不支持地址族 08-23 18:32:33.565:DEBUG/AndroidRuntime(341):>>>>>>>>>>>> AndroidRuntime START<<<<<<<<<<<<
08-23 18:32:33.575:调试/AndroidRuntime(341):CheckJNI已打开
08-23 18:32:33.916:DEBUG/AndroidRuntime(341):-注册本机函数---
08-23 18:32:35.445:DEBUG/dalvikvm(224):GC_EXPLICIT在87ms内释放了123个对象/5856个字节
08-23 18:32:35.675:DEBUG/dalvikvm(59):GC_EXPLICIT在176ms内释放了6022个对象/274760字节
08-23 18:32:35.795:DEBUG/AndroidRuntime(341):关闭VM
08-23 18:32:35.806:调试/dalvikvm(341):调试器已分离;对象注册表有1个条目
08-23 18:32:35.825:INFO/AndroidRuntime(341):注意:线程``Binder Thread#3''的附加失败
08-23 18:33:33.777:DEBUG/SntpClient(59):请求时间失败:java.net.SocketException:协议不支持地址族 08-23 18:38:33.784:DEBUG/SntpClient(59):请求时间失败:java.net.SocketException:协议不支持地址族 08-23 18:43:33.796:DEBUG/SntpClient(59):请求时间失败:java.net.SocketException:协议不支持地址族
08-23 18:48:33.805:DEBUG/SntpClient(59):请求时间失败:java.net.SocketException:协议不支持地址族 08-23 18:53:33.814:DEBUG/SntpClient(59):请求时间失败:java.net.SocketException:协议不支持地址族 08-23 18:58:33.818:DEBUG/SntpClient(59):请求时间失败:java.net.SocketException:协议不支持地址族





我正在尝试在androidphonegap中显示此错误的视频标签,请帮助我

08-23 18:13:33.738: DEBUG/SntpClient(59): request time failed: java.net.SocketException: Address family not supported by protocol
08-23 18:14:23.074: DEBUG/AndroidRuntime(329): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
08-23 18:14:23.074: DEBUG/AndroidRuntime(329): CheckJNI is ON
08-23 18:14:23.407: DEBUG/AndroidRuntime(329): --- registering native functions ---
08-23 18:14:24.885: DEBUG/dalvikvm(224): GC_EXPLICIT freed 117 objects / 5464 bytes in 90ms
08-23 18:14:25.104: DEBUG/dalvikvm(59): GC_EXPLICIT freed 8389 objects / 366080 bytes in 170ms
08-23 18:14:25.255: DEBUG/AndroidRuntime(329): Shutting down VM
08-23 18:14:25.265: DEBUG/dalvikvm(329): Debugger has detached; object registry had 1 entries
08-23 18:14:25.309: INFO/AndroidRuntime(329): NOTE: attach of thread ''Binder Thread #3'' failed
08-23 18:18:33.747: DEBUG/SntpClient(59): request time failed: java.net.SocketException: Address family not supported by protocol
08-23 18:23:33.755: DEBUG/SntpClient(59): request time failed: java.net.SocketException: Address family not supported by protocol
08-23 18:28:33.765: DEBUG/SntpClient(59): request time failed: java.net.SocketException: Address family not supported by protocol
08-23 18:32:33.565: DEBUG/AndroidRuntime(341): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
08-23 18:32:33.575: DEBUG/AndroidRuntime(341): CheckJNI is ON
08-23 18:32:33.916: DEBUG/AndroidRuntime(341): --- registering native functions ---
08-23 18:32:35.445: DEBUG/dalvikvm(224): GC_EXPLICIT freed 123 objects / 5856 bytes in 87ms
08-23 18:32:35.675: DEBUG/dalvikvm(59): GC_EXPLICIT freed 6022 objects / 274760 bytes in 176ms
08-23 18:32:35.795: DEBUG/AndroidRuntime(341): Shutting down VM
08-23 18:32:35.806: DEBUG/dalvikvm(341): Debugger has detached; object registry had 1 entries
08-23 18:32:35.825: INFO/AndroidRuntime(341): NOTE: attach of thread ''Binder Thread #3'' failed
08-23 18:33:33.777: DEBUG/SntpClient(59): request time failed: java.net.SocketException: Address family not supported by protocol
08-23 18:38:33.784: DEBUG/SntpClient(59): request time failed: java.net.SocketException: Address family not supported by protocol
08-23 18:43:33.796: DEBUG/SntpClient(59): request time failed: java.net.SocketException: Address family not supported by protocol
08-23 18:48:33.805: DEBUG/SntpClient(59): request time failed: java.net.SocketException: Address family not supported by protocol
08-23 18:53:33.814: DEBUG/SntpClient(59): request time failed: java.net.SocketException: Address family not supported by protocol
08-23 18:58:33.818: DEBUG/SntpClient(59): request time failed: java.net.SocketException: Address family not supported by protocol





I''m try video tag showing for this error in androidphonegap please help me

推荐答案

首先简化您的工作并将其简化为标签.

http://www.w3schools.com/html5/tag_video.asp [
Start by simplifying what you''re working with and stripping it down to just the tag.

http://www.w3schools.com/html5/tag_video.asp[^]

Then build up to implementing some javascript for controls etc.

As far as the SocketException goes, it''s likely that you forgot to start a local webserver, or that you''re not able to access the location you''ve specified (firewall, maybe?).

Cheers.


这篇关于如何使用html,css和javascript在androidphonegap中播放视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆