Git Product home page Git Product logo

nicolasgraph / oui_player Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 766 KB

Manage configurable media players in @Textpattern CMS

Home Page: http://forum.textpattern.com/viewtopic.php?id=47244

License: GNU General Public License v2.0

PHP 100.00%
abc archive audio bandcamp dailymotion embed mixcloud myspace oui-player player soundcloud textpattern textpattern-plugin twitch txp viddsee video vimeo vine youtube

oui_player's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mst-textpattern

oui_player's Issues

"Fatal error: Maximum execution time" when a few "Display [provider] preferences" are enabled

I'm still tracking this down. I'm getting a:

Fatal error: Maximum execution time of 30 seconds exceeded in /home/sites/xxxxxxx/public/textpattern/lib/txplib_misc.php on line 1902

when I activate a few preferences (Soundcloud, Mixcloud, Vimeo, Youtube). I'm not sure if it's related to the amount of DB fields it has to fetch for the whole Preferences screen or if it's related to some of the oui_player preferences. I think it might be an issue with Soundcloud/Mixcloud preferences, although I've to prove that yet.

Youtube URLs for playlists not working on v1.3.1 (worked on v1.2.1)

On oui_player v1.2.1 I was able to pass it an URL for a YouTube playlist, like this one:

https://www.youtube.com/watch?v=k3qgrSon4To&list=PLgkSUkbS9MLs9LSkGlRAJA-dbiaHpycqq

and oui_player will do its magic and output the proper "player" code (ie. the iframe).

Now I've upgraded to v1.3.1 and the plugin isn't outputting any code at all.
I didn't have time to debug it properly (so I could get a quick patch to apply) but it seems it all boils down to this line. oui_player is not extracting the id properly.

$id = preg_match('/([.][a-z]+\/)/', $this->play) ? $this->getInfos()['id'] : $this->play;]

JS script for Vine is included even when not embedding Vine posts

I've noticed that just before the closing </body>', the Vine script (https://platform.vine.co/static/scripts/embed.js`) was being injected on every page I'm using oui_player, even if I'm not embedding Vine content.

To avoid this, I've changed the corresponding properties from protected to private, both in class Provider and on extending class Vine.

Not sure if this is the correct solution and if it will work when embedding Vine content, but at least for me, it stopped injecting the script.

Undefined `$height` and `$ratio` variables

Config.

  • Txp v4.7.1;
  • oui_player v2.0.0-BETA3;
  • oui_provider v1.0.0-BETA4;
  • extensions:
    • oui_audio version: v1.0.0-BETA4

Issue

While players are correctly rendered Textpattern complains about both $height and $ratio undefined variables when the only extension plugged is oui_audio.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.