Jump to content

Videos are not played on Android 7 on Thomson TV


Enrique1980

Recommended Posts

Enrique1980
I have a Thomson TV with AndroidTV 7 (Nougat) and I can not play videos with the EMBY APP. When I press the "Play" button, the rotary ring appears before playback and instantly disappears without starting playback (no apear the black screen). No problems with photos.

 

I have no problem playing videos or photos with the EMBY application on my Android phone.

 

I can also send the content from the phone to the television using the Chromecast function and the video plays on the TV without problems.

 

Any suggestions?

 

Link to comment
Share on other sites

Enrique1980

Hi. I've added an extract of log where the problem appear

 

System.ArgumentNullException: Value cannot be null.

Edited by Enrique1980
Link to comment
Share on other sites

Enrique1980

Yes, I'm using an inverse PROXY to access HTTPS from outside my home to EMBY. The summary of the configuration is this:

 

NameVirtualHost *:8082
Listen 8082
<VirtualHost *:8082>
   <Directory "/share/Web">
        Options FollowSymLinks MultiViews
        AllowOverride All
        Require all granted
   </Directory>
   ServerName host.myqnapcloud.com
   DocumentRoot "/share/Web"
   SSLEngine on
 
   SSLProtocol All -SSLv2 -SSLv3
   SSLCertificateChainFile "/etc/stunnel/uca.pem"
   SSLCertificateFile "/etc/stunnel/stunnel.pem"
 
   ProxyPass "/" "http://127.0.0.1:8096/"
   ProxyPassReverse "/" "http://127.0.0.1:8096/"
</VirtualHost>
 
In this way the URL form EMBY over the internet is https://host.domain:8082/. This URL is redirected by my NAS to http://ip:8096/ (The port of EMBY on the LAN)
 
Is this the problem? Should I do it in another way?
What I want is to take advantage of the valid certificate of the NAS to access HTTPS to EMBY from the Internet
 
One more question: I have no problem accessing my EMBY server or playing videos with the Android phone application or Emby Theater for Windows from the same house (outside my LAN). I only have problems with the AndroidTV application
Edited by Enrique1980
Link to comment
Share on other sites

Enrique1980

The standard certificate offered by QNAP (is valid). 

 

With this certificate, EMBY works perfectly (much better than PLEX) outside of my LAN using Home Theater, Web browser and Android APP. Except Android TV on that television (I have not tried it on another)

Edited by Enrique1980
Link to comment
Share on other sites

Something in the network chain is stripping off the data that is sent to the server from the app.  Specifically, the POST data payload.

Link to comment
Share on other sites

Enrique1980
And why does not this happen with smartphones / tablets or PC (Web / Home Theater)?

Everything works perfectly with these EMBY applications

 


The thomson television are in my sister's house and the EMBY server in mine. As I said, everything works perfectly at my sister's house (Android phones, Windows computers) except television (AndroidTV)

 

In my house I have a Xiaomi MiBox3 device (AndroidTV 8.0) in the same LAN as the EMBY server and it works perfectly.

 

If you want, I can take this Xiaomi device to my sister's house and try from there.

Edited by Enrique1980
Link to comment
Share on other sites

 

And why does not this happen with smartphones / tablets or PC (Web / Home Theater)?

 

The same thing actually is happening.  Those other apps are not playing back the content optimally.  Due to the lack of information, they are just transcoding to a very compatible format.

 

There is one piece of information (the User ID) that the other apps supply on the Url but this app includes in the POST data.  Without that piece of information, nothing can proceed so that is why you see this problem in this app.  I'm actually glad that is the case though because, otherwise, you would just think our playback sucks :).  It would "work" but not in any kind of optimal way.

Link to comment
Share on other sites

Enrique1980
Note: Whenever I look at the server control panel I see: "Direct play" (I do not see transcoding)

 

My configuration:

nas.domain: 8082 (https) ---> router (IP) ---> NAS (Apache):8082 (https) ---> EmbyServer:8096 (http)

 

What should I change? What port should I open?

