Jump to content

(NE) HTML5 Audio/Video Player

Featured Replies

Hey. So I have under advanced settings for No Download Options. For videos users are not able to download but for audio the download button is still there. I assume the No Download Option applies for Audio as well. 

Any idea?

  • Replies 386
  • Views 36.8k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Nathan Explosion
    Nathan Explosion

    v2.1.2 is currently pending approval FIXES Fixed issue affecting IPS 4.6.x where audio file attachments would not be converted to an audio player despite configured to do so

  • Nathan Explosion
    Nathan Explosion

    Please, please, point them at this discussion and request that they actually read it - because the moment you mention this application, they will switch to "3rd party issue" mode.

  • Nathan Explosion
    Nathan Explosion

    It's not compatible with 4.5 in its current state (compatibility for the plugin doesn't indicate 4.5 as supported) Yes, it will be upgraded to support 4.5 now that 4.5 has been released - probabl

Posted Images

  • Author

Is it a remotely linked audio file, or is it an attached audio file?

What browser?

  • Author

@TBL_Alex - can you advise on the above questions, please? I'll be putting some time aside over the next few days to do some testing on this app ahead of a v2.2.0 release.

Edited by Nathan Explosion

  • 2 weeks later...

@Nathan Explosion Sorry I've been busy. It's a attached audio file and it's on a chrome browser.

  • Author

Thanks, I suspected it would be a local attached file.

The application currently has no effect on attached files - IPS is responsible for the player displayed (it's created at the time of upload - introduced in IPS 4.6) and I don't influence that player at all.

However, as I did when IPS added native video for uploaded videos, I am going to be adding in a modification to allow settings to be applied to attached audio files too. That will be added when v2.2.0 is released (no ETA)

  • 3 weeks later...
  • Author

What are your settings?

I already know the answer but you providing your settings will allow me to explain it clearly for you.

Edited by Nathan Explosion

Could contain: File, Text, WebpageCould contain: File, Webpage, TextCould contain: Text, Page, Document, Word

  • Author

Thank you.

Because it is an attachment, my application isn't responsible for the video player - that is native functionality for uploaded video files, added by Invision several major versions ago.

Why is it a video player instead of an audio player? Because Invision have .ogg files listed in their $videoExtensions variable in /system/File/File.php:

/**
* @brief	File extensions for HTML5 compatible videos
*/
public static $videoExtensions = array( 'mp4', '3gp', 'mov', 'ogg', 'ogv', 'mpg', 'mpeg', 'flv', 'webm', 'wmv', 'avi', 'm4v' );
		

...and they also have it listed in their $audioExtensions variable too:

/**
* @brief	File extensions for HTML5 compatible audio
*/
public static $audioExtensions = array( 'mp3', 'ogg', 'wav', 'm4a' );

When a file is uploaded, Invision is checking it's type and then deciding what to do with it...and because it first finds ogg in the videoExtensions list, you get a video player.

How to fix it? Go here or here and post about it - it would help to link to this post so that whoever reads it doesn't simply say "OH, disable this or delete that or contact the dev"

 

For information - my application is only having an effect on the native player by turning the embedded video player (added by Invision) into a linked attachment because both the "Enforce settings to native IPS video" and "Enforce 'Download attachments' permission" settings are enabled (reason for using those is in the linked description of the second setting)

Edited by Nathan Explosion

  • 5 months later...
  • Author

v2.2.0 is currently pending approval.

NEW

  • Added "Apply settings to native IPS audio" & "Enforce 'Download attachments' permission" settings on the 'Audio' tab.
    • These settings mirror some of the functionality provided by the equivalent settings on the 'Video' tab.
      • If a user doesn't have permission to download attachments then the IPS-embedded audio player will be converted to a normal attachment link.
      • 'Preload' settings will be applied to IPS-embedded audio players.
  • 'Disable right-click' functionality is now effective on attached audio files.

CHANGES

  • Minor language updates

FIXES

  • Fixed an issue when adding a Pages WYSIWYG block via the block manager would result in an 'Error', stopping you from configuring the block at that time.
  • Fixed an issue where a Pages WYSIWYG block was no longer processed by the application if the block wasn't on a Pages page.
  • 5 months later...

Hello,

The mp4 video link I need to embed into a post can not be played in the post, but it can be played in the browser by pasting the link.

 

Edited by sychn

  • Author

Dude - it's the same detail you've provided in PM; you've not elaborated at all as requested.

Check your PM please.

Recently Browsing 0

  • No registered users viewing this page.