[Elgg 1.8-1.12 & 2.X: iZAP Videos - revised edition by iionly] v2.3.5

Release Notes

  • Group videos page accessible again,
  • No filter menu displayed anymore when logged out viewing All videos page or a user's videos page,
  • Video.js updated to version 7.2.2,
  • Improved fetching of thumbnail images when adding off-server youtube videos (no longer fail adding the video if the url of the largest image is not available but try then the availability the url for other thumbnail sizes from largest to smallest image and only fail if no image url at all is provided),
  • Display a meaningful error message if adding a off-server video fails and no longer display fetched data as "error message" (adding fails if title or video url or thumnnail image url are not fetched and the likely reason for missing data is the video is not allowed to be embedded on other sites).
  • can you help me? how to responsive or resize video youtube.
    https://prnt.sc/ldx0q7

  • I'm afraid I can't provide a full working solution right now. I tried a bit to get it working this afternoon but I have not managed to get the on-server videos correctly displayed in the popups (from activity page) yet. It might work for off-server videos (but only tested with one Youtube video so far).

    I added to mod/izap_videos/views/default/izap_videos/css.php

    .izap_responsive_video {
        position: relative;
        padding-bottom: 56.25%; /* Default for 1600x900 videos 16:9 ratio*/
        padding-top: 0px;
        height: 0;
    }
    .izap_responsive_video iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    and modified izapPlayer class (that's where I'm currently struggling with the on-server videos within popups)

    .izapPlayer {
        width:100%;
        min-height:60%;
        background-color:#000;
    }

    In mod/izap_videos/classes/IzapVideos.php I modified the code line to display on-server videos into

    $html = "<video id='videojsPlayer' class='video-js vjs-default-skin vjs-16-9 vjs-big-play-centered' controls preload='none' width='{$width}' height='{$height}' poster='{$imageurl}' data-setup='{}'><source src='{$videourl}' type='video/mp4'><p class='vjs-no-js'>To view this video please enable JavaScript, and consider upgrading to a web browser that <a href='http://videojs.com/html5-video-support/' target='_blank'>supports HTML5 video</a></p></video>";

    And I modified the code line that displays the player in mod/izap_videos/views/default/object/izap_videos/full.php into

    echo elgg_format_element('div', ['class' => 'izap_responsive_video'], $video->getPlayer());

    and for popups in mod/izap_videos/views/default/izap_videos/playpopup.php

    $content .= elgg_format_element('div', ['class' => 'izapPlayer mbm'], elgg_format_element('div', ['class' => 'izap_responsive_video'], $video->getPlayer()));

    (again: that's not fully working yet).

    If you (or anyone else) figures out how to get also the on-server videos in popups correctly displayed with all video players being responsive, I would like to hear how.

  • Hey Hey!

    Im getting this error after uploading a video:

    Video is queued up for conversion

    How do I fix this so that videos can be played when uploaded?

    Thank ya :)

    Mekaboo

  • The conversion of the uploaded videos gets triggered by a cronjob. You can select the cron interval to be used on the iZAP Videos plugin settings page. But the Elgg cronjob for the interval to be used has to be set up on the server for the conversion to get triggered. As you need the Elgg cronjobs for other plugins (and Elgg core), too, I would suggest to set them up in any case and then try again.

Stats

  • Category: Media
  • License: GNU General Public License (GPL) version 2
  • Updated: 2019-2-26
  • Downloads: 6112
  • Recommendations: 19

Other Projects

View iionly's plugins