By not using drupal_http_request() by default, we can support more remote schemes like rtmp:// and rtsp:// using cURL with drupal_http_request() as a fallback.

Comments

markwk’s picture

Hi Dave Reid, thanks for your great work in the Drupal community. Any update on this? Perhaps you can help guide me on how this might be implemented.

ann b’s picture

Issue summary: View changes

If this feature is implemented, would mms:// be supported as well?

I checked the remote_stream_wrapper.module code and saw that the valid_url(...) function is being called, and the function only accepts the ftp, http, https, and feed protocols. If I should code my own work-around, can you let me know what needs to be done or where to start? Thank you.

alexminer’s picture

I am using this module for one of my sites, and needed a quick solution to this. I've written a patch that adds RTMP support by adding a function based off of valid_url() but with added Regex pattern support for the RTMP protocol. I haven't had the chance to write in anything using cURL to verify the stream's existence yet, but figured I'd still toss this up here in case it's of use to anyone else seeking to add RTMP functionality quickly. For my use case, I only needed RTMP, not RTSP, so unfortunately that's all that's contained in this patch, but it wouldn't be difficult to add RTSP support as well.