User Tools

Site Tools


res:plugins:audiovideoplayer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
res:plugins:audiovideoplayer [2019/12/31 22:08] arvidres:plugins:audiovideoplayer [2024/02/17 20:44] (current) – fixed headline level arvid
Line 6: Line 6:
 The plugin is licensed under GPL. The plugin is licensed under GPL.
  
-Author: [[http://arvidzimmermann.de|Arvid Zimmermann]]+Author: [[https://www.arvidzimmermann.de|Arvid Zimmermann]] 
 + 
 +=== Download === 
 +{{ :res:plugins:arvid:audiovideo1.0.2.zip |}}
  
 === Usage examples === === Usage examples ===
-  * Simple audio player: <code>[audioplayer="attachs/file.mp3"]</code> +  * Simple audio player: <code>[audioplayer=attachs/file.mp3]</code> 
-  * Simple video player: <code>[videoplayer="attachs/file.mp4"]</code>+  * Audio player with additional options: <code>[audioplayer=attachs/file.mp3 controls="0" autoplay="1" loop="1"]</code> 
 + 
 +  * Simple video player: <code>[videoplayer=attachs/file.mp4]</code> 
 +  * Video player with additional options: <code>[videoplayer=attachs/file.mp4 controls="0" autoplay="1" loop="1" width="640" height="480" poster="images/posterimage.jpg"]</code> 
 + 
 +=== Parameters === 
 +Each of the following parameters is optional. If not set, the default value will be used. 
 +For boolean parameters, the following values count as "true": //true//, //1//, //yes//, //ja//, //si//. 
 + 
 +== Both audio and video == 
 +  * controls: Show control elements of the player (default is yes) 
 +  * autoplay: Start playing immediately (default is no) 
 +  * loop: Play in endless loop (default is no) 
 + 
 + 
 +== Video only == 
 +  * width: The width of the video's display area (default is the width of the video itself) 
 +  * height: The height of the video's display area (default is the height of the video itself) 
 +  * poster: The poster frame image to show until the user plays or seeks (default is the video's first frame). Must be an uploaded image file. 
  
-=== Download and Description === +=== HTML+CSS === 
-[[https://www.arvidzimmermann.de/index.php?cat=FlatPress-Plugins&page=Audio-%20und%20Videoplayer&i18n=en|Documentation and download at arvidzimmermann.de]]+The player will be displayed as <audio> <video> element with the CSS class "audiovideo"See the documentation of these standard HTML5 elements for further details. 
 +The given parameters (see above) will be set to the player element accordingly.
  
 +=== Development ===
 +Feel free to send Pull Requests on Codeberg: https://codeberg.org/azett/flatpress_audiovideo
  
 +=== Changelog ===
 +== 2022-10-11: Version 1.0.2 ==
 +  * Bugfix: Fixed some PHP warnings. 
 +== 2020-12-19: Version 1.0.1 ==
 +  * Bugfix: initializePluginTags() has to be public static. 
 +== 2017-08-12: Version 1.0 ==
 +  * Initial plugin version.
res/plugins/audiovideoplayer.1577826514.txt.gz · Last modified: 2019/12/31 22:08 by arvid

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki