Giter VIP home page Giter VIP logo

audio-preview's Introduction

Audio Preview

This simple module allows to preview an audio file from file picker. LibWrapper is required. image

Features

  • Add a Play button next to selected file name in file picker
  • Set playback volume
  • Support loop mode
  • Support MP3, WAV, OGG, FLAC and WEBM

audio-preview's People

Contributors

miahnelah avatar

Watchers

 avatar

audio-preview's Issues

Module is incompatible with foundry v12

The play button does not appear in the file explorer.


Find information about this module here: https://github.com/MiahNelah/audio-preview

Ask the community for support:
- FoundryVTT Discord's #modules-troubleshooting channel: https://discord.gg/foundryvtt
- FoundryVTT Reddit: https://www.reddit.com/r/FoundryVTT

== Technical Details:
Detected by libWrapper.
Package ID= audio-preview
Error= Can't wrap 'FilePicker.prototype._onPick', target does not exist or could not be found.

    at new 🎁constructor (libWrapper-wrapper.js:111:11)
    at libWrapper-api.js:82:18
    at de (libWrapper-api.js:155:9)
    at 🎁register [as register] (libWrapper-api.js:525:14)
    at Object.fn (audio-preview.js:123:16)
    at #call (foundry.js:608:20)
    at Hooks.callAll (foundry.js:565:17)
    at Game.initialize (foundry.js:8885:11)
    at 🎁call_wrapped [as call_wrapped] (libWrapper-wrapper.js:507:22)
    at 🎁libWrapperInit (libWrapper-api.js:805:11)
🎁constructor @ libWrapper-wrapper.js:111
(анонимный) @ libWrapper-api.js:82
de @ libWrapper-api.js:155
🎁register @ libWrapper-api.js:525
(анонимный) @ audio-preview.js:123
#call @ foundry.js:608
callAll @ foundry.js:565
initialize @ foundry.js:8885
🎁call_wrapped @ libWrapper-wrapper.js:507
🎁libWrapperInit @ libWrapper-api.js:805
await in 🎁libWrapperInit (асинхронно)
🎁Game.prototype.initialize#0 @ libWrapper-wrapper.js:187
window.addEventListener.once @ foundry.js:95263
foundry.js:7621 Foundry VTT | Loaded localization file modules/audio-preview/module/languages/en.json
foundry.js:71330  Audio Preview: Error detected in module. It is likely this module has not been updated for FVTT Version 12 Stable. (See JS Console)
fetch @ foundry.js:71330
notify @ foundry.js:71226
🎁call_wrapped @ libWrapper-wrapper.js:507
notificationNotify @ utils.js:4999
🎁call_wrapper @ libWrapper-wrapper.js:616
🎁Notifications.prototype.notify#0 @ libWrapper-wrapper.js:189
error @ foundry.js:71263
🎁_ui @ libWrapper-notifications.js:74
#call @ foundry.js:608
callAll @ foundry.js:565
setupGame @ foundry.js:9000
await in setupGame (асинхронно)
_initializeGameView @ foundry.js:10310
_initializeView @ foundry.js:10286
initialize @ foundry.js:8900
await in initialize (асинхронно)
🎁call_wrapped @ libWrapper-wrapper.js:507
🎁libWrapperInit @ libWrapper-api.js:805
await in 🎁libWrapperInit (асинхронно)
🎁Game.prototype.initialize#0 @ libWrapper-wrapper.js:187
window.addEventListener.once @ foundry.js:95263

Should this show video previews for .webm?

I know the name of the module is AUDIO Preview but it says it supports .webm. Should video previews be working in the file browser?

Below is a screenshot of me trying to add an animated .webm tile.

image

Preview Ceases to Play After Ambient Sound Object is Saved

Chrome v121.0.6167.86 (Official Build) (64-bit)
Foundry VTT v11.315
DnD5e - Fifth Edition System v2.3.1

Modules Active:

  • Audio Preview v1.2 (latest version)

  • libwrapper v1.12.13.0 (latest version)

  • Audio Preview is disabled.

  • Set down an Ambient Sound Object.

  • Click 'Source File Path' button.

  • Browse to an audio file and select it from the list.

  • Click the preview button to preview the sound (tested with ogg and wav).

  • Click 'Select File' before the preview ends.

  • Click 'Update Ambient Sound'.

  • If the sound duration is long enough, it will continue to play after saving.

Clicking outside the sound area or clicking a token will not stop the preview sound. The preview sound will end on it's own eventually. Refreshing the page fixes the issue. The expection I would have is that the sound preview would end when 'Select File' is clicked.

[error] Invalid language definition in Package audio-preview

Server log:

[error] Invalid language definition in Package audio-preview: Language JSON path module/languages/en.json does not exist
[error] Invalid language definition in Package audio-preview: Language JSON path module/languages/fr.json does not exist

FVTT: 0.8.9
DND5e: 1,4,2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.