dopetalk

Technology => SMF Forum Code Modifications => Topic started by: Chip on June 18, 2017, 01:38:45 PM

Title: Play Media Attachments
Post by: Chip on June 18, 2017, 01:38:45 PM
http://custom.simplemachines.org/mods/index.php?mod=4131


This mod allows a MP3, WAV or OGG file that has been attached to a post to be played without manually downloading the attachment using the HTML5 audio tag.

As of version 1.5, a fallback audio player embed tag has been added in the hopes that it will allow the attachment to be played if HTML5 support isn't available.


it currently conflicts with "Post and PM Inline Attachments" and the author is looking at it. Might be handy for soundbites.

To install this:

remove Post and PM Inline Attachments OLD version
remove Personal Messages to Membergroups
remove Enhanced PM System
install Post and PM Inline Attachments NEWEST version
install Enhanced PM System
install Personal Messages to Membergroups
install Play Media Attachments NEWEST version

 
Fixed - this was performed:

remove Automatic Attachment Rotation
uninstall Post and PM Inline Attachments
delete all Post and PM Inline Attachments
install Post and PM Inline Attachments NEWEST version
then install it

Automatic Attachment Rotation reinstall failed though ...
Title: Re: Play Media Attachments
Post by: Chip on September 10, 2017, 12:07:57 PM
functional now
Title: Re: Play Media Attachments
Post by: Chip on July 22, 2018, 12:33:22 AM
bug fix for 8: Undefined index: PMAt_no_audio

at +665 ./Themes/default/Display.template.php

find:
Code: [Select]
, $txt['PMAt_no_audio'], '
change:
Code: [Select]
', 'PMAt_no_audio' , '
repeat this for the video code also

seems to work; FYI, the HTML <audio> and <video> tags are used like this:
Code: [Select]
<audio controls>
  <source src="horse.ogg" type="audio/ogg">
  Your browser does not support the audio tag.
</audio>

i am not sure what Modifications.english.php does yet ...
SimplePortal 2.3.6 © 2008-2014, SimplePortal