Jump to content

Play To - failing to play Live TV


mellomade
 Share

Recommended Posts

So I have no problem playing movies and tv shows over SMB using Play To from either a web browser or the iOS app.  However whenever I try to playback Live TV - it will add to the playlist but Kodi throws the following error:
 
["4929c8bbc7e9cd2cd4d28471be53a7a5"],"PlayCommand":"PlayNow","ControllingUserId":"b4c290d989d242a09bf67ca0b763b7a7"}}
21:59:17 T:140417437787904  NOTICE: EMBY Playlist -> ---*** PLAY ALL ***---
21:59:17 T:140417437787904  NOTICE: EMBY Playlist -> Items: [u'4929c8bbc7e9cd2cd4d28471be53a7a5']
21:59:17 T:140417437787904  NOTICE: EMBY PlayUtils -> File protocol is http.
21:59:17 T:140417437787904  NOTICE: EMBY Playlist -> Playurl: http://192.168.0.12:8092/emby/Videos/4929c8bbc7e9cd2cd4d28471be53a7a5/stream?static=true
21:59:17 T:140419217192704  NOTICE: EMBY KodiMonitor -> Method: Playlist.OnClear Data: {"playlistid":1}
21:59:17 T:140419217192704  NOTICE: EMBY KodiMonitor -> Clear playlist properties.
21:59:17 T:140417437787904  NOTICE: EMBY Playlist -> Adding 4929c8bbc7e9cd2cd4d28471be53a7a5 to playlist.
21:59:18 T:140419514988416   ERROR: CCurlFile::Stat - Failed: HTTP response code said error(22) for http://192.168.0.12:8092/emby/Videos/4929c8bbc7e9cd2cd4d28471be53a7a5/stream?static=true
21:59:18 T:140419514988416  NOTICE: DVDPlayer: Opening: http://192.168.0.12:8092/emby/Videos/4929c8bbc7e9cd2cd4d28471be53a7a5/stream?static=true
21:59:18 T:140419514988416 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
21:59:18 T:140418184378112  NOTICE: Thread DVDPlayer start, auto delete: false
21:59:18 T:140418184378112  NOTICE: Creating InputStream
21:59:18 T:140418184378112   ERROR: CCurlFile::Stat - Failed: HTTP response code said error(22) for http://192.168.0.12:8092/emby/Videos/4929c8bbc7e9cd2cd4d28471be53a7a5/stream?static=true
21:59:18 T:140418184378112   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 500
21:59:18 T:140418184378112   ERROR: CCurlFile::Open failed with code 500 for http://192.168.0.12:8092/emby/Videos/4929c8bbc7e9cd2cd4d28471be53a7a5/stream?static=true
21:59:18 T:140418184378112   ERROR: Open - failed to open source <http://192.168.0.12:8092/emby/Videos/4929c8bbc7e9cd2cd4d28471be53a7a5/stream?static=true>
21:59:18 T:140418184378112   ERROR: CDVDPlayer::OpenInputStream - error opening [http://192.168.0.12:8092/emby/Videos/4929c8bbc7e9cd2cd4d28471be53a7a5/stream?static=true]
21:59:18 T:140418184378112  NOTICE: CDVDPlayer::OnExit()
21:59:18 T:140419514988416   ERROR: Playlist Player: skipping unplayable item: 0, path [http://192.168.0.12:8092/emby/Videos/4929c8bbc7e9cd2cd4d28471be53a7a5/stream?static=true]
21:59:18 T:140419514988416  NOTICE: CDVDPlayer::CloseFile()
21:59:18 T:140419514988416  NOTICE: DVDPlayer: waiting for threads to exit
21:59:18 T:140419514988416  NOTICE: DVDPlayer: finished waiting
21:59:18 T:140419514988416  NOTICE: CDVDPlayer::CloseFile()
21:59:18 T:140419514988416  NOTICE: DVDPlayer: waiting for threads to exit
21:59:18 T:140419514988416  NOTICE: DVDPlayer: finished waiting
21:59:18 T:140419217192704  NOTICE: EMBY Player -> Clear playlist properties.
21:59:18 T:140419217192704  NOTICE: EMBY KodiMonitor -> Method: Player.OnStop Data: {"end":false,"item":{"type":"unknown"}}
21:59:25 T:140419217192704  NOTICE: EMBY KodiMonitor -> Method: Playlist.OnClear Data: {"playlistid":1}
21:59:25 T:140419217192704  NOTICE: EMBY KodiMonitor -> Clear playlist properties.
21:59:30 T:140418184378112  NOTICE: Thread JobWorker start, auto delete: true
21:59:31 T:140419514988416  NOTICE: Previous line repeats 3 times.
 
This event will tie up BOTH of my network tuners assigned to EmbyTV (the server eventually releases them) - this happens regardless of the Emby for Kodi settings for 'Play from HTTP instead of SMB' is turned on or off.
 
Here is what the server log reports:
 
2015-12-27 15:22:30.7283 Info HttpServer: HTTP GET http://192.168.0.12:8092/emby/Users/b4c290d989d242a09bf67ca0b763b7a7/Items/4929c8bbc7e9cd2cd4d28471be53a7a5?format=json. UserAgent: 
2015-12-27 15:22:30.7283 Debug SqliteItemRepository: select guid from TypedBaseItems where type=@type AND ChannelId=@ChannelId AND EndDate>=@MinEndDate AND StartDate<=@MaxStartDate ORDER BY StartDate ASC LIMIT 1
2015-12-27 15:22:30.7283 Info HttpServer: HTTP Response 200 to ::ffff:192.168.0.32. Time: 0ms. http://192.168.0.12:8092/emby/Users/b4c290d989d242a09bf67ca0b763b7a7/Items/4929c8bbc7e9cd2cd4d28471be53a7a5?format=json
2015-12-27 15:22:30.8846 Info HttpServer: HTTP HEAD http://192.168.0.12:8092/emby/Videos/4929c8bbc7e9cd2cd4d28471be53a7a5/stream?static=true. UserAgent: Kodi/15.2 (X11; Linux x86_64) OpenELEC/6.0 App_Bitness/64 Version/15.2-Git:02e7013
2015-12-27 15:22:30.8846 Debug App: GetChannelStreamMediaSources - Waiting on tuner resource pool
2015-12-27 15:22:30.8846 Debug App: GetChannelStreamMediaSources - Unlocked resource pool
2015-12-27 15:22:30.8846 Debug LiveTvMediaSourceProvider: MediaSources: [{"Protocol":"Http","Id":"1455f681a5534feca9e454eec6ebf74anative","Path":"http://192.168.0.19:5004/auto/v4.1","Type":"Default","Container":"ts","ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"RequiresOpening":false,"RequiresClosing":false,"BufferMs":1000,"MediaStreams":[{"Codec":"mpeg2video","IsInterlaced":true,"IsDefault":false,"IsForced":false,"Type":"Video","Index":-1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false},{"Codec":"ac3","IsInterlaced":false,"BitRate":128000,"IsDefault":false,"IsForced":false,"Type":"Audio","Index":-1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false}],"PlayableStreamFileNames":[],"Formats":[],"Bitrate":128000,"RequiredHttpHeaders":{}}]
2015-12-27 15:22:30.8846 Info App: HttpClientManager GET: http://192.168.0.19:5004/auto/v4.1
2015-12-27 15:22:31.1814 Info HttpServer: HTTP Response 400 to ::ffff:192.168.0.32. Time: 297ms. http://192.168.0.12:8092/emby/Videos/4929c8bbc7e9cd2cd4d28471be53a7a5/stream?static=true
2015-12-27 15:22:31.1814 Info HttpServer: HTTP GET http://192.168.0.12:8092/emby/Videos/4929c8bbc7e9cd2cd4d28471be53a7a5/stream?static=true. UserAgent: Kodi/15.2 (X11; Linux x86_64) OpenELEC/6.0 App_Bitness/64 Version/15.2-Git:02e7013
2015-12-27 15:22:31.1814 Debug App: GetChannelStreamMediaSources - Waiting on tuner resource pool
2015-12-27 15:22:31.1814 Debug App: GetChannelStreamMediaSources - Unlocked resource pool
2015-12-27 15:22:31.1814 Debug LiveTvMediaSourceProvider: MediaSources: [{"Protocol":"Http","Id":"1455f681a5534feca9e454eec6ebf74anative","Path":"http://192.168.0.19:5004/auto/v4.1","Type":"Default","Container":"ts","ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"RequiresOpening":false,"RequiresClosing":false,"BufferMs":1000,"MediaStreams":[{"Codec":"mpeg2video","IsInterlaced":true,"IsDefault":false,"IsForced":false,"Type":"Video","Index":-1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false},{"Codec":"ac3","IsInterlaced":false,"BitRate":128000,"IsDefault":false,"IsForced":false,"Type":"Audio","Index":-1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false}],"PlayableStreamFileNames":[],"Formats":[],"Bitrate":128000,"RequiredHttpHeaders":{}}]
2015-12-27 15:22:31.1814 Info App: HttpClientManager GET: http://192.168.0.19:5004/auto/v4.1
2015-12-27 15:22:31.4471 Info HttpServer: HTTP Response 400 to ::ffff:192.168.0.32. Time: 266ms. http://192.168.0.12:8092/emby/Videos/4929c8bbc7e9cd2cd4d28471be53a7a5/stream?static=true
2015-12-27 15:22:31.4471 Info HttpServer: HTTP HEAD http://192.168.0.12:8092/emby/Videos/4929c8bbc7e9cd2cd4d28471be53a7a5/stream?static=true. UserAgent: Kodi/15.2 (X11; Linux x86_64) OpenELEC/6.0 App_Bitness/64 Version/15.2-Git:02e7013
2015-12-27 15:22:31.4471 Debug App: GetChannelStreamMediaSources - Waiting on tuner resource pool
2015-12-27 15:22:31.4471 Debug App: GetChannelStreamMediaSources - Unlocked resource pool
2015-12-27 15:22:31.4471 Debug LiveTvMediaSourceProvider: MediaSources: [{"Protocol":"Http","Id":"1455f681a5534feca9e454eec6ebf74anative","Path":"http://192.168.0.19:5004/auto/v4.1","Type":"Default","Container":"ts","ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"RequiresOpening":false,"RequiresClosing":false,"BufferMs":1000,"MediaStreams":[{"Codec":"mpeg2video","IsInterlaced":true,"IsDefault":false,"IsForced":false,"Type":"Video","Index":-1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false},{"Codec":"ac3","IsInterlaced":false,"BitRate":128000,"IsDefault":false,"IsForced":false,"Type":"Audio","Index":-1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false}],"PlayableStreamFileNames":[],"Formats":[],"Bitrate":128000,"RequiredHttpHeaders":{}}]
2015-12-27 15:22:31.4471 Info App: HttpClientManager GET: http://192.168.0.19:5004/auto/v4.1
2015-12-27 15:22:31.7128 Info HttpServer: HTTP Response 400 to ::ffff:192.168.0.32. Time: 266ms. http://192.168.0.12:8092/emby/Videos/4929c8bbc7e9cd2cd4d28471be53a7a5/stream?static=true
2015-12-27 15:22:31.7128 Info HttpServer: HTTP GET http://192.168.0.12:8092/emby/Videos/4929c8bbc7e9cd2cd4d28471be53a7a5/stream?static=true. UserAgent: Kodi/15.2 (X11; Linux x86_64) OpenELEC/6.0 App_Bitness/64 Version/15.2-Git:02e7013
2015-12-27 15:22:31.7128 Debug App: GetChannelStreamMediaSources - Waiting on tuner resource pool
2015-12-27 15:22:31.7128 Debug App: GetChannelStreamMediaSources - Unlocked resource pool
2015-12-27 15:22:31.7128 Debug LiveTvMediaSourceProvider: MediaSources: [{"Protocol":"Http","Id":"1455f681a5534feca9e454eec6ebf74anative","Path":"http://192.168.0.19:5004/auto/v4.1","Type":"Default","Container":"ts","ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"RequiresOpening":false,"RequiresClosing":false,"BufferMs":1000,"MediaStreams":[{"Codec":"mpeg2video","IsInterlaced":true,"IsDefault":false,"IsForced":false,"Type":"Video","Index":-1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false},{"Codec":"ac3","IsInterlaced":false,"BitRate":128000,"IsDefault":false,"IsForced":false,"Type":"Audio","Index":-1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false}],"PlayableStreamFileNames":[],"Formats":[],"Bitrate":128000,"RequiredHttpHeaders":{}}]
2015-12-27 15:22:31.7128 Info App: HttpClientManager GET: http://192.168.0.19:5004/auto/v4.1
2015-12-27 15:22:31.9784 Info HttpServer: HTTP Response 400 to ::ffff:192.168.0.32. Time: 266ms. http://192.168.0.12:8092/emby/Videos/4929c8bbc7e9cd2cd4d28471be53a7a5/stream?static=true
2015-12-27 15:22:31.9784 Info HttpServer: HTTP GET http://192.168.0.12:8092/emby/Videos/4929c8bbc7e9cd2cd4d28471be53a7a5/stream?static=true. UserAgent: Kodi/15.2 (X11; Linux x86_64) OpenELEC/6.0 App_Bitness/64 Version/15.2-Git:02e7013
2015-12-27 15:22:31.9784 Debug App: GetChannelStreamMediaSources - Waiting on tuner resource pool
2015-12-27 15:22:31.9784 Debug App: GetChannelStreamMediaSources - Unlocked resource pool
2015-12-27 15:22:31.9784 Debug LiveTvMediaSourceProvider: MediaSources: [{"Protocol":"Http","Id":"1455f681a5534feca9e454eec6ebf74anative","Path":"http://192.168.0.19:5004/auto/v4.1","Type":"Default","Container":"ts","ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"RequiresOpening":false,"RequiresClosing":false,"BufferMs":1000,"MediaStreams":[{"Codec":"mpeg2video","IsInterlaced":true,"IsDefault":false,"IsForced":false,"Type":"Video","Index":-1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false},{"Codec":"ac3","IsInterlaced":false,"BitRate":128000,"IsDefault":false,"IsForced":false,"Type":"Audio","Index":-1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false}],"PlayableStreamFileNames":[],"Formats":[],"Bitrate":128000,"RequiredHttpHeaders":{}}]
2015-12-27 15:22:31.9784 Info App: HttpClientManager GET: http://192.168.0.19:5004/auto/v4.1
2015-12-27 15:22:32.0097 Error App: Error getting response from http://192.168.0.19:5004/auto/v4.1
*** Error Report ***
Version: 3.0.5838.16563
Command line: C:\Users\J\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
Operating system: Microsoft Windows NT 6.2.9200.0
Processor count: 8
64-Bit OS: True
64-Bit Process: True
Program data path: C:\Users\J\AppData\Roaming\Emby-Server
Application Path: C:\Users\J\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
One or more errors occurred.
System.AggregateException
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
  at MediaBrowser.Common.Implementations.HttpClientManager.HttpClientManager.<SendAsyncInternal>d__1b.MoveNext()
InnerException: System.Net.WebException
The remote server returned an error: (503) Server Unavailable.
  at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
  at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)

2015-12-27 15:22:32.0097 Error DtoUtils: ServiceBase<TRequest>::Service Exception
*** Error Report ***
Version: 3.0.5838.16563
Command line: C:\Users\J\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
Operating system: Microsoft Windows NT 6.2.9200.0
Processor count: 8
64-Bit OS: True
64-Bit Process: True
Program data path: C:\Users\J\AppData\Roaming\Emby-Server
Application Path: C:\Users\J\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
One or more errors occurred.
MediaBrowser.Model.Net.HttpException
  at MediaBrowser.Common.Implementations.HttpClientManager.HttpClientManager.<SendAsyncInternal>d__1b.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
  at MediaBrowser.Common.Implementations.HttpClientManager.HttpClientManager.<SendAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
  at MediaBrowser.Api.Playback.Progressive.BaseProgressiveStreamingService.<GetStaticRemoteStreamResult>d__3.MoveNext()
InnerException: System.AggregateException
One or more errors occurred.
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
  at MediaBrowser.Common.Implementations.HttpClientManager.HttpClientManager.<SendAsyncInternal>d__1b.MoveNext()
InnerException: System.Net.WebException
The remote server returned an error: (503) Server Unavailable.
  at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
  at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)

2015-12-27 15:22:32.0097 Error HttpServer: Error processing request for /emby/Videos/4929c8bbc7e9cd2cd4d28471be53a7a5/stream?static=true
*** Error Report ***
Version: 3.0.5838.16563
Command line: C:\Users\J\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
Operating system: Microsoft Windows NT 6.2.9200.0
Processor count: 8
64-Bit OS: True
64-Bit Process: True
Program data path: C:\Users\J\AppData\Roaming\Emby-Server
Application Path: C:\Users\J\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
One or more errors occurred.
ServiceStack.HttpError
No Stack Trace Available

2015-12-27 15:22:32.0097 Info HttpServer: HTTP Response 500 to ::ffff:192.168.0.32. Time: 31ms. http://192.168.0.12:8092/emby/Videos/4929c8bbc7e9cd2cd4d28471be53a7a5/stream?static=true
2015-12-27 15:22:53.0587 Debug HttpServer: Exiting HttpConnection.OnReadInternal because nread=0. ConnectionId: 1773a266485b4700ad3481be8c3013ed
2015-12-27 15:22:53.4182 Debug NetworkManager: Querying interface: Ethernet 2. Type: Ethernet. Status: Up
2015-12-27 15:22:53.4182 Debug NetworkManager: Querying interface: Loopback Pseudo-Interface 1. Type: Loopback. Status: Up
2015-12-27 15:22:53.4182 Debug NetworkManager: Querying interface: Local Area Connection* 2. Type: Tunnel. Status: Up
2015-12-27 15:22:53.4182 Debug NetworkManager: Querying interface: isatap.{DE5FF06C-8C05-4F17-9621-6B731B2B5413}. Type: Tunnel. Status: Down
2015-12-27 15:22:54.1057 Debug HttpServer: Exiting HttpConnection.OnReadInternal because nread=0. ConnectionId: ac5e807f2de341fe97852816bab833a7
2015-12-27 15:22:54.1370 Debug HttpServer: Exiting HttpConnection.OnReadInternal because nread=0. ConnectionId: 6dca10b15d2c45e88fc5a8e04d5ed4e2
2015-12-27 15:22:54.1370 Debug HttpServer: Exiting HttpConnection.OnReadInternal because nread=0. ConnectionId: 2683a82dcdb141cc808bf04c56e3a3e5
2015-12-27 15:22:59.3409 Debug HttpServer: Exiting HttpConnection.OnReadInternal because nread=0. ConnectionId: 21defd3d278449b9b715f27bc931d93a
2015-12-27 15:23:01.5130 Debug HttpServer: Exiting HttpConnection.OnReadInternal because nread=0. ConnectionId: dcdb373ddf464bd2ba18624a1796f43b

2015-12-27 15:23:15.1240 Debug HttpServer: Exiting HttpConnection.OnReadInternal because nread=0. ConnectionId: b572568a5da9434dbc0a2597c41866cc

??

 

 

Link to comment
Share on other sites

@@mellomade

 

I will probably need additional logging. Can you enable the add-on debug, set to debug for this and recapture the issue once again and post the log? Thanks

Edited by Angelblue05
Link to comment
Share on other sites

You know.....somewhere in my brain I once knew that Emby for Kodi did not support Live TV.  But for some reason when I was messing around with the iOS app I got caught up trying to play stuff to Kodi and put the blinders on.  When something doesn't work - report it.  Sorry about that. 

 

I don't want to dredge up too much further discussion about Live TV in the Emby for Kodi add-on.  I do think Live TV should have its own PVR add-on for Kodi.  However - this Play To functionality presents a bit of a pickle.  If you had 2 different add-ons - Emby for Kodi and an Emby PVR add-on - how would the Play To function distinguish between the two?  Currently the Play To definitions are part of the Emby for Kodi codebase - so even though there is no interface for Live TV - shouldn't it still be able to initiate playback of an http stream from the HDHomeRun at the very least?  And if it can't and an Emby PVR add-on could - would they show up as separate devices in the Play To list?  I don't know....

Link to comment
Share on other sites

You know.....somewhere in my brain I once knew that Emby for Kodi did not support Live TV.  But for some reason when I was messing around with the iOS app I got caught up trying to play stuff to Kodi and put the blinders on.  When something doesn't work - report it.  Sorry about that. 

 

I don't want to dredge up too much further discussion about Live TV in the Emby for Kodi add-on.  I do think Live TV should have its own PVR add-on for Kodi.  However - this Play To functionality presents a bit of a pickle.  If you had 2 different add-ons - Emby for Kodi and an Emby PVR add-on - how would the Play To function distinguish between the two?  Currently the Play To definitions are part of the Emby for Kodi codebase - so even though there is no interface for Live TV - shouldn't it still be able to initiate playback of an http stream from the HDHomeRun at the very least?  And if it can't and an Emby PVR add-on could - would they show up as separate devices in the Play To list?  I don't know....

 

So I am actually noticing the same thing, I swear at some point it worked but I don't remember when.   Is the ability to cast to Kodi an Emby Plugin feature or is this something where it simply sees a Kodi client available for airplay, in the same way Chromecast works?  I can cast to Chromecast fine, so I suppose i can get a chromecast for every TV I have a Kodi client on but it seems overkill.

Link to comment
Share on other sites

I don't have Live TV, so best you can do to help is install stable and test if you succeed or not. Let me know.

 

Would Stable work with Kodi 16?

Link to comment
Share on other sites

Yes.

 

Will not play on stable.

 

Log:

 

00:13:39 407.878448 T:1377825792  NOTICE: -->Python Interpreter Initialized<--

00:13:40 408.248260 T:1377825792  NOTICE: version 4.0.0 started

00:13:47 415.246277 T:1368388608  NOTICE: EMBY WebSocket_Client -> Message: {"MessageType":"Play","Data":{"ItemIds":["78c04a48edf4f9d4ffd8e4f707345a62"],"PlayCommand":"PlayNow","ControllingUserId":"5fc23353005e41f29c063f3a9e7c53ab"}}

00:13:47 415.400879 T:1368388608  NOTICE: EMBY Playlist -> ---*** PLAY ALL ***---

00:13:47 415.499359 T:1368388608  NOTICE: EMBY Playlist -> Items: [u'78c04a48edf4f9d4ffd8e4f707345a62']

00:13:48 416.268097 T:1368388608  NOTICE: EMBY PlayUtils -> File protocol is http.

00:13:48 416.368073 T:1368388608  NOTICE: EMBY Playlist -> Playurl: http://192.168.1.125:8096/emby/Videos/78c04a48edf4f9d4ffd8e4f707345a62/stream?static=true

00:13:51 419.796997 T:1368388608  NOTICE: EMBY Playlist -> Adding 78c04a48edf4f9d4ffd8e4f707345a62 to playlist.

00:13:52 420.942535 T:1966698496   ERROR: CCurlFile::Stat - Failed: HTTP response code said error(22) for http://192.168.1.125:8096/emby/Videos/78c04a48edf4f9d4ffd8e4f707345a62/stream?static=true

00:13:52 420.983063 T:1966698496  NOTICE: VideoPlayer: Opening: http://192.168.1.125:8096/emby/Videos/78c04a48edf4f9d4ffd8e4f707345a62/stream?static=true

00:13:52 420.983429 T:1966698496 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED

00:13:52 420.983826 T:1768944640  NOTICE: Thread VideoPlayer start, auto delete: false

00:13:52 420.984680 T:1768944640  NOTICE: Creating InputStream

00:13:52 420.985046 T:1768944640  NOTICE: CVideoPlayer::OpenInputStream - <f1> http://192.168.1.125:8096/emby/Videos/78c04a48edf4f9d4ffd8e4f707345a62/stream?static=true<f2> http://192.168.1.125:8096/emby/Videos/78c04a48edf4f9d4ffd8e4f707345a62/stream?static=true <host>

00:13:54 422.023438 T:1768944640   ERROR: CCurlFile::Stat - Failed: HTTP response code said error(22) for http://192.168.1.125:8096/emby/Videos/78c04a48edf4f9d4ffd8e4f707345a62/stream?static=true

00:13:54 422.742920 T:1768944640   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 400

00:13:54 422.743286 T:1768944640   ERROR: CCurlFile::Open failed with code 400 for http://192.168.1.125:8096/emby/Videos/78c04a48edf4f9d4ffd8e4f707345a62/stream?static=true

00:13:54 422.748260 T:1768944640   ERROR: Open - failed to open source <http://192.168.1.125:8096/emby/Videos/78c04a48edf4f9d4ffd8e4f707345a62/stream?static=true>

00:13:54 422.748505 T:1768944640   ERROR: CVideoPlayer::OpenInputStream - error opening [http://192.168.1.125:8096/emby/Videos/78c04a48edf4f9d4ffd8e4f707345a62/stream?static=true]

00:13:54 422.748596 T:1768944640  NOTICE: CVideoPlayer::OnExit()

00:13:54 422.749695 T:1966698496   ERROR: Playlist Player: skipping unplayable item: 0, path [http://192.168.1.125:8096/emby/Videos/78c04a48edf4f9d4ffd8e4f707345a62/stream?static=true]

00:13:54 422.752228 T:1768944640  NOTICE: Thread JobWorker start, auto delete: true

00:13:54 422.753387 T:1768944640 WARNING: COMXImageFile::GetCodingType progressive images not supported by decoder

00:13:54 422.753632 T:1768944640  NOTICE: LoadJpeg: unable to load /storage/.kodi/addons/skin.arctic.zephyr-master/media/pvr/background.jpg

00:13:54 422.757660 T:1966698496  NOTICE: CVideoPlayer::CloseFile()

00:13:54 422.757996 T:1966698496  NOTICE: VideoPlayer: waiting for threads to exit

00:13:54 422.758118 T:1966698496  NOTICE: VideoPlayer: finished waiting

00:13:54 422.758331 T:1966698496  NOTICE: CVideoPlayer::CloseFile()

00:13:54 422.758453 T:1966698496  NOTICE: VideoPlayer: waiting for threads to exit

00:13:54 422.758545 T:1966698496  NOTICE: VideoPlayer: finished waiting

00:13:54 422.889740 T:1567065088  NOTICE: Thread JobWorker start, auto delete: true

00:13:55 423.025818 T:1794110464  NOTICE: EMBY Player -> Clear playlist properties.

00:13:55 423.026428 T:1794110464  NOTICE: EMBY KodiMonitor -> Method: Player.OnStop Data: {"end":false,"item":{"type":"unknown"}}

Link to comment
Share on other sites

Here is the log from the server, what's odd is the 11232ms, something took 11 seconds, perhaps the time it took to get the feed from the tuner...? If Emby is transcoding everything else fast enough I'm not sure why this would be so slow?

 

2015-12-29 00:02:37.4232 Info HttpServer: HTTP GET http://192.168.1.125:8096/videos/78c04a48edf4f9d4ffd8e4f707345a62/hls/d5c87523761ed7831656eb04ed24f2f5/d5c87523761ed7831656eb04ed24f2f50.ts. UserAgent: Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.90 Safari/537.36 CrKey/1.17.46278
2015-12-29 00:02:37.7196 Info HttpServer: HTTP OPTIONS http://192.168.1.125:8096/Sessions/Playing/Ping. UserAgent: Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.90 Safari/537.36 CrKey/1.17.46278
2015-12-29 00:02:37.7196 Info HttpServer: HTTP Response 200 to 192.168.1.84. Time: 0ms. http://192.168.1.125:8096/Sessions/Playing/Ping
2015-12-29 00:02:37.8132 Info HttpServer: HTTP POST http://emby.marcusrocks.com:8096/emby/Sessions/Playing/Progress. UserAgent: Dalvik/2.1.0 (Linux; U; Android 5.1; AFTM Build/LMY47O)
2015-12-29 00:02:37.8132 Info HttpServer: HTTP Response 204 to 73.251.82.116. Time: 0ms. http://emby.marcusrocks.com:8096/emby/Sessions/Playing/Progress
2015-12-29 00:02:37.8756 Info HttpServer: HTTP POST http://192.168.1.125:8096/Sessions/Playing/Ping. UserAgent: Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.90 Safari/537.36 CrKey/1.17.46278
2015-12-29 00:02:37.8756 Info HttpServer: HTTP Response 204 to 192.168.1.84. Time: 0ms. http://192.168.1.125:8096/Sessions/Playing/Ping
2015-12-29 00:02:38.6244 Info HttpServer: HTTP OPTIONS http://192.168.1.125:8096/Sessions/Playing/Progress. UserAgent: Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.90 Safari/537.36 CrKey/1.17.46278
2015-12-29 00:02:38.6244 Info HttpServer: HTTP Response 200 to 192.168.1.84. Time: 0ms. http://192.168.1.125:8096/Sessions/Playing/Progress
2015-12-29 00:02:38.6400 Info HttpServer: HTTP POST http://192.168.1.125:8096/Sessions/Playing/Progress. UserAgent: Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.90 Safari/537.36 CrKey/1.17.46278
2015-12-29 00:02:38.6400 Info HttpServer: HTTP Response 204 to 192.168.1.84. Time: 0ms. http://192.168.1.125:8096/Sessions/Playing/Progress
2015-12-29 00:02:39.9816 Info HttpServer: HTTP POST http://192.168.1.125:8096/mediabrowser/Users/authenticatebyname. UserAgent: Mozilla/5.0 (Macintosh; Intel 
Link to comment
Share on other sites

You are not using stable in the log you posted. To test, you need to uninstall beta, make sure you don't have auto updates enabled in Kodi and then install stable.

Link to comment
Share on other sites

You are not using stable in the log you posted. To test, you need to uninstall beta, make sure you don't have auto updates enabled in Kodi and then install stable.

 

Sorry about that, just wiped the plugin but having trouble installing stable, keep getting:

 

00:47:17  50.192154 T:1768096768   ERROR: CAddonInstallJob[plugin.video.emby]: failed to install dependency plugin.video.emby.movies

 

 

Let me keep playing with it.

Link to comment
Share on other sites

Hmmm.... The dependencies are only part of beta. Curious.

 

Just pulled the zip file down manually and installed it.

 

Ok Kodi Log for the failure, when trying to playto from Chrome, same error when trying from the Emby IOS App as well.  Now I did not wait to complete a full sync.

 

01:12:38 199.417480 T:1805644704  NOTICE: EMBY Service -> Starting Monitor

01:12:38 199.417862 T:1805644704  NOTICE: EMBY Service -> ======== START EMBY ========

01:12:38 199.419067 T:1805644704  NOTICE: EMBY Service -> Platform: Linux/RPi

01:12:38 199.419388 T:1805644704  NOTICE: EMBY Service -> KODI Version: 16.0-BETA3 Git:d24a49e

01:12:38 199.419617 T:1805644704  NOTICE: EMBY Service -> EMBY Version: 1.1.62

01:12:38 199.425903 T:1805644704  NOTICE: EMBY Service -> Using plugin paths: True

01:12:38 199.426254 T:1805644704  NOTICE: EMBY Service -> Log Level: 0

01:12:41 202.500259 T:1805644704  NOTICE: File_Lock_On /storage/.kodi/addons/plugin.video.emby/machine_guid.lock obtained

01:12:41 202.511536 T:1805644704  NOTICE: File_Lock_On /storage/.kodi/addons/plugin.video.emby/machine_guid.lock released

01:12:53 215.335373 T:1637872544  NOTICE: EMBY UserClient -> |---- Starting UserClient ----|

01:12:55 216.541946 T:1593828256  NOTICE: EMBY LibrarySync -> --- Starting Library Sync Thread ---

01:12:55 216.581345 T:1593828256  NOTICE: EMBY LibrarySync -> DB Version:

01:12:56 217.602951 T:1593828256  NOTICE: EMBY LibrarySync -> Sources.xml created.

01:13:50 272.054230 T:1520432032   ERROR: ERROR:root:'Path'

01:13:50 272.054718 T:1520432032  NOTICE: .

01:13:50 272.055145 T:1520432032   ERROR:   File "/storage/.kodi/addons/plugin.video.emby/resources/lib/websocket.py", line 894, in _callback

01:13:50 272.059143 T:1520432032   ERROR:     callback(self, *args)

01:13:50 272.059509 T:1520432032   ERROR:   File "/storage/.kodi/addons/plugin.video.emby/resources/lib/WebSocketClient.py", line 97, in on_message

01:13:50 272.060913 T:1520432032   ERROR:     PlaybackUtils().PLAYAllItems(itemIds, startPositionTicks)

01:13:50 272.061218 T:1520432032   ERROR:   File "/storage/.kodi/addons/plugin.video.emby/resources/lib/PlaybackUtils.py", line 389, in PLAYAllItems

01:13:50 272.062683 T:1520432032   ERROR:     addition = self.addPlaylistItem(playlist, result)

01:13:50 272.062958 T:1520432032   ERROR:   File "/storage/.kodi/addons/plugin.video.emby/resources/lib/PlaybackUtils.py", line 426, in addPlaylistItem

01:13:50 272.063263 T:1520432032   ERROR:     playurl = PlayUtils().getPlayUrl(server, id, item)

01:13:50 272.063507 T:1520432032   ERROR:   File "/storage/.kodi/addons/plugin.video.emby/resources/lib/PlayUtils.py", line 35, in getPlayUrl

01:13:50 272.064819 T:1520432032   ERROR:     playurl = self.directStream(result, server, id)

01:13:50 272.065155 T:1520432032   ERROR:   File "/storage/.kodi/addons/plugin.video.emby/resources/lib/PlayUtils.py", line 160, in directStream

01:13:50 272.065613 T:1520432032   ERROR:     if result['Path'].endswith('.strm'):

01:14:34 315.944916 T:1520432032   ERROR: ERROR:root:'Path'

01:14:34 315.945343 T:1520432032  NOTICE: .

01:14:34 315.945648 T:1520432032   ERROR:   File "/storage/.kodi/addons/plugin.video.emby/resources/lib/websocket.py", line 894, in _callback

01:14:34 315.945953 T:1520432032   ERROR:     callback(self, *args)

01:14:34 315.946136 T:1520432032   ERROR:   File "/storage/.kodi/addons/plugin.video.emby/resources/lib/WebSocketClient.py", line 97, in on_message

01:14:34 315.946381 T:1520432032   ERROR:     PlaybackUtils().PLAYAllItems(itemIds, startPositionTicks)

01:14:34 315.946503 T:1520432032   ERROR:   File "/storage/.kodi/addons/plugin.video.emby/resources/lib/PlaybackUtils.py", line 389, in PLAYAllItems

01:14:34 315.946930 T:1520432032   ERROR:     addition = self.addPlaylistItem(playlist, result)

01:14:34 315.947083 T:1520432032   ERROR:   File "/storage/.kodi/addons/plugin.video.emby/resources/lib/PlaybackUtils.py", line 426, in addPlaylistItem

01:14:34 315.947296 T:1520432032   ERROR:     playurl = PlayUtils().getPlayUrl(server, id, item)

01:14:34 315.947418 T:1520432032   ERROR:   File "/storage/.kodi/addons/plugin.video.emby/resources/lib/PlayUtils.py", line 35, in getPlayUrl

01:14:34 315.947601 T:1520432032   ERROR:     playurl = self.directStream(result, server, id)

01:14:34 315.947723 T:1520432032   ERROR:   File "/storage/.kodi/addons/plugin.video.emby/resources/lib/PlayUtils.py", line 160, in directStream

01:14:34 315.947906 T:1520432032   ERROR:     if result['Path'].endswith('.strm'):

Link to comment
Share on other sites

Hm, I thought I had fixed this error. However, as I said previously I really doubt we supported it at any time. We support content that is imported into Kodi + channels.

Link to comment
Share on other sites

Hm, I thought I had fixed this error. However, as I said previously I really doubt we supported it at any time. We support content that is imported into Kodi + channels.

 

Totally understandable.  What makes the playback of a LiveTV stream via PlayTo different than a movie though?  Is it just that Kodi is playing back from Samba via Play To - Movie, and not via Play to - Live TV?

Link to comment
Share on other sites

We just don't have it implemented. I built playback process around certain cues. Right now it's trying to direct steam live tv like it does for channels. But live tv uses a different type of playback url to work.

 

 

Sent from my iPhone using Tapatalk

  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...