V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  ie88  ›  全部回复第 5 页 / 共 9 页
回复总数  167
1  2  3  4  5  6  7  8  9  
2022 年 10 月 6 日
回复了 ie88 创建的主题 Windows Explorer Patcher 治好了我的强迫症
@BeautifulSoap 至少应该保留可切换选项。估计目前代码有 bug ,只能强制合并
2022 年 10 月 6 日
回复了 ie88 创建的主题 Windows Explorer Patcher 治好了我的强迫症
@hanqian Explorer Patcher 免费,可以用着试试
2022 年 10 月 6 日
回复了 ie88 创建的主题 Windows Explorer Patcher 治好了我的强迫症
@angrylid 哈哈,等我遇到坑再说
2022 年 10 月 6 日
回复了 ie88 创建的主题 Windows Explorer Patcher 治好了我的强迫症
@qwq11 直接安装 exe ,看能不能满足你的要求,不行还可以在 settings 里面卸载
2022 年 10 月 6 日
回复了 ie88 创建的主题 Windows Explorer Patcher 治好了我的强迫症
@jigi330 你试试,我好像看到有这个选项
2022 年 5 月 25 日
回复了 ie88 创建的主题 程序员 请问各位工作中做的事有成就感吗?
@07ly 前端写页面或者后端 CRUD 有很多重复性工作,确实不如解出一道算法题来的成就感大
2022 年 5 月 25 日
回复了 ie88 创建的主题 程序员 请问各位工作中做的事有成就感吗?
@erhsilence 前端还是后端呀
2022 年 3 月 10 日
回复了 xiangyuecn 创建的主题 程序员 稳定复现,看我几行代码搞崩 Chrome
@gadfly3173 我是觉得咱们这样的技术论坛就是应该有人去发现问题,讨论问题,定位问题,甚至解决问题。希望这个帖子能够吸引一些 V8 引擎开发团队的成员,来讲解一下目前这个问题故意不 catch 这样的 exception 来约束开发者,还是说确实属于 bug 需要修复,或者 browser policy 的制定团队有人解释一下这个 block 操作是不是包含页面崩溃这种做法。
2022 年 3 月 10 日
回复了 xiangyuecn 创建的主题 程序员 稳定复现,看我几行代码搞崩 Chrome
@gadfly3173 不是,页面崩溃是在开发者开发测试上线环节都会遇到的问题,开发者遇到这样严重的 bug 怎么会把这样的代码放到生产环境去跑,用户层面无法感知这样的页面崩溃,这个过程是在开发测试上线环节已经约束了开发者,是不影响用户的,因为你正经做开发怎么会带着这样的 bug 上线。你想实现自动播放,直接 mute 就可以呀,unmute 就是不让你的代码成功跑起来,应该没问题吧
2022 年 3 月 10 日
回复了 xiangyuecn 创建的主题 程序员 稳定复现,看我几行代码搞崩 Chrome
而且就 block 这个做法来讲,开发者在开发测试上线各个环节都会遇到崩溃的情况,能够及时修复这个问题,基本没有机会让用户操作导致页面崩溃的情况发生,这样既保护了用户又约束了开发者,这种做法不合适嘛?
2022 年 3 月 10 日
回复了 xiangyuecn 创建的主题 程序员 稳定复现,看我几行代码搞崩 Chrome
@xiangyuecn @Huelse @gadfly3173 请各位看看这个 policy ,是不是我说的这个意思
2022 年 3 月 10 日
回复了 xiangyuecn 创建的主题 程序员 稳定复现,看我几行代码搞崩 Chrome
"web browsers are moving towards stricter autoplay policies in order to improve the user experience",就提升用户体验来讲,chrome 团队认为 "block unwanted media autoplays" 要比 allow unmuted media autoplays 好,所以他们进行了 block 处理,如何实现 block ,这个 policy 没提到,我个人认为就是直接让页面崩溃,他们找不到比这更合适的做法了
2022 年 3 月 10 日
回复了 xiangyuecn 创建的主题 程序员 稳定复现,看我几行代码搞崩 Chrome
@ie88 更正一下,是 roughly half 而不是 all
2022 年 3 月 10 日
回复了 xiangyuecn 创建的主题 程序员 稳定复现,看我几行代码搞崩 Chrome
effectively blocking roughly half of unwanted media autoplays in Chrome ,是 half 而不是 all ,不也正好解释大家半天测试的时候,有的时候出现崩溃,有的时候没崩溃的情况吗
2022 年 3 月 10 日
回复了 xiangyuecn 创建的主题 程序员 稳定复现,看我几行代码搞崩 Chrome
@gadfly3173 https://developer.chrome.com/blog/autoplay/#webaudio
我刚看了下 Autoplay policy in Chrome ,有以下描述

