Logo on IPTV Channels

2,575 views
Skip to first unread message

ethnicTV

unread,
Nov 30, 2012, 11:09:35 AM11/30/12
to stalker-m...@googlegroups.com
All,
Just wondering the function of upload logo when adding the IPTV Channels. I looked at the STB and did not see this logo.
Is this a bug? 

Thanks for the help.



Aleksey Zhurbitsky

unread,
Dec 1, 2012, 5:34:49 AM12/1/12
to Stalker Middleware on behalf of JDVU

Logos are not displayed on the STB. They are used only for API.

30.11.2012 18:09 пользователь "ethnicTV, Stalker Middleware" <stalker-middleware+noreply-APn2w...@googlegroups.com> написал:
--
Вы получили это сообщение, поскольку подписаны на группу Stalker Middleware.
 
Чтобы добавлять сообщения в эту группу, отправьте письмо по адресу stalker-m...@googlegroups.com.
Чтобы отменить подписку на эту группу, отправьте сообщение по адресу stalker-middlew...@googlegroups.com.
Просмотреть это обсуждение в Сети можно по адресу https://groups.google.com/d/msg/stalker-middleware/-/j8oC3QTwnL4J.
Подробнее о функциях можно узнать на странице https://groups.google.com/groups/opt_out.
 
 

orioni

unread,
May 13, 2013, 3:20:51 PM5/13/13
to stalker-m...@googlegroups.com
hi to all 
first congrats on the middleware 

