Opened 10 years ago
Last modified 5 years ago
#31419 new enhancement
Vimeo and YouTube video cannot be inserted into a playlist
Reported by: | Fab1en | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Media | Keywords: | needs-patch 2nd-opinion |
Focuses: | Cc: |
Description
Now that the video playlist feature is working well in core, it could be great to think about supporting Vimeo and YouTube videos inside playlist.
For the record, YouTube videos can be played with the MediaElementJS player with this shortcode :
[video src="http://youtu.be/_YbVJoMYwJ0"]
I would like to introduce the possibility to play this video inside a playlist:
[playlist type="video" srcs="http://youtu.be/_YbVJoMYwJ0,http://youtu.be/Fn1iMmSvvhQ"]
Now, there are some challenges :
- Playlist are managed by selecting attachment form the Media library, along with their meta data (title, poster, ...). How to provide meta data for external videos ?
- MediaElementJS does not build the player in the same way when a YouTube video is embeded, so switching between videos does not rely on the same API, and switching between YouTube and mp4 videos is not possible
The first concern could be addressed by registering an attachment post in the database that links to a YouTube URL instead of a video located in the uploads folder.
Change History (3)
Note: See
TracTickets for help on using
tickets.
What *could* happen here:
video/youtube
orvideo/vimeo
post_meta
Then, the playlist could work as per usual, just with the attachment IDs representing these new type of attachments that don't actually produce uploads.
I have not fleshed this out, I have no idea how this will happen.