How to embed flash as onebox

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:

1 Like

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:
https://github.com/discourse/discourse/blob/0f7aaf5ab19f593416a0012f223e2f91e6cb0329/lib/onebox/engine/flash_video_onebox.rb#L6

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.

1 Like

I’ve tried

https://static-s.bilibili.com/live-static/swf/LivePlayerEx_1.swf?room_id=10694&cid=10694&state=LIVE2&.swf

https://static-s.bilibili.com/live-static/swf/LivePlayerEx_1.swf?room_id=10694&cid=10694&state=LIVE2&format=1.swf

still nothing happened.

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.