audio streaming extention with no save option? (joomla 1.0) - joomla

I need to publish a audio file that I want to make available to
* listen and
* not to download
any idea how to do it? Is there any free joomla extention plugin for that?
Something where user cannot save the audo using any webbrowser plugin like DownloadHelper etc.

The easiest way I can think of is to use the JoomlaWorks extension AllVideos. It has support for audio files and very easy to set up and use.

Related

Office JS Save text as xml file Fails

I want to ask if Office JS is allowed to save local files?
In old question/answers I found various solutions like
FileSaver.js
Download2.js
I tried both but it did not help.
Both are using the technique of embedding a download link in the HTML document dispatching the event programmatically using JS. But click event fails with error = Access is denied
I want to ask if
Office JS API is allowed to create files to local path?
if NO was it allowed in older versions?
If YES do I need to make some configuration changes on Windows 10 desktop PC?
If allowed Please help how to achieve that
I want to create an XML file using JavaScript and save it to local path
thanks

I want to know about http://en.savefrom.net/1-how-to-download-youtube-video/ how it force video to download

I need some help about how savefrom force a video to download.
go to > http://en.savefrom.net/1-how-to-download-youtube-video/
add any youtube video URL it will show you available formats
then on click it will force you to download this video ????
How this force to download??? Any logic behind this ?

Play mp3 files via HTML5 on Firefox Mac, alternatives

I need to play an mp3 file; something like
var sound = new Audio('http://.......');
snd.play();
does work in Chrome and Firefox on Windows but not in Firefox on Mac, can you confirm it is the normal behaviour?
From here:
https://bugzilla.mozilla.org/show_bug.cgi?id=799318
it seems that on Mac the feature has been just added (so probably the current release of Firefox doesn't provide it) but there are a lot of messages about and I'm a bit confused...
Is it normal that if I just put the mp3 URL in the URL bar it works?
So if you confirm that it is the normal behaviour can you tell me which are the alternatives?
1) flash fallback ?
2) convert mp3 to oog (supported by firefox) on the fly?
Can you explain how to implement both?
Thanks.
Yes that is the normal behavior. See here: https://bugzilla.mozilla.org/show_bug.cgi?id=851290
A Flash fallback would probably be easier. I'd recommend using SoundManager2 as it will provide you with a uniform API without having to worry about which codecs the browser supports.
Look into this. https://github.com/nddrylliog/jsmad#readme
It coverts it on the fly.
You can use a wrapper around the URLs you use to play audio, since different browsers support different codecs. The audio object has a canPlayType method which you can use (with understandably more verbose codec names unfortunately) to determine what type is supported by a browser. With this, you can make a function that takes a URL path and modifies the extension.
// If you wanted to provide only ogg and mp3:
function getSoundURL (url) {
var audio = document.createElement('audio');
if (!audio.canPlayType) return null;
if (audio.canPlayType('audio/ogg; codecs="vorbis"').replace(/no/, ''))
return url + '.ogg';
if (audio.canPlayType('audio/mpeg;').replace(/no/, ''))
return url + '.ogg';
return null;
}
More info on canPlayType and codecs.
There are also some tools to easily detect what types are supported, one being allen which I use frequently for audio projects. disclaimer: I made it :p
Flash alternatives would work (SoundManager2 mentioned above is good), and transcoding on the server is possible, with something like FFMPEG, depending on your server.

How to make third party magento extension compatible with store theme.

What is best way to make third party extension compatible with store theme which is not default theme. I don't want to do following:
1) We can't modify extension css/phtml file becuase this will make up-gradation of extension because in that case our extension will go away.
Thanks!
I suggest finding CSS from a standard Magento install and use that. Having the least styling possible will mean the most flexibility for the users. Also include instructions on where the file is by default and to install in their theme's template location. I believe this could be programmatically determined and be checked in the Admin area of your extension.

How to register an app as a default viewer for a file type in WP 7.5?

I'm getting quite a few emails with logs in XML format attached and I want to associate my own app with the XML file type on Windows Phone Mango, overwriting the default xml viewer.
If overwriting isn't possible I can get the logs generated with a custom extension. I would then need to associate the extension with my app same way Adobe Reader does it for PDFs.
Is this possible?
Thanks
Currently there is no way to set your app as the default viewer for any file extension. The closest you can get at the moment is using extensibility. However, these are limited to Photos, Music and Search and not custom extensions. (Even then, your app wouldn't be the default viewer, but it would be accessible from the respective hubs).

Resources