I have a View displaying multiple audio fields using the SoundManager 2 display format. Unfortunately, it appears that with more than one AudioField displayed or generated within a node or view, the SoundManager 2 container is rendered, but the player functionality is not rendered. This is the code generated instead:

    	<div id="sm2-container-real" class="ui360">
	<a href="http://localhost:8082/sites/default/files/01%20American%20Dream%20Preview.mp3"></a>
    	</div>
    	<div id="sm2-container-real" class="ui360">
	<a href="http://localhost:8082/sites/default/files/04%20Bonfire%20Preview.mp3"></a>
    	</div>

Any help would be GREATLY appreciated. Thanks in advance.

Comments

willieseabrook’s picture

Soundmanager2 is broken, at least with the latest version v297a-20121104. It doesn't work in views pages. It does currently work on node pages, but based on what I have learned looking at the docs in the last couple of hours, I think this is more by chance than anything.

I have updated the support and significantly changed the way the widget is initialized. This now works on both views and nodes.

See attached patch.

willieseabrook’s picture

Status: Active » Needs review
romansta’s picture

Works!

schtink’s picture

Your patch works perfectly. Thank you.

Funksmaname’s picture

Issue summary: View changes

Thanks for the patch!

alauddin’s picture

Status: Needs review » Reviewed & tested by the community

patch tested working on the latest version - 7.x-1.0-beta8

jadwigo’s picture

Version: 7.x-1.0-beta7 » 7.x-1.0
Status: Reviewed & tested by the community » Active

it looks like this patch was not integrated in version 1.0

daniel.moberly’s picture

Status: Active » Fixed

This is fixed in latest dev

Status: Fixed » Closed (fixed)

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