The Autoplay Policy launched in Chrome 66 for audio and video elements and is effectively blocking roughly half of unwanted media autoplays in Chrome. For the Web Audio API, the autoplay policy launched in Chrome 71. This affects web games, some WebRTC applications, and other web pages using audio features. More details can be found in the Web Audio API section below.

As you may have noticed, web browsers are moving towards stricter autoplay policies in order to improve the user experience, minimize incentives to install ad blockers, and reduce data consumption on expensive and/or constrained networks. These changes are intended to give greater control of playback to users and to benefit publishers with legitimate use cases.

Chrome's autoplay policies are simple:

Muted autoplay is always allowed.
Autoplay with sound is allowed if:
The user has interacted with the domain (click, tap, etc.).
On desktop, the user's Media Engagement Index threshold has been crossed, meaning the user has previously played video with sound.
The user has added the site to their home screen on mobile or installed the PWA on desktop.
Top frames can delegate autoplay permission to their iframes to allow autoplay with sound.

我觉得这个 policy 已经说得很明确了,所以页面直接崩溃( effectively blocking roughly half of unwanted media autoplays in Chrome )是 Chrome 现在正在用的做法,不属于 bug 不是吗?
2022 年 3 月 10 日
回复了 xiangyuecn 创建的主题 程序员 稳定复现,看我几行代码搞崩 Chrome
@gadfly3173 哦,我大致明白了,多谢指点。
2022 年 3 月 10 日
回复了 xiangyuecn 创建的主题 程序员 稳定复现,看我几行代码搞崩 Chrome
@gadfly3173 你说的自动播放视频通常视频流是被加密了的,应该不会被恶意篡改。而 AudioContext 这个 API 播放音频流应该没有做到加密处理,应该被恶意篡改的风险很高吧
2022 年 3 月 10 日
回复了 xiangyuecn 创建的主题 程序员 稳定复现,看我几行代码搞崩 Chrome
@gadfly3173 你说的这些目前是这样的,可是如果 AudioContext 这个 API 没经过用户操作就能进行音频播放的话,是不是很容易出现类似网页被挂马这种情况,自动播放一些不和谐的音频,可能让审查机构误认为是网站开发人员故意操作的。
2022 年 3 月 10 日
回复了 xiangyuecn 创建的主题 程序员 稳定复现,看我几行代码搞崩 Chrome
@gadfly3173 刚回答忘了 @
2022 年 3 月 10 日
回复了 xiangyuecn 创建的主题 程序员 稳定复现,看我几行代码搞崩 Chrome
“而且这样崩溃了,谁知道问题是出在这里啊”:页面崩溃,这段提示"The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page." 已经在 console 有了,所以是能帮助开发者定位到问题的。现在应该是缺少给用户提示的信息,尤其是这种恶意行为,要警示用户,小心访问此类站点,类似 ssl 过期这种提示,让用户选择继续访问还是不访问
1  2  3  4  5  6  7  8  9  
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3904 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 17ms · UTC 05:07 · PVG 13:07 · LAX 22:07 · JFK 01:07
♥ Do have faith in what you're doing.