Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
renojim
Community Streaming Expert

Re: My Media - Your Music and Video on the Roku DVP

Themes have been supported for a while, but it's been so long that I almost forget how it's accomplished.  🙂  I've always hated the bright backgrounds, so I've been using a dark theme forever.  Try saving this to colors.xml in your "client/images" directory:
<?xml version="1.0" encoding="iso-8859-1"?>
<colors>
  <BreadcrumbTextLeft>#07B27D</BreadcrumbTextLeft>
  <BreadcrumbTextRight>#FAFAFA</BreadcrumbTextRight>
  <BreadcrumbDelimiter>#69B79F</BreadcrumbDelimiter>
  <ButtonMenuNormalText>#404040</ButtonMenuNormalText>
  <BackgroundColor>#202020</BackgroundColor>
  <TextScreenBodyBackgroundColor>#202020</TextScreenBodyBackgroundColor>
  <TextScreenBodyText>#07B27D</TextScreenBodyText>
  <TextScreenScrollBarColor>#404040</TextScreenScrollBarColor>
  <TextScreenScrollThumbColor>#07B27D</TextScreenScrollThumbColor>
</colors>


There should be various JPEGs in the "client/images" directory that you can also customize.

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
Tags (1)
0 Kudos
bblackmoor
Binge Watcher

Re: My Media - Your Music and Video on the Roku DVP

Splendid! Here are some replacement images that suite your darker theme. I added "Loop All" and "Play New", which were missing (at least, they were missing for me).

images.zip
Tags (1)
0 Kudos
renojim
Community Streaming Expert

Re: My Media - Your Music and Video on the Roku DVP

Thanks, I'll take a look. There was a "high contrast" theme created a while back that should be in the "themes" directory that you might want to look at.

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
Tags (1)
0 Kudos
bblackmoor
Binge Watcher

Re: My Media - Your Music and Video on the Roku DVP

I recently upgraded my media server to Ubuntu 18. After I did, navigation became extremely slow, but only in directories with images -- directories with nothing but videos are peppy as always. I ran these commands:

sudo apt-get install libjpeg-dev libpng-dev
sudo apt-get install python-dev
sudo apt-get install python-pil
sudo shutdown -r now

After the server rebooted, I restarted the Roku. The problem persists.

I looked at the my_media_log.txt file, but it is empty (0 bytes).

I looked at the screen session where the mymedia process is running, and when I navigate MyMedia, I see a lot of error like this:

192.168.1.120:34320 - - [08/Dec/2018 09:57:15] "HTTP/1.1 GET /media" - 500 Internal Server Error
Traceback (most recent call last):
  File "/usr/local/bin/mymedia/server/web/application.py", line 243, in process
    return self.handle()
  File "/usr/local/bin/mymedia/server/web/application.py", line 234, in handle
    return self._delegate(fn, self.fvars, args)
  File "/usr/local/bin/mymedia/server/web/application.py", line 413, in _delegate
    return handle_class(cls)
  File "/usr/local/bin/mymedia/server/web/application.py", line 388, in handle_class
    return tocall(*args)
  File "/usr/local/bin/mymedia/server/mymedia.py", line 891, in GET
    web.header("Content-Type", "image/" + type)
TypeError: cannot concatenate 'str' and 'NoneType' objects

I added code to test for the None type, changing line 891 in /usr/local/bin/mymedia/server/mymedia.py from this:

      web.header("Content-Type", "image/" + type)

To this:

      if type is None:
        web.header("Content-Type", "image")
      else:
        web.header("Content-Type", "image/" + type)
That got rid of the type error, but the navigation is still painfully slow. Any suggestions?

Thanks again for MyMedia. It's one of my most often-used Roku channels.
Tags (1)
0 Kudos
bblackmoor
Binge Watcher

Re: My Media - Your Music and Video on the Roku DVP

I wondered if maybe the dev libraries were causing a problem, so I removed them:

sudo apt-get remove libjpeg-dev libpng-dev python-dev

MyMedia still works, but the navigation is still painfully slow.
Tags (1)
0 Kudos
bblackmoor
Binge Watcher

Re: My Media - Your Music and Video on the Roku DVP

I tried upgrading to python 3 (I am currently using python 2.7), but eventually tired of trying to fix the code to be compatible.

I then tried installing python 2.6, but after banging my head against getting the modules working, I gave up on that.

I do not know if either of those would have fixed the.

slow.

navigation.

in.

Roku.

but it was worth a try. I am open to suggestions.
Tags (1)
0 Kudos
bblackmoor
Binge Watcher

Re: My Media - Your Music and Video on the Roku DVP

I have switched to Roku Media Player until I can resolve this issue, but I would like very much to solve this  issue. I much prefer MyMedia.
Tags (1)
0 Kudos
renojim
Community Streaming Expert

Re: My Media - Your Music and Video on the Roku DVP

I've never seen an "Internal server error".  I'll take a look and see if I can figure anything out, but I may not get to it for a week or so.  Slow navigation is usually related to a problem with PIL, but the server error has me scratching my head.

