I have set “enable flash video onebox” on but still can’t embed swf link
flash url:
https://static-s.bilibili.com/live-static/swf/LivePlayerEx_1.swf?room_id=10694&cid=10694&state=LIVE
control panel:
what it looks like in posts:
User zh99998 is trying to embed a Flash SWF file from Bilibili using Discourse’s flash video onebox feature, but it’s not working despite enabling the setting and whitelisting the domain. They shared screenshots showing the URL and control panel settings. pfaffman suggests the SWF URL may not provide the required metadata for oneboxing, unlike YouTube, as shown via iframely.com. DeanMarkTaylor proposes modifying the URL by appending &.swf or &format=1.swf to match Discourse’s regex pattern for Flash oneboxing, but zh99998 confirms these tweaks don’t work. DeanMarkTaylor then asks if Discourse was restarted, since some settings require it — zh99998 confirms they’ve restarted and rebuilt the forum multiple times without success. The issue remains unresolved, pointing to either a limitation in Discourse’s Flash onebox engine or the SWF’s lack of embeddable metadata.
I have set “enable flash video onebox” on but still can’t embed swf link
flash url:
https://static-s.bilibili.com/live-static/swf/LivePlayerEx_1.swf?room_id=10694&cid=10694&state=LIVE
control panel:
what it looks like in posts:
I’m no expert, but checking the site in iframely.com it doesn’t look like it’s providing the stuff needed to onebox it. Contrast this youtube.
Looking at the regular expression URL matching I believe is in play here:
You may get it to work by modifying the URL from:
https://static-s.bilibili.com/live-static/swf/LivePlayerEx_1.swf?room_id=10694&cid=10694&state=LIVE2
to:
https://static-s.bilibili.com/live-static/swf/LivePlayerEx_1.swf?room_id=10694&cid=10694&state=LIVE2&.swf
But really this is not something I’ve tried.
Have you tried restarting discourse? some settings are not immediately updated and require a restart.
I have set enable flash video and onebox whitelist very lone before. forum restarted and rebuild many times until now.