Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

download plugin


i was wondering if it be possible to add a download plugin so customer can download the video from the stream screen tx

31 Community Answers

Ethan Feldman

JW Player Support Agent  
-1 rated :

We have something you can use – http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/18559/download-plugin

JW Player

User  
2 rated :

@Ethan, really useful plugin.
Is that possible also with Playlist?.

Ethan Feldman

JW Player Support Agent  
0 rated :

Not sure…

JW Player

User  
-2 rated :

@Ethan, Please try to create one! Its really useful and this is exactly what I'm looking for.

Can't waiting to use jw player 5.0+

Thanks for Replay :)

Ethan Feldman

JW Player Support Agent  
1 rated :

You should try this plugin out and see if it suits your needs ;)

JW Player

User  
0 rated :

@Ethan, Bro I am OK with look but the problem is when I'm using Play-list (XML File), it uses the link (location) that I gave for Preview not (info) the link that given for Download :(

This is my Play-list Example:

bc.. <playlist version="1" xmlns="http://xspf.org/ns/0/">
<title>Play-list Example</title>
<info>http://www.bengaltiger.ucoz.com/</info>
<tracklist>
<track>
<title>track 1</title>
<annotation>artist</annotation>
<image>http://www.site.com/image.jpg</image>
<info>http://www.anysite.com/mp3/lds_uy7/</info>
<location>http://www.site.com/track1.mp3</location>
<meta rel="type">sound</meta>
</track>
<track>
<title>track 2</title>
<annotation>artist</annotation>
<image>http://www.site.com/image.jpg</image>
<info>http://www.anysite.com/mp3/hkj-h7/</info>
<location>http://www.site.com/track2.mp3</location>
<meta rel="type">sound</meta>
</track>
</tracklist>
</playlist>


any solution man?..

Ethan Feldman

JW Player Support Agent  
0 rated :

Any link man?

JW Player

User  
0 rated :

yea i have one please visit this->> http://tinyurl.com/754opju

JW Player

User  
0 rated :

@Ethan, One more question, the 'Download Plugin' work with JW Embedder only? Or it can be embed with SWFObject 2.2 & HTML OBJECT Embedding also?

Ethan Feldman

JW Player Support Agent  
0 rated :

This plugin only works with the JW Embedder, as it is a JavaScript plugin.

Your link works fine, it brings me to download the mp3 file via QuickTime in my browser.

JW Player

User  
0 rated :

Thank you Ethan
I was looking for your replay.

This link is not a direct link 'http://www.anysite.com/mp3/hkj-h7/'
Its a link where user go for download like this->> http://www.mediafire.com/?u4jz1tojy4jq2u4

So, it shouldn't brings you to download the mp3 file via QuickTime'
It should have gone to another link that I give for download users

I want people to go to this link:
http://www.mediafire.com/?u4jz1tojy4jq2u4

Not in this link:
http://www.site.com/track1.mp3

To do that Plugin should go to the link that in <info> </info>
not the link that in <location> </location>

Another question : how to make it open in a new Tab or new window?

JW Player

User  
0 rated :

*****It should have gone to another link that I give for user's download****


Ethan Feldman

JW Player Support Agent  
0 rated :

Look at the demo again – http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/18559/download-plugin

There is a variable called “downloadlink”, which you need to set. ;)

JW Player

User  
0 rated :

Bro are you telling me to replace <info> with <downloadlink>?
I'm not getting it, the playlist that created in that Demo page is with JW Embedder code and I created a xml file with XSPF code so?
I am confused.

And what about the question 'open in a new Tab or new Window?'

Ethan Feldman

JW Player Support Agent  
0 rated :

You need to add downloadlink for each item, is what I am saying, bro.

JW Player

User  
0 rated :

Where should I add downloadlink in XML file?..

Can you show me an example?
Like where should I add downloadlink for item 1, 2 or track 3 that in Playlist.xml file Bro?

JW Player

User  
1 rated :

OK I got it :)
I have to replace <info> with <downloadlink> its working :D

New question:
How to keep always Download Logo at the top, I mean it shows up only when muse over of the player or when player not playing.
But I like to keep it always show at the top.

And please tell me how to make it open in NEW window/Tab? its awful to jump in same window for download link every time for each item.

Ethan Feldman

JW Player Support Agent  
1 rated :

Glad you got it.

This plugin uses document.location (in JS).

var goDownload = function() {
        var item = player.getPlaylistItem();
        if(item['download.link']) {
            document.location = item['downloadlink'];
        } else if(config.link) { 
            document.location = config.link;
        } else {
            document.location = item.file;
        }
    };



To change this to be a new window, try:
var goDownload = function() {
        var item = player.getPlaylistItem();
        if(item['download.link']) {
            window.open(item['downloadlink']);
        } else if(config.link) { 
            window.open(config.link);
        } else {
            window.open(item.file);
        }
    };



I think that should work.

JW Player

User  
0 rated :

:) You thinking is right, its working! 'open in new window'

