0

I have a wordpress site using old video plugin called FLV Embed and i want to replace it with any new video player code or any other video plugin shortcode.

Currently this plugin uses this shortcode tag style:

[flv:url width height] 

For instance:

[flv:https://s3.amazonaws.com/submarinomiembros/fase2/01-ContinuacionExplicacionSectoresCiclosWebReady.mp4 http://www.submarinobursatil.com/miembros/imagenes/portadas/mercado-ciclico-portada.png 650 400]

I have started to use Brid.tv video player which embed code looks like this:

<script type="text/javascript" src="//services.brid.tv/player/build/brid.min.js"></script>
<div id="Brid_35571109" class="brid" style="width: 650; height: 400;"></div>
<script type="text/javascript"> $bp("Brid_35571109", {"id":"12181","width":"650","height":"400","video":"286211"}); </script>

So i'll need to replace the new Brid code. Problem is that I have more than 400 post with embeded videos so i'm trying to find an automated way to edit and replace video player in all my posts. I'm sure i'll need some script but not sure how to do it.

I was thinking to use Mysql Search and replace function but it won't work since each video has different ID/URL. So i think i'll have to create an script to catch the amazon S3 url and generate the new code.

At this point it does not matter if i'm gonna use brid video player or any other video player or plugin.

Any insights on the right and faster approach (programming language, plugins, etc.) will be appreciated.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.