Advertisement:

Author Topic: Play Media Attachments  (Read 23950 times)

Offline ircsiinci

  • Semi-Newbie
  • *
  • Posts: 71
  • Gender: Female
    • békességnektek
Re: Play Media Attachments
« Reply #20 on: February 23, 2017, 03:08:59 AM »
Dougiefresh Hi!

I found the error.
I'm sorry, forgiveness and thousands of inattention measured.   :(  :'(
Opera36.0.2130.80 I'm using and did not work.
For Firefox works fine Attachments Media Play.

Perhaps there is an Opera browser which you work?

Have a nice day!
........ Because she said it is better to give than to receive.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: Play Media Attachments
« Reply #21 on: February 23, 2017, 09:17:47 AM »
Uploaded v1.5 - February 23rd, 2017
o Added fallback audio player as an embed to the mod.



@ircsiinci:   I've added a fallback audio player to the mod, but you may have to download a plug-in in order to use it if the HTML5 code doesn't work for you.  The HTML5 AUDIO tag not working in Opera topic over at StackOverflow states this:
Quote
Opera does NOT support 320Kbps / 48kHz audio formats.

Opera only works with 192x44, 128x44 and 48x22 OGG subformats.
Personally, I use Firefox to develop all of my mods.  I check other browsers only if issues are found and reported by other users.....

Offline ircsiinci

  • Semi-Newbie
  • *
  • Posts: 71
  • Gender: Female
    • békességnektek
Re: Play Media Attachments
« Reply #22 on: February 23, 2017, 01:33:40 PM »
Hello dougiefresh!

Thank you for your trouble.
........ Because she said it is better to give than to receive.

Offline Kinsman

  • Semi-Newbie
  • *
  • Posts: 17
Re: Play Media Attachments
« Reply #23 on: February 26, 2017, 01:34:55 AM »
Unsure if others have this problem but I uninstalled this, as it stopped my forum generating thumbnails of attachments.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: Play Media Attachments
« Reply #24 on: February 26, 2017, 08:13:17 PM »
Unsure if others have this problem but I uninstalled this, as it stopped my forum generating thumbnails of attachments.
Will look into this bug report!  Thank you for reporting it!

Offline musicus

  • Jr. Member
  • **
  • Posts: 175
  • Gender: Male
    • Mucic for open ears
Re: Play Media Attachments
« Reply #25 on: February 28, 2017, 04:45:34 AM »
Works fine!!!

But for the next version, perhaps the possibility of using tracks from other pages, e.g. Wordpress.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: Play Media Attachments
« Reply #26 on: February 28, 2017, 10:16:31 AM »
Unsure if others have this problem but I uninstalled this, as it stopped my forum generating thumbnails of attachments.
I just tested this mod on a clean SMF 2.0.13 localhost forum, and attached an image to a post after attaching a mp3 to another post.  It did generate the thumbnail of the 1600x1000 PNG file that I attached to the post.

But for the next version, perhaps the possibility of using tracks from other pages, e.g. Wordpress.
This mod only makes attachments that are audio/music files into playable files through the forum.  Unless the files were stored in the SMF database and processed in similar ways, I would not be able to do the same thing for other pages, nor could I pull tracks from other pages with the code that I have.

Offline musicus

  • Jr. Member
  • **
  • Posts: 175
  • Gender: Male
    • Mucic for open ears
Re: Play Media Attachments
« Reply #27 on: March 01, 2017, 06:36:47 AM »
Pity, but is there a player, via html5 player, which plays MP3s over other sides?
I do not want to install a Flashplayer anymore. Flash has a very bad security.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: Play Media Attachments
« Reply #28 on: March 01, 2017, 09:25:51 AM »
Pity, but is there a player, via html5 player, which plays MP3s over other sides?
I do not want to install a Flashplayer anymore. Flash has a very bad security.
Look at the HTML5 Audio and Video BBCodes mod.  It may be what you're looking for.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: Play Media Attachments
« Reply #29 on: March 19, 2017, 11:26:15 AM »
Uploaded v1.6 - March 19th, 2017
o Attempted thumbnail generation fix when no audio/video MIME type present.


Unsure if others have this problem but I uninstalled this, as it stopped my forum generating thumbnails of attachments.
I've attempted to fix this issue, but since I couldn't reproduce the bug, I'm guessing at what might be causing the issue.....

Offline davejo

  • Jr. Member
  • **
  • Posts: 322
    • Dave's Hobby Workshop
Re: Play Media Attachments
« Reply #30 on: March 24, 2017, 08:12:57 AM »
Dougie,

Just so you know this doesn't install on 2.1 beta 3. The only other mod I have installed on the test site is 'SCM Player for SMF'

regards

Dave

If you want 'Quiz' questions Click here
Quiz Test Site Link

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: Play Media Attachments
« Reply #31 on: March 24, 2017, 08:59:28 AM »
Just so you know this doesn't install on 2.1 beta 3. The only other mod I have installed on the test site is 'SCM Player for SMF'
2.1 Beta 3 isn't an official beta yet.  I define official as downloadable from this site, not GitHub.  Until it becomes one, I'm not supporting it.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,621
    • StoryBB/StoryBB on GitHub
Re: Play Media Attachments
« Reply #32 on: March 24, 2017, 09:17:09 AM »
Given that "beta 3" covers a year's worth or more of development, you can't really write a mod that targets beta 3 sanely.

-- someone that has a very complex beta 3 only mod on his GitHub.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline nofapturkiye

  • Semi-Newbie
  • *
  • Posts: 44
Re: Play Media Attachments
« Reply #33 on: March 29, 2017, 05:09:09 AM »
Quote
Introduction
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.

Hello dougiefresh thanks for making our forums pretty  :)

