Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Upgrading to emfield 6.x-1.3 broke all video playback on our website due to the new support for absolute URLS.
What should be:
mms://media.mysite.com/path/to/video.wmv
Now becomes:
http://mysite.com/en/mms%3A/%252Fmedia.mysite.com/path/to/video.wmv
To fix, I changed the first line of function theme_emvideo_zzz_custom_url_embedded_video($type, $url, $width, $height, $autoplay = FALSE, $field = NULL, $item = NULL) to:
if ($url) {
Comments
Comment #1
pbowyer CreditAttribution: pbowyer commentedComment #2
soulston CreditAttribution: soulston commentedHi,
This seems to be happening for me using emfield 6.x-1.18
My url is getting changed from what's in the database, maybe a preg match issue.
I tried replacing the line in the zzz_custom_url.inc file as you said but to no avail.
My url is:
rtmp://draco.streamingwizard.com/wizard/username/filename.flv
and gets changed to:
image=%2Fdomain.com%2F&file=rtmp%3A%2F%2Fdraco.streamingwizard.com%2Fwizard%2Fusername%2Ffilename.flv&autostart=false
when I view the source. This must be something in the theme function as it is ok in the database but gets scrambled on output
Comment #3
aaron CreditAttribution: aaron commentedhmmm... see #372094: Support for RTMP streaming server for the rmtp issue. i'll have to find a better solution for the other...
Comment #4
nieuwkar CreditAttribution: nieuwkar commentedSubscribing to the URL scrambling part