Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2017-04-21 12:24:30

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

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

craigdrown wrote #305374:

Gave it a try and it appears it does require enablejsapi

Ok, thanks, I’ll add it soon with some more parameters.


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

Offline

#32 2017-04-25 12:45:48

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

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

oui_player v1.3.0-beta-3 is now available.
It allows to enable Youtube, Dailymotion and Vimeo players API’s.


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

Offline

#33 2017-05-24 09:14:58

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

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

oui_player v1.3.0 is officially out and now available via Composer!


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

Offline

#34 2017-05-28 07:16:23

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

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

There is a Composer install related issue about non textilized plugin help files.
Prefer Compiled files for now.

Last edited by NicolasGraph (2017-05-28 21:39:08)


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

Offline

#35 2017-07-13 13:37:33

Vienuolis
Member
From: Vilnius, Lithuania
Registered: 2009-06-14
Posts: 148
Website

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

It seems that oui_player v1.3.0 ignors a class attribute, e. g. my string

<txp:oui_player provider=“vimeo” play=“97847807” width=“580” height=“464” wraptag=“div” class=“grotuvas” />

interprets as

<div class="Oui\Player\Youtube">
 <div class="Oui\Player\vimeo">
 <iframe width="580" height="464" src="//player.vimeo.com/video/97847807?byline=0&amp;color=008000&amp;portrait=0&amp;title=0" frameborder="0" allowfullscreen=""></iframe>
 </div>

(with no ending </div>).

Not a problem in my case — when I write an outer <div class=""> instead of inner attributes wraptag="" class="", the resulting code is:

<div class="Oui\Player\Youtube"> 
<div class="grotuvas"><iframe width="580" height="464" src="//player.vimeo.com/video/97847807?byline=0&amp;color=008000&amp;portrait=0&amp;title=0" frameborder="0" allowfullscreen=""></iframe></div>

(No ending div, too. Youtube is set there as a default player in oui_player preferences of Textpattern v4.6.2).

Offline

#36 2017-07-13 14:44:39

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

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

Vienuolis wrote #306270:

It seems that oui_player v1.3.0 ignors a class attribute […]

Thanks for the report; v1.3.1 should fix this issue.


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

Offline

#37 2018-04-22 09:16:39

Vienuolis
Member
From: Vilnius, Lithuania
Registered: 2009-06-14
Posts: 148
Website

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

Sorry, I am not a programmer, and can not find any way by coding HTML and CSS. .Oui\Player\youtube{} is invalid in CSS language, and .youtube{} do not work, too. When I set own class="player", the plugin distorts webpages with unclosed <div>:

<div class="player"><txp:oui_player provider="youtube" play="vXo_QN5cYhE" /></div>

becomes

<div  class="Oui\Player\youtube" /> 
 <div class="player"><iframe width="580" height="326.25" src="//www.youtube-nocookie.com/embed/vXo_QN5cYhE?autohide=1&amp;cc_load_policy=0&amp;iv_load_policy=3&amp;rel=0&amp;showinfo=0&amp;theme=light" frameborder="0" allowfullscreen></iframe></div>

— with additional div.

Last edited by Vienuolis (2018-04-22 09:23:23)

Offline

#38 2018-04-22 09:29:26

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 1,429
Website

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

Vienuolis wrote #311310:

Sorry, I am not a programmer, and can not find any way by coding HTML and CSS. .Oui\Player\youtube{} is invalid in CSS language,

It is valid HTML though…

If you have to use that class, escape the \, like so (CSS 2.1 c4 stuff):

.Oui\\Player\\Youtube { border: 10px solid red;}

Or attribute selectors are your friend: div[class*="Youtube"]

I agree that those generated classes are a bit odd though.

Offline

#39 2018-04-22 09:43:34

Vienuolis
Member
From: Vilnius, Lithuania
Registered: 2009-06-14
Posts: 148
Website

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

phiw13 wrote #311311:

It is valid HTML though…

Yes, valid, but it changes all remained page structure with no closing </div>

.Oui\\Player\\Youtube { border: 10px solid red;}...

Helped, thank you very much!

Or attribute selectors are your friend: div[class*="Youtube"]

Perhaps the older browsers could not understand…

Offline

#40 2018-04-22 14:19:03

Vienuolis
Member
From: Vilnius, Lithuania
Registered: 2009-06-14
Posts: 148
Website

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

I have fixed media, embedded via custom field only. While media provider or sizes are not default, the extra not ending div appears, though. It appears even if there is no txp:oui tag at all — when media is embedded via original iframe! Although divs are not doubling and webpage is not distorting by other embedded txp:oui media, followed after default video, inserted via custom field.

After some research and test, I finally found a pest — <script src="https://platform.vine.co/static/scripts/embed.js"></script>, inserted at the end of a webpage. When I switch TxP form from my media template to another one, doubled <div class="Oui\Player\Youtube"> leaves out.

Offline

Board footer

Powered by FluxBB