I am using the latest versions of the Media module, JW Player module, and Media:Dailymotion.

When I create a new entity, I provide a URL for the video (e.g. http://www.dailymotion.com/video/xh5olh_discover-the-desert-of-wadi-rum-...)

The thumbnail is created without issue, but when I try to play it through JW Player, I get the following error:

The video could not be loaded, either because the server or network failed or because the format is not supported: http://www.dailymotion.com/video?video_id=xh5olh

What's odd to me is that the URL has somehow changed from the URL that I supplied to one that does not contain a video. I can't figure out why that would be the case. Obviously, the video does not play.

This may be related to #1313376: Video not playing, but I'm not sure.

CommentFileSizeAuthor
#2 media_dailymotion-1322112-2.patch481 bytessemiaddict

Comments

semiaddict’s picture

I'm getting the same issue.

When I call file_create_url on the uri "dailymotion://video_id/x8e2xt" I get the following result:
http://www.dailymotion.com/video?video_id=x8e2xt

The expected result would be http://www.dailymotion.com/video/x8e2xt

I can't seem to figure out where this url is being created.

semiaddict’s picture

Status: Active » Needs review
StatusFileSize
new481 bytes

After comparing with the media_vimeo module it seems the function interpolateUrl is missing in the stream wrapper.
Attached is a patch that seems to fix this.

marvil07’s picture

Status: Needs review » Fixed

Sorry for the big delay here, change added to upstream, will be releasing a new version really soon.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.