Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
qv_testing
Specialist II
Specialist 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
tresesco
MVP
MVP

qv_testing
Specialist II
Specialist II
Author

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

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';