i have question ;sometimes scm music player tries to download when we press lay button .( something about internet download manager.)
i wonder if this mod can fix that bug. what do you think?

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: Play Media Attachments
« Reply #34 on: March 29, 2017, 12:13:52 PM »
i have question ;sometimes scm music player tries to download when we press lay button .( something about internet download manager.)
i wonder if this mod can fix that bug. what do you think?
In addition, the SCM Music Player mod is for site-wide music.  This mod only allows you to play music files that have been attached to a post.  So, no, I completely and very seriously doubt this mod will fix any issues found with that mod.....

Offline engrz

  • Full Member
  • ***
  • Posts: 575
  • Gender: Male
  • Engineering and IT Discussion Forum
    • www.facebook.com/engrzpakistan on Facebook
    • @engrz on Twitter
    • Engineering Forum
Re: Play Media Attachments
« Reply #35 on: May 05, 2017, 12:43:15 AM »
Please make this mod possible of playing of video attachments, like MP4, FLV file... small clips to be played without downloading.


Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,621
    • StoryBB/StoryBB on GitHub
Re: Play Media Attachments
« Reply #36 on: May 05, 2017, 02:59:39 AM »
That's primarily dependent on the browser having support, rather than anything else.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline engrz

  • Full Member
  • ***
  • Posts: 575
  • Gender: Male
  • Engineering and IT Discussion Forum
    • www.facebook.com/engrzpakistan on Facebook
    • @engrz on Twitter
    • Engineering Forum
Re: Play Media Attachments
« Reply #37 on: May 05, 2017, 04:55:30 AM »
That's primarily dependent on the browser having support, rather than anything else.

what kind of support? google chrome and firefox plays almost every video inside the browser.


Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,494
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: Play Media Attachments
« Reply #38 on: June 17, 2017, 11:59:36 PM »
damn, this conflicts with the "Post_and_PM_Inline_Attachments" mod, which i can't easily remove (doesn't install due to mods to Display.template.php).

i knew that too many mods will get me in this sort of trouble !

I made the code change manually but still only see the attachment - something is wrong with my system, i think ...

I did try it on another less modified clone and it worked there though.
« Last Edit: June 18, 2017, 12:45:44 AM by aegersz »
The configuration of my Linux VPS (SMF 2.0 with 145 mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum)

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,494
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: Play Media Attachments
« Reply #39 on: June 18, 2017, 01:15:28 AM »
I managed to trace it back to the "Images with Margins and Borders" mod so i uninstalled it also.

Then i installed your mod (which worked) ... then i reinstalled the "Post_and_PM_Inline_Attachments" mod and the install worked as far as Package Manager is concerned but the player didn't show up so those two mods cannot coexist.

If you get a moment, could you figure out why it installs but doesn't work ? There are no errors in the logs that could help, sorry.
The configuration of my Linux VPS (SMF 2.0 with 145 mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum)