MUX uploads now support multiple file uploading…
Here’s some additional information.
FYI
@jj11 (details about multiple uploads)
@marcus2 (full screen events for you)
For a demo on how this works, please see:
Paul-testing-4 | Bubble Editor
The current action called Upload media to MUX works with single files. It has a couple of new options put into it that allow you to disable the file selection dialog and feed a file into it.
When the “Use file selection” option is set to Yes, you see the standard file selection dialog appear in the normal way and that will accept a single file. Although it’s possible to modify the selection dialog to accept multiple files and iterate through each one, it’s not been possible to modify the action in such a way to make a new request for the upload endpoint URL for each file. That request unfortunately needs to come from a server action for which this isn’t, and since this action also populates a number of states given information about that selected file, I didn’t want to loose any of that functionality.
What you can do is the following.
When the “Use file selection” option is set to No, you don’t see the file selection dialog appear anymore. Instead, the action will now rely on an array of files to be fed into it. These come from a new action called “Select files” and that needs to be run before hand.
See the demo above for how this works.
The Select files action allows you to select multiple files. A count of these files is populated in the “Files selected count”. Selecting 5 files will return a value of 5.
Using this number value, you can now setup a JavascriptToBubble loop.
In addition to this update, there was an incorrectly returned file size which didn’t make the “Max file size” option work correctly, this is now fixed and there are 2 new events included which fire upon entering / exiting full screen mode when a video is playing.
New details below:
EVENTS
-
A videoJSplayer entered full screen
Fired when the player enters full screen mode.
-
A videoJSplayer exited full screen
Fired when the player exits full screen mode.
-
A videoJSplayer files have been selected
Fired after files have been selected and the file selection dialog has closed when running the "Select files" action.
ACTIONS
- Select files
Opens a file dialog and allows for multiple files to be selected. Selected files are stored in memory as file objects and the state called “Files selected count” contains a count of the selected files. You should use this action when you want to pass files into the Upload media to MUX action. The state can be used within a JavascriptToBubble workflow loop.
-Max file size
Specify a maximum file size which can be uploaded in kilobytes, or leave empty to set no limit.
EXPOSED STATES
- Files selected count
Contains a count value for the number of files selected upon running the ‘Select files’ action.
Here is also a list of supported file extensions and mime types.
State called Media type can have the following values once something has been loaded in the player only.
All supported file extensions and their mime types where applicable.
Image formats
svg
jpg
jpeg
bmp
png
gif
Audio formats
mp3 - audio/mp3
wav - audio/wav
aac - audio/aac
m3u - audio/x-mpegURL
flac - audio/flac
Video formats
m3u8 - application/x-mpegURL
mpd - application/dash+xml
mov - video/mp4
mp4 - video/mp4
mkv - video.mp4 (matroska files in this plugin use the mp4 mime type as it seems more reliable!)
f4m - application/adobe-f4m
webm - video/webm
ogg - video/ogg
flv - video/flv
Other supported formats as detailed in this list and most CDN links should also play, given the correct mime type has been entered into the player, if it cannot be determined by the URL that is. Uploadcare CDN’s do work although not stated below.
- FORMATS
youtube
- http(s)://www.youtube.com/watch?v=My2FRPA3Gf8
- http(s)://youtu.be/My2FRPA3Gf8
- http(s)://youtube.googleapis.com/v/My2FRPA3Gf8
vimeo
- http(s)://vimeo.com/25451551
- http(s)://player.vimeo.com/video/25451551
wistia
- http(s)://wistia.com/medias/26sk4lmiix
- http(s)://wistia.com/embed/26sk4lmiix
- http(s)://wi.st/medias/26sk4lmiix
- http(s)://wi.st/embed/26sk4lmiix
- http(s)://fast.wistia.com/embed/iframe/26sk4lmiix
- http(s)://home.wistia.com/medias/26sk4lmiix
google drive
- http(s)://drive.google.com/file/d/1nuSYI4ibo7ee8UcF48R3-ehH1JpEmrgd/view?usp=sharing
- http(s)://drive.google.com/file/d/1nuSYI4ibo7ee8UcF48R3-ehH1JpEmrgd/preview
Wistia
using wistia player (yes) - video/wistia
using wistia player (no) - application/x-mpegURL (as m3u8)
Youtube - video/youtube
Vimeo
using vimeo player (yes) - video/vimeo
using vimeo player (no) - video/mp4