Qlik Community

QlikView Extensions

Discussion Board for collaboration on QlikView Extensions.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

qv_testing
Valued Contributor II

Need Help

Hi Community,

I have one requiremnt..

Is it possible to play audio file using extension???

i have tried like this code

<html>

<body>

<audio controls>

  <source src="sample.mp3" type="audio/mpeg">

</audio>

</body>

</html>

But it showing Source error....

Any idea on this???

Thanks in Advance........

3 Replies
MVP
MVP

Re: Need Help

qv_testing
Valued Contributor II

Re: Need Help

HI Tresesco,

I have seen that extensions.... little help for me..

Actually my requirement.....

Direct we have option Document F4---> Opening Tab----> Sound we can select here..

but this option for whole application...

Suppose I have 3 sheets, i have one buttion in sheet1 and navigate to sheet3,  if i am comes to sheet3 i want to play music...

is there any option or conditions like that???

Extension Or Any layout properties...???

Not applicable

Re: Need Help

The problem comes from the URL of your mp3 file.

If this file is in the same directory of your extension, its URL should be:

/QvAjaxZfc/QvsViewClient.aspx?public=only&name=Extensions/YOUR-EXTENSION/sample.mp3

This will work in qlikview desktop but not on qlikview server. You'll have to use this javascript code to define an URL that will work for both environment:

var url  = Qva.Remote + (Qva.Remote.indexOf('?') >= 0 ? '&' : '?') + 'public=only&name=Extensions/MY-EXTENSION/sample.mp3';