Insert a media conponent in a dialog(Primefaces 5.0)

UI Components for JSF
Post Reply
odsa84
Posts: 9
Joined: 29 Dec 2014, 22:30

17 Jan 2015, 00:23

Hello I'm trying to open a dialog with a media componet inside I'm using primefaces5.0, this is what I trying to do:

Code: Select all

<p:dialog header="Dialog" widgetVar="mp3Modal" height="100">
		<p:media value="#{guiBusquedaBienes.mp3Url}" height="20" player="quicktime">
		             <f:param name="autoPlay" value="false" />
		</p:media>
</p:dialog>
The dialog show up when I click the link but it's empty inside, the property "mp3Url" has the url of the mp3 file to reproduce he's in my local machine "E:/archivo/muebles/5408084.mp3"

Thanks in advance.

odsa84
Posts: 9
Joined: 29 Dec 2014, 22:30

17 Jan 2015, 00:54

Hello again, the problem seems to be the url parameter in the property "mp3Url" I put the same url that has the primefaces showcase this one "http://www.stephaniequinn.com/Music/Moz ... Presto.mp3" and when I load the page begin to reproduce the mp3 audio file... But I have another problem I don't want it begin to reproduce the audio file when I load the page, just when I click the link and show de dialog, I don't care if I have to click again in the start button after load the dialog.
Thanks in advance.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 53 guests