Android 流式传输 FLV 视频
我有一个 JavaScript:
<script type="text/javascript">var c = "Mokslas ir gamta"; </script>
<script>type="text/javascript" src="http://tv.delfi.lt/js/embed.js"></script>
<script>var _delfiVideoX = 680;var _delfiVideoY = 385;var _delfiVideoSalt = "ttdGHNTK";_createDelfiVideo();</script>
是否可以在 Android 上流式传输 FLV 视频?我所能得到的只是带有视频播放器控件的静态图像,仅此而已。
WebView view = (WebView) findViewById(R.id.delfi_vide_wv);
view.getSettings().setJavaScriptEnabled(true);
view.loadData(//script above wrapped in html tags//, "text/html", "utf-8");
任何提示将不胜感激:)
I have a JavaScript:
<script type="text/javascript">var c = "Mokslas ir gamta"; </script>
<script>type="text/javascript" src="http://tv.delfi.lt/js/embed.js"></script>
<script>var _delfiVideoX = 680;var _delfiVideoY = 385;var _delfiVideoSalt = "ttdGHNTK";_createDelfiVideo();</script>
Is it possible to stream that FLV video on android? All I could get was static image with video player controls and that's it.
WebView view = (WebView) findViewById(R.id.delfi_vide_wv);
view.getSettings().setJavaScriptEnabled(true);
view.loadData(//script above wrapped in html tags//, "text/html", "utf-8");
Any hint would be appreciated :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不确定这是否适用于您的 javascript 方法,但有一些关于 FLV 的示例。
查看以下文章 http://www.synesthesia.it /playing-flash-flv-videos-in-android-applications
另外在 webview 中加载 flv 视频时出现问题可能有用
I'm not sure if this will work with your javascript method, but there are some examples on FLV out there.
Check out the following article http://www.synesthesia.it/playing-flash-flv-videos-in-android-applications
Also Problem to load flv video in webview may be useful