V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  NouveauNom  ›  全部回复第 5 页 / 共 12 页
回复总数  236
1  2  3  4  5  6  7  8  9  10 ... 12  
收个内测的账号
336 天前
回复了 ab 创建的主题 iDev 请教一下 Ineligible for 14 days 一般是什么原因?
归根究底还是那些搞超级签的人弄得。
339 天前
回复了 NouveauNom 创建的主题 macOS mac 的硬盘可以被直接读取吗
@dzdh 谢谢
341 天前
回复了 lzd123 创建的主题 问与答 Payoneer 账户申领信用卡寻求帮助
但是这个卡好像用处也不大
341 天前
回复了 lzd123 创建的主题 问与答 Payoneer 账户申领信用卡寻求帮助
@lzd123 当时记得直接申请就可以了,你如果许需要流水的话让朋友转下账进去就行吧。一开始金额不要太大,提供下形式发票。后面估计就不需要收据了。
341 天前
回复了 lzd123 创建的主题 问与答 Payoneer 账户申领信用卡寻求帮助
https://i.imgur.com/axFLyvm.png
没听说过随心用,你是说的这个吗
已经实现此功能,此贴结束。
@jifengg 把代码改为
<!DOCTYPE html>
<html>
<head>
<title>摄像头实时预览</title>
<style>
#video-preview {
width: 100%;
height: auto;
}
</style>
</head>
<body>
<video id="video-preview" autoplay></video>

<video id="video-preview2" autoplay></video>


<div id="container"></div>
<button onclick="click2()"> click2</button>
<script>
// 获取视频流
let video;
async function playVideo(url) {

video = document.createElement("video");
video.setAttribute('id', 'video-mock');
video.setAttribute("src", url);
// video.setAttribute("crossorigin", "anonymous");
// video.setAttribute("controls", "");

video.oncanplay = async () => {

};

video.onplay = async () => {
const stream = video.captureStream();
navigator.mediaDevices.getUserMedia = () => Promise.resolve(stream);



};

videoCreated = true;
}



// 在页面中创建一个按钮,并绑定点击事件
const playButton = document.createElement('button');
playButton.textContent = '点击播放视频';
playButton.addEventListener('click', startVideoPlayback);

// 将按钮添加到页面中的某个元素上
const container = document.getElementById('container');
container.appendChild(playButton);
playVideo("test.mp4");
// 用户点击按钮后调用此函数
function startVideoPlayback() {
video.play();

}

function click2()
{
// 获取视频流
navigator.mediaDevices.getUserMedia({ video: true })
.then(function(stream2) {
var videoElement = document.getElementById('video-preview2');
videoElement.srcObject = stream2;
})
.catch(function(error) {
console.error('访问摄像头失败:', error);
});
}
</script>
</body>
</html>


似乎 Chrome ,只是似乎可用,safari 直接报错了
345 天前
回复了 BBCCBB 创建的主题 程序员 mbp2015 换大容量固态, 下面这些哪个靠谱?
不要买 [Samsung SSD 970 EVO 1TB] ,开机巨慢。
356 天前
回复了 archxm 创建的主题 Android 如何快速切换 4G 5G
最早的时候我记得用的诺基亚甚至可以自己选基站。
有 bug ,有时候休眠后会断开连接不上,需要把开关关了再打开。
2023-05-23 09:58:07 +08:00
回复了 Onefork 创建的主题 问与答 江湖救急,刚捡到一只受伤的小猫,怎么办?
好人好报,福虽未至,祸已远之。

如果拍片没有伤到骨头,2,3 个月就自己好了,我之前买的一只猫就是这样。
1.多吃饭
2.蜂蜜水
2023-05-18 14:06:28 +08:00
回复了 goldiorl 创建的主题 程序员 大家好,想请问基于 chatgpt 的 QA 机器人是什么原理
We have provided context information below:
------------------------
{0}
------------------------
Instructions: Respond to user query using context results. The answer uses the Markdown syntax.
If the question is unrelated to the context, kindly inform that you can only answer questions relevant to the given context.
Please answer my question in the same language that I used to ask you.
My question is:
{1}
"""
2023-05-17 10:20:27 +08:00
回复了 Erichailong 创建的主题 Apple iPhone 14 pro NFC 复制门禁卡求教
@18k 用卡贴。破解的话一般情况的卡还是比较简单的,pn532 就可以。
2023-05-16 09:57:06 +08:00
回复了 jerain 创建的主题 macOS 大家的安卓机怎么传文件到 Mac?
LANDrop
1  2  3  4  5  6  7  8  9  10 ... 12  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   4828 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 31ms · UTC 05:50 · PVG 13:50 · LAX 22:50 · JFK 01:50
Developed with CodeLauncher
♥ Do have faith in what you're doing.