Closed (fixed)
Project:
Embed
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
14 Apr 2009 at 21:11 UTC
Updated:
9 Sep 2014 at 19:46 UTC
Jump to comment: Most recent
A common use would be for a player to be called to embed itself on the page, but the content is being streamed, rather than being loaded from a file.
Different players have different ways of receiving parameters, so this needs to be standardised within the embed module to make sure that modules interact properly.
Options
On balance using #module_data seems the best compromise, but not entirely sure.
Comments
Comment #1
Stuart Greenfield commentedSee #434724: Refactor the object element to handle type specific properties where it's proposed to set a few more "top level" properties for things like this, so streaming would be set in the property #stream.
Comment #2
Stuart Greenfield commentedCurrent code on CVS is uses a property #object_data, with keys below that to define properties of the object that aren't HTML attributes. So to indicate streaming it assumes $element['#object_data']['stream'], if present, contains a value that is the path to the stream provider. It is up to the handler to use that data to render the stream properly. See the sample FlowPlayer module for details.
Comment #3
dave reidModule is being re-purposed, see #2327977: Transfer ownership of the embed module to Dave Reid.