如何将视频添加到Xcode 11 beta模拟器?
当我在终端中拖放视频或运行
class Test extends HTMLElement {
constructor() {
super()
this.attachShadow({ mode: "open" })
}
connectedCallback() {
this.shadowRoot.innerHTML = this.render()
}
render() {
return `
<style>
#editor {
width: 90%;
margin: 50px 0;
height: 300px;
background: white;
color:black;
padding:20px;
display: block;
border:solid 1px black;
}
</style>
<div id="editor" contenteditable="true">
</div>
`
}
}
customElements.define("text-editor", Test);
时,视频显示为图像
模拟器媒体文件夹: