[mythtv] newbie question

Stuart Morgan stuart at tase.co.uk
Tue Mar 14 06:53:11 UTC 2017


On Sunday, 5 March 2017 14:40:57 GMT Carlos Davila wrote:
> Hi all,
> 
> First post on this list. I am interested in developing a frontend for my
> Samsung 2016 smart tv. I am using the Web-Tizen Studio IDE for this. I
> do not have much expertise in javascript but am taking on this project
> because as a way to tach myself as well as come up with an app that
> could be useful for my family (we recently cut the cable and have no dvr).
> 
> My question has to do with what happens when you queue a stream. For
> example, when I paste the following onto my Firefox address bar:
> 
> http://localhost:6544/Content/AddRecordingLiveStream?RecordedId=62
<snip>
> but then nothing happens on the browser. I assume I need some sort of
> plugin installed that will play the streamed recording? In javascript,
> would I perform this request with an ajax asynchronous 'GET' command? If
> so, then what would go into my callback function? I am assuming my tv
> has a builtin video player capable of handling streamed video. What does
> it mean for a video stream to be "queued"?
> 
> Thanks and best regards,
> Carlos

Hi Carlos,

This particular API is badly designed and needs changing. When you create a 
stream it doesn't start sending the stream data, it simply tells the backend 
to start encoding the video to a smaller resolution and bitrate, suitable for 
streaming. You have to call a second API with the returned stream Id to get 
the actual video stream resulting from this.

See https://www.mythtv.org/wiki/Content_Service#GetLiveStream

The video is streamed using HLS which must be supported by the browser to 
work.

I don't think from the sound of it that this API is what you want. If the TV 
and MythBackend are on the same network then you don't need to reencode the 
video, you can just stream it directly using this API:

https://www.mythtv.org/wiki/Content_Service#GetRecording

This is what is used for UPnP which works with most TVs.

-- 
Regards,
Stuart Morgan
MythTV


More information about the mythtv-dev mailing list