Additional Info
Type
Package ID
Dougiefresh:PlayAttachments
First Created
December 07, 2016, 09:53:49 PM
Last Updated
May 22, 2019, 09:22:29 PM

Play Media Attachments v2.6

Play media attachments in the post without manually downloading them!
Compatible With 2.0.12, 2.0.13, 2.0.14, 2.0.15, 2.1 RC2
Latest version v2.6
Downloads 1,732
Reviews 0
Rating 0/5
Subscribers 12
License (View License)
Author(s)


PLAY MEDIA ATTACHMENTS v2.6
By Dougiefresh -> Link to Mod



Introduction
This mod allows MP3, WAV, WMA, AAC, and audio OGG files that has been attached to a post to be played without manually downloading the attachment using the HTML5 audio tag.

This mod also allows a MP4, M4A, M4V, WebM, WMV, MOV, and video OGG files that has been attached to a post to be played without manually downloading the attachment using the HTML5 video tag.

Note: OGG format files are assumed to be video if the extension is OGV.  Detection has yet to be improved upon for determining the difference between audio and video OGG-formatted files.

Admin Settings
In Admin -> Forum -> Attachments and Avatars -> Attachment Settings, there are two new options:
o Width of Audio Player element
o Width of Video Player element

Inspiration & Credit
The Javascript code used was copied and adapted from this webpage: JavaScript spoiler with a twist (collapsing up or down)

Compatibility Notes
This mod was tested on SMF 2.0.14, but should work on SMF 2.0 and up, as well as SMF 2.1 RC2.  SMF 2.1 RC1 and before, as well as SMF 1.x will not be supported.

PM Attachments should be installed before this mod (not required).  Only PM Attachments mod version 2.1 and above are supported!

Changelog
The changelog can be viewed at XPtsp.com.

License
Copyright (c) 2016 - 2019, Douglas Orend
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Manual installation info
You have to register or login to be able to leave a review
There are currently no reviews on this customization
Advertisement: