TBL_Alex Posted September 5, 2022 Posted September 5, 2022 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?
Nathan Explosion Posted September 5, 2022 Author Posted September 5, 2022 Is it a remotely linked audio file, or is it an attached audio file? What browser?
Nathan Explosion Posted September 7, 2022 Author Posted September 7, 2022 (edited) @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 September 7, 2022 by Nathan Explosion abobader and SeNioR- 2
TBL_Alex Posted September 22, 2022 Posted September 22, 2022 @Nathan Explosion Sorry I've been busy. It's a attached audio file and it's on a chrome browser.
Nathan Explosion Posted September 22, 2022 Author Posted September 22, 2022 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)
iiioroh Posted October 8, 2022 Posted October 8, 2022 Why does the audio file appear as a video file? How to fix it? Thank you. https://primspinning.com/index.php?/topic/354-krasnoperka-s-berega/&do=findComment&comment=9220
Nathan Explosion Posted October 8, 2022 Author Posted October 8, 2022 (edited) What are your settings? I already know the answer but you providing your settings will allow me to explain it clearly for you. Edited October 8, 2022 by Nathan Explosion iiioroh 1
Nathan Explosion Posted October 8, 2022 Author Posted October 8, 2022 (edited) 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 October 8, 2022 by Nathan Explosion sobrenome, iiioroh and abobader 2 1
Nathan Explosion Posted March 10, 2023 Author Posted March 10, 2023 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. SeNioR-, iiioroh and abobader 3
sychn Posted August 24, 2023 Posted August 24, 2023 (edited) 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 August 24, 2023 by sychn
Nathan Explosion Posted August 24, 2023 Author Posted August 24, 2023 Dude - it's the same detail you've provided in PM; you've not elaborated at all as requested. Check your PM please.
Recommended Posts