Ultimatel Freestyle
click to rate
10
Videos
0
Photos
577
Views
1
Like
0
Comments
1
Favourite
0
Followers
Webcam.set({
width: 320,
height: 240,
image_format:'jpeg',
jpeg_quality: 90
});
Webcam.attach('#sesvideo_camera');
});
function take_snapshot() {
// take snapshot and get image data
Webcam.snap(function(data_uri) {
Webcam.reset();
scriptJquery('#sesvideo_popup_cam_upload').hide();
scriptJquery('#sesvideo_cover_photo_loading').show();
// upload results
Webcam.upload( data_uri, en4.core.baseUrl+'sesvideo/chanel/edit-coverphoto/chanel_id/5' , function(code, text) {
text = JSON.parse(text);
if(text.status == 'true'){
if(text.src != ''){
scriptJquery('#sesvideo_cover_id').css('background-image', 'url(' + text.src + ')');
scriptJquery('#sesvideo_cover_default').hide();
scriptJquery('#uploadCoverPhoto').html('
'+en4.core.language.translate('Change Cover Photo'));
scriptJquery('#removeCover').css('display','block');
}
}
scriptJquery('#sesvideo_cover_photo_loading').hide();
} );
});
}
scriptJquery('#removeCover').click(function(){
scriptJquery(this).css('display','none');
scriptJquery('#sesvideo_cover_id').css('background-image', 'url()');
scriptJquery('#sesvideo_cover_default').show();
var chanel_id = '5';
uploadURL = en4.core.baseUrl+'sesvideo/chanel/remove-cover/chanel_id/'+chanel_id;
var jqXHR=scriptJquery.ajax({
url: uploadURL,
type: "POST",
contentType:false,
processData: false,
cache: false,
success: function(response){
scriptJquery('#uploadCoverPhoto').html('
'+en4.core.language.translate('Add Cover Photo'));
//silence
}
});
});
function hideProfilePhotoUpload(){
if(typeof Webcam != 'undefined')
Webcam.reset();
canPaginatePageNumber = 1;
scriptJquery('#sesvideo_popup_cam_upload').hide();
scriptJquery('#sesvideo_popup_existing_upload').hide();
if(typeof Webcam != 'undefined'){
scriptJquery('.slimScrollDiv').remove();
scriptJquery('.sesvideo_photo_update_popup_content').html('
');
}
}
scriptJquery(document).click(function(event){
if(event.target.id == 'change_profile_txt' || event.target.id == 'cover_change_btn_i' || event.target.id == 'cover_change_btn'){
if(scriptJquery('#sesvideo_cover_change').hasClass('active'))
scriptJquery('#sesvideo_cover_change').removeClass('active')
else
scriptJquery('#sesvideo_cover_change').addClass('active')
}else{
scriptJquery('#sesvideo_cover_change').removeClass('active')
}
});
-->