Check to see if PIL is actually functioning.  Try browsing to one of your images and then set the desired resolution.  Start at (assuming you're using port 8001):
http://192.168.1.120:8001/feed

Then browse to one of your Photos and see if it comes up properly in a browser.  If it does, then change the resolution by appending something like this to the URL:
&res=300,300

For example:
http://192.168.1.120:8001/media?name=tmp/FILE0002.jpg&key=photo&res=300,300

It tries to maintain aspect ratio, so you won't get 300x300 unless it was a square image to start with; the largest dimension should be 300 pixels.

It's been a long, long time since I tried different Python versions.  I'm currently using v2.7.9.  I recall some issue with trying to go to v3, but it was too long ago for my feeble mind to recall exactly what it was.

At some point I'm going to have to update the client to use Roku's horrid Scene Graph stuff.  I doubt there are many people still using My Media, but my family and I use it everyday, so I'll update it eventually.

-JT

Edit: Ok, I see it throws the server error when the Python code pukes on something. I've probably seen it many times without noticing it was error 500. 🙂
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
Tags (1)
0 Kudos
bblackmoor
Binge Watcher

Re: My Media - Your Music and Video on the Roku DVP

This:

http://192.168.1.90:8001/media?name=Avatars%2FDon_Hertzfeldt_hat_man.png&key=photo

and this:

http://192.168.1.90:8001/media?name=Avatars%2FDon_Hertzfeldt_hat_man.png&key=photo&res=20,20

Both show the same image, at its normal (non-resized) size.

PIL is installed:

# python
Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import PIL
>>> PIL.VERSION
'1.1.7'

Any other suggestions for troubleshooting? I think we are close to a solution.
Tags (1)
0 Kudos
bblackmoor
Binge Watcher

Re: My Media - Your Music and Video on the Roku DVP

One thing I do not understand is why the server has the IP 192.168.1.90 (which is correct), but the python script outputs 0.0.0.0 and 192.168.1.120

$ python /usr/local/bin/mymedia/server/mymedia.py
submitting 'http://192.168.1.90:8001' to rendezvous server as cqhy
http://0.0.0.0:8001/
192.168.1.120:41182 - - [08/Dec/2018 23:32:42] "HTTP/1.1 GET /feed" - 200 OK
192.168.1.120:41182 - - [08/Dec/2018 23:32:42] "HTTP/1.1 GET /media" - 200 OK
192.168.1.120:41182 - - [08/Dec/2018 23:32:42] "HTTP/1.1 GET /media" - 200 OK
192.168.1.120:41182 - - [08/Dec/2018 23:32:42] "HTTP/1.1 GET /media" - 200 OK
192.168.1.120:41182 - - [08/Dec/2018 23:32:42] "HTTP/1.1 GET /media" - 200 OK
192.168.1.120:41182 - - [08/Dec/2018 23:32:42] "HTTP/1.1 GET /media" - 200 OK
192.168.1.120:41182 - - [08/Dec/2018 23:32:42] "HTTP/1.1 GET /media" - 200 OK
192.168.1.120:41182 - - [08/Dec/2018 23:32:42] "HTTP/1.1 GET /media" - 200 OK
192.168.1.120:41182 - - [08/Dec/2018 23:32:42] "HTTP/1.1 GET /media" - 200 OK
192.168.1.120:41182 - - [08/Dec/2018 23:32:42] "HTTP/1.1 GET /feed" - 200 OK
192.168.1.120:41182 - - [08/Dec/2018 23:32:42] "HTTP/1.1 GET /feed" - 200 OK
192.168.1.120:41182 - - [08/Dec/2018 23:32:42] "HTTP/1.1 GET /media" - 200 OK
192.168.1.120:41182 - - [08/Dec/2018 23:32:42] "HTTP/1.1 GET /media" - 200 OK
192.168.1.120:41182 - - [08/Dec/2018 23:32:42] "HTTP/1.1 GET /media" - 200 OK
192.168.1.120:41182 - - [08/Dec/2018 23:32:42] "HTTP/1.1 GET /media" - 200 OK
192.168.1.120:41182 - - [08/Dec/2018 23:32:42] "HTTP/1.1 GET /media" - 200 OK
192.168.1.120:41182 - - [08/Dec/2018 23:32:42] "HTTP/1.1 GET /media" - 200 OK
192.168.1.120:41182 - - [08/Dec/2018 23:32:42] "HTTP/1.1 GET /media" - 200 OK
192.168.1.120:41182 - - [08/Dec/2018 23:32:42] "HTTP/1.1 GET /media" - 200 OK
192.168.1.120:41187 - - [08/Dec/2018 23:32:42] "HTTP/1.1 GET /media" - 200 OK
192.168.1.120:41184 - - [08/Dec/2018 23:32:42] "HTTP/1.1 GET /media" - 200 OK
 192.168.1.120:41183 - - [08/Dec/2018 23:32:42] "HTTP/1.1 GET /media" - 200 OK
192.168.1.120:41188 - - [08/Dec/2018 23:32:42] "HTTP/1.1 GET /media" - 200 OK
192.168.1.120:41183 - - [08/Dec/2018 23:32:42] "HTTP/1.1 GET /media" - 200 OK
192.168.1.120:41184 - - [08/Dec/2018 23:32:42] "HTTP/1.1 GET /media" - 200 OK
Tags (1)
0 Kudos
Community is Temporarily in Read-Only Mode!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

Thanks for your patience — we’re excited to share what’s next!