Textpattern CMS support forum

You are not logged in. Register | Login | Help

#81 2018-08-15 14:19:10

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Re: oui_player (formerly oui_video) - Easily embed customized players

FYI, oui_player, oui_provider and all related extensions (except oui_vine but including new oui_ted and oui_spotify extensions) have just been released to new Bêta versions.

pluggable_ui() is now used to alterate the plugin output and, for example, facilitate the replacement of a player with an image depending on whatever condition, as Julian asked for.

Here is a Vimeo related basic example to get the right player ratio from the provider oembed API and replace the player with its related thumbnail if the cookie-consent is not set.

# Name: oui_vimeo_plug v0.0.1
# Replace the oui_vimeo player…
# Author: Nicolas Morand
# URL: http://github.com/NicolasGraph
# Recommended load order: 5
# .....................................................................
# This is a plugin for Textpattern - http://textpattern.com/
# To install: textpattern > admin > plugins
# Paste the following text into the "Install plugin" box:
# .....................................................................

H4sIAAAAAAAAE41W/W7bNhD/309xE7JKzhzLrusskeJsQzNsRZel2Lr90wUCLdEWG0oUSMqu
UQToQ+wZ9mB9kh1JSf5Ilk5AYup0X7/f3ZEk0XgSfVTRi8grSUG9WEVjXIuaJStWUJFUvF4a
6beRt6JSMVGat2nkjYaj4disTyOP1DoXsjX+laWCEwXXQpIys9JRq5PUkhnJBCW51lUUhkum
83o+TEURNpY/SVLl1m4ceRlVqWSVbiJPUPQbrThJKeicQpcpoGxD5edP/xg1TCOnvDJLjNRI
UpE5hOfnCKfXM4hVZTzd1Czu9VKMreBP4+0Nwu597AE+4fGx/YVjeClKpWWdaiGHjSzs2UVV
zzlLYVGXqckUkiRtdYO+1XDOzCPpkilNZZISzuckvQuIlGQTHOmcqQH4kpYZlX4flwadw+Xj
m8Xp92Pr6b53mN0fylFiAYCgxZxm8MObV6AFYKi05kQ7DecScsqWuYaFFIUTS7FiGRqtWaZz
wOK1rmXDOCk3aOywKlRtYjX+1lhJYFqhugmVodO6mJeEcWALG8FPhbhj9MSQQ0vtg3sHpqAU
GhTVcROyjfx9RSQp4IiutGOvJa0LQlfoCT5/+hsKYmg1CS5ZCaa68aEbpav/cIOmlfXSsCAf
d5ARTazoLcJJa4nF0nwDrmasXDZcPLBj2A2kRAp37Fre2m/DzkhSXcsSc7Iuf357/cvT7ebC
B4algQU5cJkOtoEPu/DINciVwTOD90qUSUbNhAQLxmmypNq0sMY0VeA3o2ob0E4qqVjoHAyN
6Xe15DMfhiDJGpe0tI662CeX6O6aZowEfXzibRIZKxSG39e8QmHwtJZqtDqdTu+db7vXvx1A
GMJrilU9oNt+H+5ZLghX1BpcMUXmnDazsa+1Q9nJpZuRIfiRwb33ydlad79TbRtfEqzTdtKa
4ezm7PFwDo7EPQrHha2of9tB0jtdtFWAFeE13Xrp79HZiXEYA/2hYlhduTBjPZvNwHc95cOz
Z/AVU0hwcJS8vLl5/erHd4dje9vv73RS6/KRfA/VHCzXcv5FxlbY4htOZ14lFDOdHLl5ROMY
KpJl2P4nc6G1KBzNLoRjC+lA+uOGuwhGMQg8oxZcrCPIWZbR0rs0ViUMH2RhHt/8u2DFEpRM
Z55RrXBzTprdLvDD5K/sm9Bsvfi3V+JuZ8MDjfdNHt5DKGSuBK81QtGisvlxunCJ2spHMB6N
vt4CMG9fyPgiRNIu/Xjv6z1QbN8nqf5fIJMdirsh+hLsB8n0nkyrTWl/4s0Otzvx99tmbbZC
a9eefPi5pOvtSR33mhNebyp3wkfetLmnCIk744FswclS7dwNztCSftB4FbjbkY5RE08JsU5y
XfDE3SdYNDa3kMgrMutt8jzyTueT+SKbjhZ0epZROpmSsxGZjk/pdPp88uIcr0D3/wKE68T2
aAkAAA==

Edit: the responsive rendering related preference is now provider related. If you are updated from a previous Bêta version, the providers related pref will be added at last. You can delete and re-install extensions to get this pref just under the ratio related one, but in this case, all the provider related preferences will be reset to their initial values.

Last edited by NicolasGraph (2018-08-15 15:16:49)


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#82 2018-08-15 21:33:29

jakob
Moderator
From: Germany
Registered: 2005-01-20
Posts: 3,342
Website

Re: oui_player (formerly oui_video) - Easily embed customized players

Thank you Nicolas! I’ve not tried it out yet (was pleased to get the other method working so I’m not going to rock that just yet) but it’s great that you’ve made this possible. I’ll certainly examine it. It would be great to be able to present audio-visual content without necessarily clobbering viewers with trackers when one doesn’t even view or listen to it.


TXP Builders – finely-crafted code, design and txp

Offline

#83 2018-08-16 09:24:10

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Re: oui_player (formerly oui_video) - Easily embed customized players

jakob wrote #313452:

[…] (was pleased to get the other method working so I’m not going to rock that just yet) but it’s great that you’ve made this possible. I’ll certainly examine it.

You would mainly need to add the CSS+javascript part, as I didn’t work on that.

It would be great to be able to present audio-visual content without necessarily clobbering viewers with trackers when one doesn’t even view or listen to it.

Indeed, it would, I’ll investigate on a way to do it.

Last edited by NicolasGraph (2018-08-16 13:16:38)


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#84 2018-08-22 12:38:44

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Re: oui_player (formerly oui_video) - Easily embed customized players

jakob,
FYI, I’m updating Vimeo player parameters and the dnt parameter may interest you.

We track all playback sessions to identify bugs and monitor performance in our player. Setting this parameter to true will block the player from tracking any playback session data.


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#85 2018-08-22 12:39:25

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Re: oui_player (formerly oui_video) - Easily embed customized players

jayrope,
I guess your issue was fixed by the last Bêta version?


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#86 2019-01-13 14:43:58

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 640
Website

Re: oui_player (formerly oui_video) - Easily embed customized players

Hi Nicolas, the issue seems to remain in the BETA4 versions.
I am trying to use it in a context like this
<txp:oui_if_player play='<txp:custom_field name="audio_1" />'> <txp:oui_player /> <txp:else /> No audio. </txp:oui_if_player>

But guessing the provider doesn’t work.

My custom field(s) might contain Bandcamp, Mixcloud, Soundcloud links. It is important, that oui_player can guess the provider. I won’t have a default field for players and/or providers, as each of my audio related custom fields must be able to contain Bandcamp, Soundcloud or Mixcloud links (only one per field of course).

V 1.3.3 guessed from this without a problem, but 2.0.0 beta4 doesn’t here. How could this be fixed?

Could you provide me with a working example script eventually?

Thanx a lot!

Last edited by jayrope (2019-01-13 14:46:20)


a hole turned upside down is a dome, though only when there’s gravity.

Offline

Board footer

Powered by FluxBB