Closed (fixed)
Project:
Embed
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
13 Apr 2009 at 20:31 UTC
Updated:
9 Sep 2014 at 19:46 UTC
Jump to comment: Most recent
The concept of this module is to let it handle content that is coming from an (undefined) creator and turn it in to something meaningful. To test this concept we need to hack some existing modules to prove it works.
E.g.
Comments
Comment #1
Stuart Greenfield commentedI think this is fairly straightforward. It needs more testing but I have audio module outputting in to the embed module, so we can embed content straight on the page, or in FlowPlayer.
All that was necessary was to register embed as an audio player with the audio module, register the theme, and inside the theme build an audio object.
So
This seems to suggest that we have a viable model here - audio.module knows nothing about FlowPlayer, but it can now use it. Instead of someone having to write an audio specific version of FlowPlayer we can access a generic FlowPlayer module. And the audio module now doesn't have to implement flash embedding (out of interest, it uses direct embedding).
As a minimum it would seem feasible that modules could at least offer the option to support the embed interface.
Some more testing is needed. In particular FlowPlayer doesn't seem to like urls of the form audio/play/nn - it says it can't find the stream. Direct embedding works ok so this might be a FlowPlayer glitch. For now we can use url_download instead.
Comment #2
Stuart Greenfield commentedOK - the FlowPlayer issue is that it tries to determine the clip type from the extension of the file and audio/play/nn doesn't have an extension.
You can fix this by forcing the type using what appears to be an undocumented feature in FlowPlayer3 where you can set the clip type explicity, using 'type' => 'mp3'. There's a page for FlowPlayer2 at http://flowplayer.org/v2/player/playlists.html#filetypes.
I tried that locally and now it works.
This would affect anything that calls FlowPlayer - not just embed, so I think the embed_flowplayer module needs to see if there's an extension on the file, and if there isn't then try to guess the type.
For reference, inside
ClipType.asComment #3
Stuart Greenfield commentedIssue with FlowPlayer now fixed - added a function to check if the url has an extension, and if it doesn't then the type is set according to mime type. FlowPlayer is now working nicely with audio module.
I added an early version of 1PixelOut to embed tonight. This is already supported natively in audio.module, but with it assigned in embed module you can use the version via embed.
Again, this seems to suggest we're going in the right direction - this module might let us build a really good set of player modules and use these for all applications that need player support.
Comment #4
dave reidModule is being re-purposed, see #2327977: Transfer ownership of the embed module to Dave Reid.