2nd , i  had the same requirements as ethnicTV so i modified some files to show the logo of each channel on the status bar (the bar that shows when you`re on a channel and press INFO on the remote ) 

here is how to do it 

on the file  /stalker_portal/c/player.js 

find the line 
this.info.title = create_block_element("osd_info_title", this.info['dom_obj']);

add below it this 
//orioni ... add channel logo when INFO is pressed
this.info.logoKanali = create_block_element("osd_info_logo_kanali", this.info['dom_obj']);


on the same file , inside the function player.prototype.show_info = function(item){

find the line that has 

    if (osd_title_match){
        title
= decodeURIComponent(osd_title_match[1].replace(/\+/g, '%20'));
   
}

and after that, but before try { add this 

 //orioni show logo on  status bar when inside a channel and INFO is pressed  START
 
if (item.hasOwnProperty('logo')){
 
 
if (item.logo!=''){
 
//display channel logo
 
this.info.logoKanali.innerHTML ='<img src="http://'+ stb.portal_ip +'/'+ stb.portal_path  +'/misc/logos/320/' + item.logo + '">';  
 
}else{
 
//display a default logo
 
this.info.logoKanali.innerHTML ='<img src="http://'+ stb.portal_ip +'/'+ stb.portal_path  +'/misc/logos/ska_logo_kanali.png">';
 
 
}
 
}
   
//orioni show logo on  status bar when inside a channel and INFO is pressed  ENDS


on the respective CSS files ( in this case for 720p ) located at  /stalker_portal/c/layer.list_720.css add the following declaration 

div.osd_info_logo_kanali{
   
float: right;
    margin
-right: 100px;
    position
: relative;
}



thats all 
here is how it shows on a channel with a logo set 


here is the default logo  that shows when a channel doesnt has a logo set from the middleware interface ( the text is an image itself saying "NO LOGO") 


    hope you`ll find it useful

bye

AL Firansi

unread,
May 14, 2013, 10:19:41 AM5/14/13
to stalker-m...@googlegroups.com
Very good job Orioni
thank you very much for sharing this great info 
cheers mate

AL Firansi

unread,
May 14, 2013, 10:56:07 AM5/14/13
to stalker-m...@googlegroups.com
Hi Orioni,
could you tell us the logo size in px
I have noticed that you have created a folder called /320 to store all logos so i created same folder but was wondering what is the max size of each logo
cheers



On Monday, 13 May 2013 20:20:51 UTC+1, orioni wrote:

orioni

unread,
May 14, 2013, 11:13:13 AM5/14/13
to stalker-m...@googlegroups.com
the "320" folder is created automatically when you set a logo for the channel 
also other folders are created like "240" 

as for logo size , those are auto resized , and for the "320" its  a 96x96 pixel

in order to not have distortion/stretching of the logo , i created a 96x96 image in photoshop and then uploaded that logo from the middleware channel logo interface 

French Team

unread,
May 14, 2013, 11:55:56 AM5/14/13
to Stalker Middleware on behalf of orioni
thanks for your quick reply Orioni,
I don't know what I did wrong but cant see any logo
so I'm gonna resize one in png and see what will happen



Le 14/05/2013 16:13, orioni, Stalker Middleware a écritО©╫:
the "320" folder is created automatically when you set a logo for the channelО©╫
also other folders are created like "240"О©╫

as for logo size , those are auto resized , and for the "320" its О©╫a 96x96 pixel

in order to not have distortion/stretching of the logo , i created a 96x96 image in photoshop and then uploaded that logo from the middleware channel logo interfaceО©╫


On Tuesday, May 14, 2013 4:56:07 PM UTC+2, AL Firansi wrote:
Hi Orioni,
could you tell us the logo size in px
I have noticed that you have created a folder called /320 to store all logos so i created same folder but was wondering what is the max size of each logo
cheers


On Monday, 13 May 2013 20:20:51 UTC+1, orioni wrote:
hi to allО©╫
first congrats on the middlewareО©╫

2nd , i О©╫had the same requirements as ethnicTV so i modified some files to show the logo of each channel on the status bar (the bar that shows when you`re on a channel and press INFO on the remote )О©╫

here is how to do itО©╫

on the file О©╫/stalker_portal/c/player.jsО©╫

find the lineО©╫
this.info.title = create_block_element("osd_info_title", this.info['dom_obj']);

add below it thisО©╫
//orioni ... add channel logo when INFO is pressed
this.info.logoKanali = create_block_element("osd_info_logo_kanali", this.info['dom_obj']);


on the same file , inside the functionО©╫player.prototype.show_info = function(item){

find the line that hasО©╫

О©╫ О©╫ if (osd_title_match){
О©╫ О©╫ О©╫ О©╫ title
= decodeURIComponent(osd_title_match[1].replace(/\+/g, '%20'));
О©╫ О©╫
}

and after that, but before try { add thisО©╫

О©╫//orioni show logo on О©╫status bar when inside a channel and INFO is pressed О©╫START
О©╫
if (item.hasOwnProperty('logo')){
О©╫
О©╫
if (item.logo!=''){
О©╫
//display channel logo
О©╫
this.info.logoKanali.innerHTML ='<img src="http://'+ stb.portal_ip +'/'+ stb.portal_path О©╫+'/misc/logos/320/' + item.logo + '">'; О©╫
О©╫
}else{
О©╫
//display a default logo
О©╫
this.info.logoKanali.innerHTML ='<img src="http://'+ stb.portal_ip +'/'+ stb.portal_path О©╫+'/misc/logos/ska_logo_kanali.png">';
О©╫
О©╫
}
О©╫
}
О©╫ О©╫
//orioni show logo on О©╫status bar when inside a channel and INFO is pressed О©╫ENDS


on the respective CSS files ( in this case for 720p ) located at О©╫/stalker_portal/c/layer.list_720.cssО©╫add the following declarationО©╫

div.osd_info_logo_kanali{
О©╫ О©╫
float: right;
О©╫ О©╫ margin
-right: 100px;
О©╫ О©╫ position
: relative;
}



thats allО©╫
here is how it shows on a channel with a logo setО©╫


here is the default logo О©╫that shows when a channel doesnt has a logo set from the middleware interface ( the text is an image itself saying "NO LOGO")О©╫


О©╫ О©╫ hope you`ll find it useful

bye


On Friday, November 30, 2012 5:09:35 PM UTC+1, ethnicTV wrote:
All,
Just wondering the function of upload logoО©╫whenО©╫adding the IPTV Channels. I looked at the STB and did not see this logo.
Is this a bug?О©╫

Thanks for the help.



--
О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫, О©╫О©╫О©╫ О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ "Stalker Middleware".
О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫ О©╫О©╫О©╫О©╫, О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ https://groups.google.com/d/topic/stalker-middleware/AZOJmeYpi7M/unsubscribe?hl=ru.
О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ О©╫ О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫ О©╫О©╫О©╫ О©╫О©╫О©╫О©╫, О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫О©╫О©╫ stalker-middlew...@googlegroups.com.
О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫ О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫, О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ stalker-m...@googlegroups.com.
О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫ О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ https://groups.google.com/d/msgid/stalker-middleware/1a75c45d-59b0-46f6-81c5-5b27349f7e99%40googlegroups.com?hl=ru.
О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫: https://groups.google.com/groups/opt_out.
О©╫
О©╫

orioni

unread,
May 14, 2013, 1:35:38 PM5/14/13
to stalker-m...@googlegroups.com
dont forget to reboot the STB 
so it loads the new JS file
О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ О©╫ О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫ О©╫О©╫О©╫ О©╫О©╫О©╫О©╫, О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫О©╫О©╫ stalker-middleware+unsub...@googlegroups.com.

French Team

unread,
May 14, 2013, 3:02:45 PM5/14/13
to Stalker Middleware on behalf of orioni
yes you were right
i just rebooted and now works fine
thx Orioni
--
Вы получили это сообщение, так как подписаны на группу "Stalker Middleware".
Чтобы отказаться от подписки на эту тему, перейдите на страницу https://groups.google.com/d/topic/stalker-middleware/AZOJmeYpi7M/unsubscribe?hl=ru.
Чтобы отказаться от подписки на эту группу и все входящие в нее темы, отправьте электронное письмо на адрес stalker-middlew...@googlegroups.com.

Чтобы добавлять сообщения в эту группу, отправьте письмо по адресу stalker-m...@googlegroups.com.
Просмотреть это обсуждение в Сети можно по адресу https://groups.google.com/d/msgid/stalker-middleware/1bff1f0b-82c7-4195-98b3-1087667696c5%40googlegroups.com?hl=ru.
Настройки подписки и доставки писем: https://groups.google.com/groups/opt_out.
 
 

Milen Minev

unread,
May 14, 2013, 4:56:41 PM5/14/13
to stalker-m...@googlegroups.com
Actually this looks pretty good.

I wish those patches find a way in official distribution.

PlayinCS

unread,
May 14, 2013, 7:11:04 PM5/14/13
to stalker-m...@googlegroups.com
Great Orioni! how it works on other grapghic resolutions?

thanx

Aleksey Zhurbitsky

unread,
May 15, 2013, 3:33:04 AM5/15/13
to stalker-m...@googlegroups.com
We can add this feature as an option, which will be disabled by default.

orioni

unread,
May 16, 2013, 12:06:25 AM5/16/13
to stalker-m...@googlegroups.com
i jsut did it for 720 and presumably it will be the same file used for 1920 
for others you`ll have to check since the middleware does resize the logo for all possible resolutions  and put the files in different folders ( for 720 the file is on misc/logos/320 ) 

regards

Milen Minev

unread,
May 17, 2013, 5:40:30 PM5/17/13
to stalker-m...@googlegroups.com
It will be great. I think most ppl will enable it.

Cezar O

unread,
Jul 22, 2013, 6:25:55 AM7/22/13
to stalker-m...@googlegroups.com
This function is so great. How to fix one small bug?

When go to Movieclub or Radio channel previous logo is still show. Example, last TV channel watch ABC channel, and when go radio channels it show logo of ABC channel.

How to add code to clear it ?

Thanks to you.

Aleksey Zhurbitsky

unread,
Jul 22, 2013, 6:30:12 AM7/22/13
to stalker-m...@googlegroups.com
Thanks, we will fix it.

Aleksey Zhurbitsky

unread,
Jul 22, 2013, 6:48:10 AM7/22/13
to stalker-m...@googlegroups.com
What version of the portal are you using? Is it official patch (for channel logo)?


On Monday, July 22, 2013 1:25:55 PM UTC+3, Cezar O wrote:

Cezar O

unread,
Jul 29, 2013, 6:04:00 AM7/29/13
to stalker-m...@googlegroups.com
Hi,

It is code above in this thread from Orioni.

I not try oficial patch

Thanks.

Marcos Amador Bonilla

unread,
Jan 7, 2015, 9:13:10 AM1/7/15
to stalker-m...@googlegroups.com
he held his help. I tried to make all the changes and have failed to work.

attached files to see if I can help.



I thank you in advance what can help me



layer.list_720.css
player.js
layer.list.css
layer.list_480.css

joe nikita

unread,
Jul 3, 2016, 9:01:47 AM7/3/16
to Stalker Middleware
i'm using stalker middleware (v 5.0.1)
my logo format files png 96 96 pixels maximum 16KB and I try 96 96 pixels 1MB here my


my log error

Warning: mkdir(): Permission denied in /var/www/stalker_portal/server/administrator/add_itv.php on line 568

Fatal error: Uncaught exception 'ImagickException' with message 'unable to open image `/var/www/stalker_portal/misc/logos/320/328.jpg': No such file or directory @ error/blob.c/OpenBlob/2638' in /var/www/stalker_portal/server/administrator/add_itv.php:584 Stack trace: #0 /var/www/stalker_portal/server/administrator/add_itv.php(584): Imagick->writeimage('/var/www/stalke...') #1 /var/www/stalker_portal/server/administrator/add_itv.php(514): handle_upload_logo(Array, 328) #2 {main} thrown in /var/www/stalker_portal/server/administrator/add_itv.php on line 584

Thanks in advance

JDVU

unread,
Jul 3, 2016, 10:27:50 AM7/3/16
to Stalker Middleware
Permission denied!!!!! 
chmod -R 777 /var/www/stalker_portal/misc

воскресенье, 3 июля 2016 г., 16:01:47 UTC+3 пользователь joe nikita написал:

iptvhelp

unread,
Jul 3, 2016, 10:44:17 AM7/3/16
to Stalker Middleware
How do I upload using ftp instated of administrator panel

joe a

unread,
Jul 3, 2016, 1:31:19 PM7/3/16
to Stalker Middleware on behalf of JDVU
Thanks it works great!!


Date: Sun, 3 Jul 2016 07:27:50 -0700
From: stalker-middleware+APn2wQffQ14AR...@googlegroups.com
To: stalker-m...@googlegroups.com
Subject: Re: add Logo on IPTV Channels not working
--
Вы получили это сообщение, поскольку подписаны на одну из тем в группе "Stalker Middleware".
Чтобы отменить подписку на эту тему, перейдите по ссылке https://groups.google.com/d/topic/stalker-middleware/AZOJmeYpi7M/unsubscribe.
Чтобы отменить подписку на эту группу и все ее темы, отправьте письмо на электронный адрес stalker-middlew...@googlegroups.com.
Чтобы отправлять сообщения в эту группу, отправьте письмо на электронный адрес stalker-m...@googlegroups.com.
Чтобы посмотреть обсуждение на веб-странице, перейдите по ссылке https://groups.google.com/d/msgid/stalker-middleware/0f70d75f-e37a-4288-9336-d3a17fc95175%40googlegroups.com.
Чтобы настроить другие параметры, перейдите по ссылке https://groups.google.com/d/optout.

joe nikita

unread,
Jul 3, 2016, 4:58:40 PM7/3/16
to Stalker Middleware
Thanks it works great!!
Reply all
Reply to author
Forward
0 new messages