The attached patch adds an API function media_add_js() which adds MediaElement JS settings and dependent JS files. It also updates README.txt with usage details.

This comes about after I tried to implement the module for a custom text field and found the documentation in README.txt confusing, ambiguous and with some minor errors. Let me know if you need more detail. I am available on IRC.

Comments

Bevan’s picture

StatusFileSize
new3.88 KB

Adds appropriate whitespace to the function-header documentation.

Bevan’s picture

Bevan’s picture

Title: API function: media_add_js() » API function: mediaelement_add_js()

Oops. I meant mediaelement_add_js(), not media_add_js().

#1132758: API function: mediaelement_render() is related.

jnettik’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

Old ticket. Closing.