[wp-trac] [WordPress Trac] #31689: Media player not working with 302 redirects
WordPress Trac
noreply at wordpress.org
Thu Mar 19 07:28:06 UTC 2015
#31689: Media player not working with 302 redirects
--------------------------+-----------------------------
Reporter: hlashbrooke | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.1.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
When calling the audio player using `wp_audio_shortcode( array( 'src' =>
'/path/to/file' ) );` and the path in question is a 302 redirect to an
actual audio file, the audio player cannot find or play the file.
A prime example of this is with Microsoft's OneDrive - a public link to a
file stored with them looks like this:
`https://onedrive.live.com/download?resid=###`. Going to that URL ends up
in a 302 redirect to the actual file. While OneDrive may not be the best
way to store and share media files, it is still a valid use case. Plus,
this will affect any file storage where the file is accessed via a 302
redirect.
There are alternative audio players that can handle 302 redirected files,
so it's not impossible to work around the issue.
For reference, this came up in a support ticket for one of my plugins -
details here: https://wordpress.org/support/topic/direct-link-to-onedrive.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31689>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list