Comments (7)
The default is http or https when start with //
?
from weex.
@amdgigabyte Video src must be a complete URL with scheme、host and path,otherwise I can not give the default scheme accurately .
from weex.
@yuanyan URL without scheme is considered as a local file path in android , I'll add @zshshr 's suggestion into the doc later.
@amdgigabyte can you post your code here which caused strange behaviors?
from weex.
@sospartan ok,I will post the code later.Now I think I have implemented the UI interaction in a hacking mode.
from weex.
It is the video and video control panel position mismatch.
I think the bug might be a misuse example of the video
tag. When I put a video into a list, the bug occurs.
<template>
<container>
<list>
<cell>
<container id="videoWrap" class="video-wrap">
<video
class="video"
onpause="onpause"
onstart="onstart"
onfinish="onfinish"
onfail="onfail"
src="http://cloud.video.taobao.com/play/u/522794875/p/2/e/6/t/1/d/ld/fv/2/23335165.mp4"
auto-play="true">
</video>
</container>
</cell>
<cell>
<text style="width:750px;height:500px;background-color: #999999;">
hahahahahahahahahahahahahahahhhshfsjfsjsfjfsjkfsjfjk
</text>
</cell>
<cell>
<div style="flex-direction: row; justify-content: center;">
<image class="banner-image" onclick="{{init}}" src="//gw.alicdn.com/tps/TB1JlSDLFXXXXaBaXXXXXXXXXXX-702-349.jpg"></image>
</div>
</cell>
<cell>
<text style="width:750px;height:2000px;background-color: #333333;">
hahahahahahahahahahahahahahahhhshfsjfsjsfjfsjkfsjfjk
</text>
</cell>
</list>
</container>
</template>
<style>
.video-wrap {
position: absolute;
width:750px;
height: 460px;
transform: translate(0,0) scale(1, 0);
overflow: hidden;
top: 0;
left:0;
z-index:1;
margin:0 auto;
background-color: #000000;
}
.video-control {
position:absolute;
top:10px;
right:10px;
}
.close-btn {
color:#ffffff;
font-size:50px;
}
.banner-image {
width:702px;
height:350px;
}
.video {
width: 750px;
height: 460px;
}
</style>
<script>
module.exports = {};
</script>
from weex.
Android's default video player controller is a float window above your app. That cause this behavior.
See http://developer.android.com/reference/android/widget/MediaController.html
It's only for basic use. According your case a customize controller panel is required. I'll put this feature in my schedule. You can send a pull request about it too.
from weex.
目前我定义了视频容器的宽度和高度,这个panel定位还是在视频的中间部分。虽然是浮动,不知道能不能通过定位的方式,将panel能够较好的放在靠近底部一点。
from weex.
Related Issues (20)
- 能否适配开源的openharmony?有没计划? HOT 4
- Weex input
- weex <text>标签设置属性显示省略号,英文单词语句内容长度溢出时显示的省略号不对
- input怎么设置输入框光标颜色
- web playground 已无法正常使用 HOT 3
- 我想问一下,Weex什么时候会升级到1.0.0版本?I really want to know that, when will Weex release version 1.0.0? HOT 4
- [Android]集成了0.30.2 targetsdk=30 初始化weex时报错 E/weex: reportJSException >>>> instanceId:, exception function:initFramework, exception:failed to create ashmem region: Permission denied HOT 1
- 真的很希望官方能回应一下weex2.0更新问题!!! HOT 16
- Android weex_sdk-0.30.2 libweexjsb.so 存在频繁自启或关联启动
- vue框架下的js开发能使用imort()函数进行懒加载吗?我webpack打包能成功,但是运行报错了,有大神指导一下吗?
- Weex 不再维护了嘛? HOT 7
- [Android] AGP升级 导致无法正常加载weex页面 HOT 1
- dotwe 打不开
- [Android][iOS] Slider内嵌的子组件 添加了 touchmove事件,左右滑动子组件时,子组件的滑动事件并不会被消费,而是触发了Slider自身的滑动,这个怎么处理? HOT 1
- 未来有想过支持svelte.js或者JQ这些吗 HOT 1
- 官网文档的搜索功能不可用 HOT 1
- [iOS] iOS显示报错 HOT 1
- 这个框架是凉了吗,也不说啥时候开源了 HOT 1
- [iOS]iOS17闪退,WXComponent+Display.m objc_loadWeakRetained HOT 1
- [Android][iOS][Dev-tool] Unexpected behavior when xx where weex version is 0.aa.bb.cc
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from weex.