Any suggestions?

Do POST operations use another port?

 

If all communications between the AndroidTV application and the server are made by the same IP and the same port ... Why does it fail?

Edited by Enrique1980
Link to comment
Share on other sites

Note: Whenever I look at the server control panel I see: "Direct play" (I do not see transcoding)

 

Theater has the ability to directly access your file system and bypass all of this so, yes, with that app there may not be a problem.  I also suppose it is remotely possible that the information is only being stripped when sent from Android TV but I really don't see how that could be the case.

 

If you turn off your reverse-proxy and access the server directly with the Android TV app, does it work properly?

Link to comment
Share on other sites

Enrique1980
All clients in LAN work correctly.

 

All applications work well over Internet via HTTPS, opening only the port 8082 in the router, redirecting it to port 8082 of the NAS and on its APACHE by reverse proxy to the EMBY http standar port (8096). The 8082 is the only port open

 

All except the AndroidTV application

 

If I disable the reverse proxy I can not access by HTTPS because the certificate is in the Apache server of the NAS and not the Web server of EMBY

Edited by Enrique1980
Link to comment
Share on other sites

Can you please turn on debug logging on the server, then re-start the server, then play something in one of these apps (not Theater) and post that server log?

 

Thanks.

Link to comment
Share on other sites

Enrique1980
Hi. I have opened port 8086 on the router and I have directed it to port 8086 of the EMBY server. All applications (including AndroidTV) work perfectly if I configure them to work in HTTP on that port.

 

If I go back to the initial situation, all the applications work except the AndroidTV that still does not play the videos.

 

Then the problem is in the reverse proxy function. Something does (or does not) the application for AndroidTV that does not (or do) the rest of applications.

 

I have also done what you have asked me: Activate the DEBUG mode of the registry, restart the server and try to play a video with AndroidTV. I attached the log.

 

Let's see if we get a solution. Thanks for everything.

 

(Sorry if my English is not good, the Google translator helps me a little)

Edited by Enrique1980
Link to comment
Share on other sites

Enrique1980

Have you seen this line?

 

2018-11-13 16:26:04.664 Debug App: GetPostedPlaybackInfo request: {"Id":"4db78119c03eb64c1ce6ef5555c41d41","EnableDirectPlay":true,"EnableDirectStream":true,"EnableTranscoding":true,"AllowVideoStreamCopy":true,"AllowAudioStreamCopy":true,"IsPlayback":true,"AutoOpenLiveStream":false,"DirectPlayProtocols":["Http"]}

 

DirectPlayProtocols: HTTP? 

I am using HTTPS (although the EMBY server does not know it), but the EMBY client does

Link to comment
Share on other sites

Enrique1980
Should not. It is a valid certificate generated by "myqnapcloud.com" for my NAS.

 

Although, as I have a name in DDNS.NET, I have seen somewhere in the registry that my NAS also appears with this domain and I do not know where EMBY can take it because I have not put it anywhere in the configuration.

 

In summary: If the AndroidTV application uses "https://mynas.myqnapcloud.com" it will get a valid certificate (not expired, correct name, etc.)

 

But if it use "https://mynas.ddns.net" it will get an invalid certificate because the certificate does not match that hostname.

Edited by Enrique1980
Link to comment
Share on other sites

And also perhaps valid wasn't the right term. The question is really whether or not the Android os considers it a trusted certificate.

Link to comment
Share on other sites

Enrique1980
As I mentioned earlier:

- The EMBY application for Android phones (in my case Android 8) works perfectly from Internet

- The Home Theater for Windows application works perfectly from Internet

- Browser access from Internet works perfectly

- The EMBY plugin for KODI works perfectly from Internet

 

The only application with which I have problems is with the EMBY application for AndroidTV from Internet (over local network works perfectly).

And the TV of my sister has AndroidTV 8.0.

 

I guess that the S.O. Android 8 for phones and Android 8 for televisions ... will be the same (except the interface).

Therefore, I suppose something is not the same in the EMBY application for telephones as in the EMBY application for televisions

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...