building native frontend for Tizen

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

Post Reply
cdav
Newcomer
Posts: 6
Joined: Thu Feb 16, 2017 12:48 pm
United States of America

building native frontend for Tizen

Post by cdav »

Hi,

I have a Samsumg 2016 smart tv running the Tizen os. I would like to build a native app using Tizen Studio, an IDE that is available from Samsung. There is another Samsung TV frontend project that seems to be web-based. Would prefer to build an "official" frontend from source. Is this possible? If so, where can I find stand-alone frontend source code? The current source MythTV 0.28.1 has both frontend and backend, and the delineation between them is not very clear.

Best,
Carlos
Gribnif
Junior
Posts: 88
Joined: Wed May 14, 2014 12:46 pm
United States of America

Re: building native frontend for Tizen

Post by Gribnif »

The MythTV source contains both the frontend and the backend. While it used to be possible to tell "configure" not to build the backend, this no longer seems to be the case. There's not much advantage in doing so, anyway, as the backend and frontend share so much code that the time savings would be minimal.

You can try something like this to compile everything but only install the frontend:
./configure (along with whatever options are needed)
make
make -C programs/mythfrontend install
User avatar
pvr4me
Senior
Posts: 763
Joined: Fri Feb 07, 2014 7:25 pm
Location: near Toronto, Canada
Contact:
Canada

Re: building native frontend for Tizen

Post by pvr4me »

Myth relies on Qt. The first link I found says that the [Qt on Tizen] project is dead.

https://wiki.qt.io/Tizen

That would seem to present a bit of an obstacle! :?

Craig
Formerly the MacPorts guy.
cdav
Newcomer
Posts: 6
Joined: Thu Feb 16, 2017 12:48 pm
United States of America

Re: building native frontend for Tizen

Post by cdav »

Thanks for your responses. Are there javascript web apps that I could import into the Tizen IDE? My understanding is that the frontend can be implemented either from source or as a web app based on javascript.
User avatar
pgbennett
Developer
Posts: 504
Joined: Mon Apr 27, 2015 5:41 pm
United States of America

Re: building native frontend for Tizen

Post by pgbennett »

There is no MythTV web app that I am aware of. There is a MythTV plugin for Kodi, but Kodi is also not supported on tizen. You can play mythtv recordings directly on a smart tv using UPNP via an ethernet or wifi, but the interface may not be ideal. You can play recordings with a browser if you run mythweb on your backend. Otherwise you can spend $50 for a Raspberry Pi and run a full frontend.
User avatar
pvr4me
Senior
Posts: 763
Joined: Fri Feb 07, 2014 7:25 pm
Location: near Toronto, Canada
Contact:
Canada

Re: building native frontend for Tizen

Post by pvr4me »

cdav wrote:Thanks for your responses. Are there javascript web apps that I could import into the Tizen IDE? My understanding is that the frontend can be implemented either from source or as a web app based on javascript.
There are a few frontend projects, several are hosted at:

https://github.com/MythTV-Clients

AIUI, they make use of Myth's Services API:

https://www.mythtv.org/wiki/Services_API

This is the recommended way to interface with Myth. I believe there are still some gaps in the API but the devs are interested in filling these in.

Craig
Formerly the MacPorts guy.
BigKuma
Junior
Posts: 16
Joined: Mon Feb 23, 2015 5:22 pm
United States of America

Re: building native frontend for Tizen

Post by BigKuma »

I know this is not very helpful. But, I agree with pgbennett. I did try .28 MythTV on my 2016 Samsung Smart TV through UPNP. And, unlike with .27, it works great.
The names on the shows are actually text, like "NHL Hockey" or "Breaking Bad". Then, based on the time stamp, you can tell which show it is.
There are lots of folders too, sort by name, sort by title, sort by date.
In the past it was just a jumble of numbers. It played pretty smooth for a 1080 show, I'd even say better then through the PC + MythFrontend + HDMI.
-Ubuntu 16.04+OOM bug fix
-Myth v0.28 (2/11/2017)
-HDHomeRun Prime
-C2Duo 3.3Ghz/8G RAM/500GB/NVidia GT720
-4k TV HDMI
cdav
Newcomer
Posts: 6
Joined: Thu Feb 16, 2017 12:48 pm
United States of America

Re: building native frontend for Tizen

Post by cdav »

I too have 0.28 backend and my Samsung 2016 Smart TV will detect the server and play recordings over UPNP, but not without some occasional distortion and pixelation (using a wifi connection). So I would like more control, for setting things like the amount of buffering, etc. as well as being able to schedule recordings from the client side.
User avatar
dizygotheca
Developer
Posts: 267
Joined: Wed Sep 03, 2014 9:02 am
Great Britain

Re: building native frontend for Tizen

Post by dizygotheca »

Are there javascript web apps that I could import into the Tizen IDE? My understanding is that the frontend can be implemented either from source or as a web app based on javascript.
Maybe I misunderstand, but isn't the WebFrontend based on javascript. That would seem the best starting point for a 'Tizen app'.
https://www.mythtv.org/wiki/WebFrontend
https://github.com/MythTV/mythtv/tree/m ... ythtv/html
Or is that the web-based one you don't like ?
cdav
Newcomer
Posts: 6
Joined: Thu Feb 16, 2017 12:48 pm
United States of America

Re: building native frontend for Tizen

Post by cdav »

Thanks for the suggestions, all. Will report back after I've (hopefully) made some progress.
cdav
Newcomer
Posts: 6
Joined: Thu Feb 16, 2017 12:48 pm
United States of America

Re: building native frontend for Tizen

Post by cdav »

Hi, I am trying to familiarize myself with using the Myth Service API. If I paste "http://192.168.0.2:6544/Myth/GetHostName" into the address bar on the browser, I get the expected result. However when I load the script below into my browser, nothing happens (after clicking on button). Am I on the right track?

<!DOCTYPE html>
<html>
<body>
<h1>The XMLHttpRequest Object</h1>
<p id="demo">Let AJAX change this text.</p>
<button type="button" onclick="loadDoc()">Change Content</button>
<script>
function loadDoc() {
var xhttp = new XMLHttpRequest();
xhttp.open("GET", "http://192.168.0.2:6544/Myth/GetHostName", false);
xhttp.send();
document.getElementById("demo").innerHTML = xhttp.responseText;
}
</script>
</body>
</html>
Post Reply