One lest question:
How to keep always Download Logo at the top? I mean its shows up only when we mouse over at the player or when player not playing.
But I like to keep it always show up at the top, and if possible it will be much better if we can add it into the Control bar.

Ethan Feldman

JW Player Support Agent  
0 rated :

Great! :)

That is the default of the “dock” icon, it will fade.

It is not possible to move this icon to the controlbar, it only works in the dock.

JW Player

User  
-2 rated :

Hmmmm!

Will thanks for all your help Ethan :)

JW Player

User  
0 rated :

Sorry 'Well'
:P

Ethan Feldman

JW Player Support Agent  
0 rated :

Np ;) :P :)

JW Player

User  
0 rated :

can the download link be automatically changed while a video is played?
actually i am using phpmotion with jw player and just want to enable downloading of videos.
so putting the download link in each video is not possible.

Ethan Feldman

JW Player Support Agent  
0 rated :

Probably if you modify the plugin to pull the file or something…

JW Player

User  
0 rated :

can u please help me somehow,
if there's an option of downloading in the click menu,or other button like the download plugin it would be great.
and like youtube why cant we change the quality settings, i mean 240p,360p,720,etc in jw?
thanx.

Ethan Feldman

JW Player Support Agent  
0 rated :

I can’t , because I can’t help you make / modify a plugin. We are going to add that dropdown menu in a future version anyways.

JW Player

User  
0 rated :

Hi,

I would like that visitors can really download the media file (the same set in <downloadlink>) directly in their computer, by this plugin.

Maybe with .php or others but I don't know if there is a solution.

Thanks in advance for your help.

Herv.

Ethan Feldman

JW Player Support Agent  
1 rated :

You can download the plugin from – http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/18559/download-plugin, and modify it as you see fit.

JW Player

User  
-1 rated :

Many thanks Ethan but in fact, when I click on the "download button" who appears in the dock, a new open opens and the "dowloadlink file" plays.

I would to have directly the file in my computer.

Is there a solution (by php or others...) ?

Many thanks in advance.

Herv.

Here the website: http://www.hervelacroix.com/voixoff.php

And my codes:
bc.. <div id="container"></div>
<script type="text/javascript">
jwplayer("container").setup({
"flashplayer": "../new/jwplayer/player.swf",
"modes": [
{type: "html5"},
{type: "flash", src: "../new/jwplayer/player.swf"},
{type: 'download'}
],
"skin": "/new/jwplayer/skin/facebook/facebook.xml",
"skin": "/new/jwplayer/skin/facebook.zip",
"width": "1000",
"height": "500",
"playlist.position": "right",
"playlist.size": "320",
"autostart": "true",
"playlist": [

{
"file": "/new/video/signal.m4v",
"image": "/new/video/thumbs/signal.jpg",
"downloadlink": "/new/sound/Institutionnel/signal-herve_tel_0628078539.mp3",
"title": "Voix: naturel",
"description": "Signal Sensitive Expert. <br>Film institutionnel"
},
{
"file": "/new/video/bosh.m4v",
"image": "/new/video/thumbs/bosh.jpg",
"downloadlink": "/new/video/bosh.m4v",
"title": "Voix: complice",
"description": "Bosh Ixo. <br>Pub TV"
},
{
"file": "/new/video/sherlock.mov",
"image": "/new/video/thumbs/sherlock.jpg",
"downloadlink": "/new/video/sherlock.mov",
"title": "Voix: percutante grave",
"description": "Sherlock Holmes jeu d ombres. <br>Pub DVD"
},
{
"file": "/new/video/toujoursplushaut.mov",
"image": "/new/video/thumbs/toujoursplushaut.jpg",
"downloadlink": "/new/sound/BandeAnnonce/toujoursplushaut-herve_tel_0628078539.mp3",
"title": "Voix: sensible",
"description": "Toujours plus haut.<br>National Geographic Channel <br>Bande annonce TV"
},
{
"file": "http://www.youtube.com/watch?v=1W7GJF7dKgg",
"downloadlink": "/new/video/rite.mov",
"title": "Voix: grave.",
"description": "Le Rite.<br>Pub DVD en YouTube"
}
],
repeat: "list",
plugins: {
"../new/jwplayer/download.js": {}
},
});
</script>



And the download.js:
bc.. (function(jwplayer){

var template = function(player, div, config) {

var assets = {
download: "http://www.longtailvideo.com/sites/default/files/download.png"
}

var goDownload = function() {
var item = player.getPlaylistItem();
if(item['downloadlink']) {
window.open(item['downloadlink']);
} else if(config.link) {
window.open(config.link);
} else {
window.open(item.file);
}
};

function setup(evt) {
player.getPlugin("dock").setButton(
'downloadButton',
goDownload,
assets.download
);
};
player.onReady(setup);

this.resize = function(width, height) {};
};

jwplayer().registerPlugin('download', template);

})(jwplayer);


Ethan Feldman

JW Player Support Agent  
0 rated :

No, there isn’t. If you want a solution, you have to write it.

This question has received the maximum number of answers.