Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

加载h5视频的时候,设置了自动播放但是不好使 #159

Open
wangxinlei1 opened this issue Jan 16, 2025 · 0 comments
Open

加载h5视频的时候,设置了自动播放但是不好使 #159

wangxinlei1 opened this issue Jan 16, 2025 · 0 comments

Comments

@wangxinlei1
Copy link

加载h5视频的时候,设置了自动播放但是不好使,能帮忙看下不
WKUserScript *script = [[WKUserScript alloc] initWithSource:@"window._dswk=true;"
injectionTime:WKUserScriptInjectionTimeAtDocumentStart
forMainFrameOnly:YES];
window._dswk=false时会自动播放,加入了交互就不会自动播放了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant