frankyghost / projekktor

The Free Web Video Player
194 stars 75 forks source link

Share plugin #38

Open jarodium opened 10 years ago

jarodium commented 10 years ago

Hello there

I would like to ask some help on what it must be done to make the share links set properly. I have followed the link at http://www.projekktor.com/board/index.php?id=22629 and ended like the code below:

shareTIT = "Televisão do Sul - "+$(this).children("img").attr("alt");          
shareURL = BASE+"video/"+cp;

playlist = [{
    0:{src:VBASE+'ad.mp4', type: 'video/mp4'},    
        config: {
            disablePause: true,
            disallowSkip: true              
       }
},
{
        0:{src:VBASE+cp+'.mp4', type: 'video/mp4'},
    config : {
        plugin_share : {
            links: {
                'twitter': {
                         code: '<'+'if'+'rame id="%{embedid}" src="http://twitter.com/share?url='+shareURL+'&text='+shareTIT+'" width="640" height="385" frameborder="0"><'+'/if'+'rame>',
                                }                               
                            }
                        }   
                    }
                } 
            ];

I always end with 'I found a cool HTML5 video player. Check this out: http://www.projekktor.com via @projekktor' when sharing with twitter

Thank you in advance.

Best regards Pedro