fafdk

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • in reply to: Template using the mediaelement.js for mp3? #640
    fafdk
    Participant

    Hi again

    Tried to incorporate accordions with the mediaelement.js mp3 player, with the help of a shortcode plugin called: “WordPress Twitter Bootstrap Plugin”.

    I created a template like this:

    [TBS_COLLAPSE accordion='y'][TBS_COLLAPSE_GROUP title="%file_display_name%" open='n'][audio mp3="%file_url%"][/TBS_COLLAPSE_GROUP]

    And from what I can see, then it works, but it seems that the mediaplayer.js is loading in the background on every entry and making the page somewhat slow to load, because I have allot of files on that page. If I try without the accordion, and just with the mp3 player in a table for each file, then it is slow as well, can’t really see a difference there. If I make a separate description page with only one player, then it would load fast of course, but with accordions it could really be eye-candy to have all on one page.

    I would have to learn some more about how to prefetch the player, maybe load it in the footer or in a popup. I like the idea of having the mediaplayer in the “footer”, so that the users can look around on the site while listening to the mediafile.

    Did you ever hear about “WordPress Twitter Bootstrap Plugin” and if there are any conflicts with it?

    Did you think about integrating the WP3.6 core mediaplayer into your plugin? – if so, did you contemplate on using the mediaplayer in the footer or at the bottom of the page, or using accordions?

    Also found a page with some jquery components – which maybe could be of some use for you. Don’t know if the page is any good, but I include it anyway.

    I think that the media-section of your plugin could bring your plugin to a broader audience, if you made use of the mediaelement.js integration. I know it’s only for WP3.6 and many are still using the older versions, but you could make it so that those with WP3.6 could make better use of it and for their multimedia needs. When your finished with ironing the last bugs out of your plugin, then you maybe could give it some thoughts? I also wish to learn something here 🙂

    Thank you for your time and for your plugin.

    /FAF

    in reply to: Template using the mediaelement.js for mp3? #630
    fafdk
    Participant

    You should utilize the mediaelement.js shortcode [audio mp3=""] in your plugin. Maybe change the MP3 template, so that you can use HTML5 and Flash instead of your FLV player.

    Also I’m looking for good ideas on how to build up a nice template with tables and all. I’ve just installed the “tablepress” plugin, to see if I can get some use of it.

    I will also make some research on W3S, so that I can understand the HTML5 directive a little better.

    Thank you for your input.

    in reply to: Template using the mediaelement.js for mp3? #629
    fafdk
    Participant

    No plugin. Mediaelement.js is in the core now. It degrades to flash too, if no HTML5 support is present.

    Right now I’m trying to put it all together in a nice design.

    in reply to: Template using the mediaelement.js for mp3? #625
    fafdk
    Participant

    Made a test template with the mediaelement.js audio function. Seems to work ok, it’s just not the most elegant display, but it works with the core mediaelement.js.

    <tr><td><a href="%file_url%">%file_display_name%</a></td><td>[audio mp3="%file_url%"]</td></tr>

    Really interesting with the template system, it opens up for endless ways of doing things.

    Thx

    fafdk
    Participant

    Maybe an option to turn off the “automatic versionering from filename” would be a nice feature to have? – and/or to choose which symbols would be used in the filename.

    fafdk
    Participant

    I put the lines in again, and changed this line:

    if(preg_match('/[-_\.]v?([0-9]{1,2}\.[0-9]{1,2}(\.[0-9]{1,2}){0,2})(-[a-zA-Z_]+)?$/', $fnwv, $matches)) {`

    to this:

    if(preg_match('/[\]v?([0-9]{1,2}\.[0-9]{1,2}(\.[0-9]{1,2}){0,2})(-[a-zA-Z_]+)?$/', $fnwv, $matches)) {

    From here:

    static function ParseFileNameVersion($file_name, $file_version) {
    $fnwv = substr($file_name, 0, strrpos($file_name, '.'));// remove extension
    if(empty($file_version)) {
    $matches = array();	
    if(preg_match('/[-_\.]v?([0-9]{1,2}\.[0-9]{1,2}(\.[0-9]{1,2}){0,2})(-[a-zA-Z_]+)?$/', $fnwv, $matches)) {
    $file_version = $matches[1];
    if((strlen($fnwv)-strlen($matches[0])) > 1)
    $fnwv = substr($fnwv, 0, -strlen($matches[0]));
    }	
    } elseif(substr($fnwv, -strlen($file_version)) == $file_version) {	
    $fnwv = trim(substr($fnwv, 0, -strlen($file_version)), '-');
    }
    $title = WPFB_Core::GetOpt('no_name_formatting') ? $fnwv : wpfb_call('Output', 'Filename2Title', array($fnwv, false), true);	
    return array('title' => empty($title) ? $file_name : $title, 'version' => $file_version);
    }

    Maybe it’s a rough hack, but it seems to work.

    I’ll wait for a proper update.

    /FAF

    fafdk
    Participant

    Thx, but after I commented it out and ran a scan, it does not generate a filename anymore, just the path.

    in reply to: Curl and open_basedir/safe_mode? #608
    fafdk
    Participant

    Thank you for fixing the issues, it looks good and works as intended. Also the Categories are created as they should. All in all a perfect update. Thx.

    /Closed

    in reply to: Curl and open_basedir/safe_mode? #595
    fafdk
    Participant

    OK, thx. Didn’t see this message before writing in the setup section. Nice.

    /Closed 🙂

    in reply to: Amazon S3 Remote Sync setup and Root Category #594
    fafdk
    Participant

    Maybe I have misunderstood the functionality of this plugin, even though I will be using it to give users the opportunity to upload files from the frontend.

    Right now I actually only need a path/list of files from S3, so that users can download the files, without me having to create every single link manually. The native filebrowser is in addition a nice feature which I would like to use, because I do not like to use iframe.

    Furthermore, I’m also implementing a streaming service from Cloudfront, and will eventually use a player which support RTMP for the streaming. So it’s more of a dual config, for users to either download from S3 or stream from CloudFront.

    I do not have any files for “sync” here on the server, all is uploaded beforehand to S3, before the actual sync, because I only need to retrieve a file-list. Nevertheless, my understanding was that your plugin could fulfill that, and retrieve a simple filelist from S3 and populate it to the database?

    I do not which to be on your case or anything like that, and I know that your busy with your exams, but did I misunderstand the functionality of this plugin? I only bought it because of the S3 functionality, and was hoping that I eventually could use it for more than that.

    in reply to: Amazon S3 Remote Sync setup and Root Category #591
    fafdk
    Participant

    Hi again

    Well, tried almost all thinkable configurations, like, only one category folder, a list of identical categories, do not include in filebrowser, etc, and I still get the same error and behavior.

    These errors are with only one category called “audio”, but it’s the same with any configuration.`Remote Sync m.krishna-online.dk on service Amazon S3 with account ************
    Retrieving remote file tree, this can take some time…
    Warning: Could not add remote file m.krishna-online.dk/mp3/. A category with the same path (audio) already exists.
    done!
    Number of new Files: 527
    Number of modified Files: 0
    Number of deleted Files: 0
    Adding files…

    100%

    Path /var/www/web/wp-content/uploads/filebase/audio/Bhagavad_Gita/ is a directory. Skipping download!
    `
    The error is repeated for all existing directories on S3. The result is only 16 files imported, and they are shown in the filebrowser, even when the config is set to exclude from the filebrowser.

    After every failed repeated sync I have started from fresh and manually removed all created folders from on the server, and deleted everything from WPF.

    I tried following the directive in //wpfilebase.com/documentation/troubleshooting/

    I have only tested the plugin on WP 3.6 though.

    Any ideas?

    • This reply was modified 11 years, 2 months ago by fafdk.
    • This reply was modified 11 years, 2 months ago by fafdk.
    in reply to: Amazon S3 Remote Sync setup and Root Category #584
    fafdk
    Participant

    Maybe this should have been in the “Remote Sync” category of the forum?

    Let me try to give a small description of my setup.

    I have a bucket on S3 with folders, like this:

    /mp3
    /mp3/folder1
    /mp3/folder1/subfolder
    /mp3/folder1/subfolder/file.mp3
    /mp3/folder2
    /mp3/folder2/subfolder
    /mp3/folder2/subfolder/file.mp3

    -or see for yourself: http://m.krishna-online.dk/list.html

    I then create a Remote Sync with /mp3 as the Remote Path.

    After the sync I can only see one file per subfolder?

    • This reply was modified 11 years, 2 months ago by fafdk.
    • This reply was modified 11 years, 2 months ago by fafdk.
    • This reply was modified 11 years, 2 months ago by fafdk.
    • This reply was modified 11 years, 2 months ago by fafdk.
    in reply to: Curl and open_basedir/safe_mode? #582
    fafdk
    Participant

    Hi Fabian

    Yes, it runs a little more smooth with the option disabled. I still need to understand how the plugin utilizes the categories, which maybe is a part of my problem, so I need to read some more.

    Thank you for your answer.

    /FAF

    in reply to: Curl and open_basedir/safe_mode? #576
    fafdk
    Participant

    I will move my dev-site to my host at the datacenter, to see if it can make it work a little better. Here at home I’m running an old Debian Squeeze, at the datacenter I have a CentOS 6 running. Furthermore I have 100Mbit/s there and 10Mbit/s here 🙂 – so the sync should perform better at the datacenter.

    At Amazon S3 I have a bucket full of folders with mp3’s, all sorted and all. When I sync with S3, all I get is one file per folder at most. It would be nice if I just could import the folder-tree as is, but I think the curl error is stopping the process.

    Thx for now.

    • This reply was modified 11 years, 2 months ago by fafdk.
    in reply to: Welcome #575
    fafdk
    Participant

    Hi Fabian

    Thank you for making a support forum.

    /FAF

Viewing 15 posts - 1 through 15 (of 15 total)