Jump to content

SSL Playback


jurmb84

Recommended Posts

jurmb84

First of all, LOVE the new Emby Theatre... Thanx for all your hard work... 

 

I prefer to use SSL as there are times that I travel and when using hotel wifi, I prefer to keep this secure... Playback on normal HTTP is working flawlessly... However, when I connect to my server via SSL, it dies... 

 

Here is the portion of the server log when attempting SSL Playback:

2016-06-27 08:37:15.7681 Info HttpServer: HTTP GET https://remoteurl:8920/Users/f4ede5b3a0c5bec4e22a34a1316742c0/Items?ImageTypes=Backdrop&EnableImageTypes=Backdrop&IncludeItemTypes=Movie,Series,MusicArtist,Game&SortBy=Random&Recursive=true&Fields=Taglines,PrimaryImageAspectRatio&ImageTypeLimit=1&StartIndex=0&Limit=200. UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) EmbyTheater/2.4.4 Chrome/51.0.2704.84 Electron/1.2.2 Safari/537.36
2016-06-27 08:37:16.2520 Info HttpServer: HTTP Response 200 to 205.185.214.90. Time: 484ms. https://remoteurl:8920/Users/f4ede5b3a0c5bec4e22a34a1316742c0/Items?ImageTypes=Backdrop&EnableImageTypes=Backdrop&IncludeItemTypes=Movie,Series,MusicArtist,Game&SortBy=Random&Recursive=true&Fields=Taglines,PrimaryImageAspectRatio&ImageTypeLimit=1&StartIndex=0&Limit=200
2016-06-27 08:37:16.8737 Info HttpServer: HTTP GET https://remoteurl:8920/Items/b2ac3a8499f33a07771bed6e509a60dd/Images/Backdrop?maxWidth=1920&tag=4c7769533d1bbae3dc2e9d00633e62ef&quality=80. UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) EmbyTheater/2.4.4 Chrome/51.0.2704.84 Electron/1.2.2 Safari/537.36
2016-06-27 08:37:17.0845 Info HttpServer: HTTP Response 200 to 205.185.214.90. Time: 211ms. https://remoteurl:8920/Items/b2ac3a8499f33a07771bed6e509a60dd/Images/Backdrop?maxWidth=1920&tag=4c7769533d1bbae3dc2e9d00633e62ef&quality=80
2016-06-27 08:37:24.4164 Info HttpServer: HTTP GET https://remoteurl:8920/Users/f4ede5b3a0c5bec4e22a34a1316742c0/Items/9e545f3eb415509b4cbee7fae4cae878/Intros. UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) EmbyTheater/2.4.4 Chrome/51.0.2704.84 Electron/1.2.2 Safari/537.36
2016-06-27 08:37:24.4164 Info HttpServer: HTTP Response 200 to 205.185.214.90. Time: 1ms. https://remoteurl:8920/Users/f4ede5b3a0c5bec4e22a34a1316742c0/Items/9e545f3eb415509b4cbee7fae4cae878/Intros
2016-06-27 08:37:24.5550 Info HttpServer: HTTP GET https://remoteurl:8920/Playback/BitrateTest?Size=1000000. UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) EmbyTheater/2.4.4 Chrome/51.0.2704.84 Electron/1.2.2 Safari/537.36
2016-06-27 08:37:25.3714 Info HttpServer: HTTP GET https://remoteurl:8920/Playback/BitrateTest?Size=2400000. UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) EmbyTheater/2.4.4 Chrome/51.0.2704.84 Electron/1.2.2 Safari/537.36
2016-06-27 08:37:27.3881 Info HttpServer: HTTP POST https://remoteurl:8920/Items/9e545f3eb415509b4cbee7fae4cae878/PlaybackInfo?UserId=f4ede5b3a0c5bec4e22a34a1316742c0&StartTimeTicks=0. UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) EmbyTheater/2.4.4 Chrome/51.0.2704.84 Electron/1.2.2 Safari/537.36
2016-06-27 08:37:27.3881 Info App: Profile: Unknown Profile, Path: \\DISKSTATION\HTPC_MEDIA\avi-Episodes\Rookie Blue\Season06\Rookie Blue.S06E03.Uprising.mp4, isEligibleForDirectPlay: True, isEligibleForDirectStream: True
2016-06-27 08:37:27.4092 Info App: RemoteClientBitrateLimit: 6000000, RemoteIp: 205.185.214.90, IsInLocalNetwork: False
2016-06-27 08:37:27.4092 Info App: Profile: Unknown Profile, Path: \\DISKSTATION\HTPC_MEDIA\avi-Episodes\Rookie Blue\Season06\Rookie Blue.S06E03.Uprising.mp4, isEligibleForDirectPlay: True, isEligibleForDirectStream: True
2016-06-27 08:37:27.4092 Info App: RemoteClientBitrateLimit: 6000000, RemoteIp: 205.185.214.90, IsInLocalNetwork: False
2016-06-27 08:37:27.4092 Info App: Profile: Unknown Profile, Path: \\DISKSTATION\HTPC_MEDIA\avi-Episodes\Rookie Blue\Season06\Rookie Blue.S06E03.Uprising.mp4, isEligibleForDirectPlay: True, isEligibleForDirectStream: True
2016-06-27 08:37:27.4092 Info HttpServer: HTTP Response 200 to 205.185.214.90. Time: 22ms. https://remoteurl:8920/Items/9e545f3eb415509b4cbee7fae4cae878/PlaybackInfo?UserId=f4ede5b3a0c5bec4e22a34a1316742c0&StartTimeTicks=0
2016-06-27 08:37:28.2327 Info HttpServer: HTTP Response 200 to 205.185.214.90. Time: 3678ms (slow). https://remoteurl:8920/Playback/BitrateTest?Size=1000000
2016-06-27 08:37:31.7215 Info HttpServer: HTTP Response 200 to 205.185.214.90. Time: 6350ms (slow). https://remoteurl:8920/Playback/BitrateTest?Size=2400000
2016-06-27 08:37:37.4024 Info HttpServer: HTTP GET https://remoteurl:8920/Videos/9e545f3eb415509b4cbee7fae4cae878/stream.mp4?Static=true&mediaSourceId=9e545f3eb415509b4cbee7fae4cae878&deviceId=devId. UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; Media Center PC 6.0; HRTS; GWX:MANAGED)
2016-06-27 08:37:38.1566 Error HttpResultFactory: Error streaming data
	*** Error Report ***
	Version: 3.0.5972.0
	Command line: C:\Users\userprofile\AppData\Roaming\MediaBrowser-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\userprofile\AppData\Roaming\MediaBrowser-Server
	Application Path: C:\Users\userprofile\AppData\Roaming\MediaBrowser-Server\System\MediaBrowser.ServerApplication.exe
	Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.
	System.IO.IOException
	   at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
	   at System.Net.Security._SslStream.StartWriting(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
	   at System.Net.Security._SslStream.ProcessWrite(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
	   at System.Net.Security.SslStream.Write(Byte[] buffer, Int32 offset, Int32 count)
	   at SocketHttpListener.Net.ResponseStream.InternalWrite(Byte[] buffer, Int32 offset, Int32 count)
	   at SocketHttpListener.Net.ResponseStream.Write(Byte[] buffer, Int32 offset, Int32 count)
	   at System.IO.Stream.InternalCopyTo(Stream destination, Int32 bufferSize)
	   at MediaBrowser.Server.Implementations.HttpServer.StreamWriter.WriteToInternal(Stream responseStream)
	InnerException: System.Net.Sockets.SocketException
	An existing connection was forcibly closed by the remote host
	   at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
	   at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
	
2016-06-27 08:37:38.1566 Error HttpAsyncTaskHandler: Error occured while Processing Request: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.
	*** Error Report ***
	Version: 3.0.5972.0
	Command line: C:\Users\userprofile\AppData\Roaming\MediaBrowser-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\userprofile\AppData\Roaming\MediaBrowser-Server
	Application Path: C:\Users\userprofile\AppData\Roaming\MediaBrowser-Server\System\MediaBrowser.ServerApplication.exe
	Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.
	System.IO.IOException
	   at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
	   at System.Net.Security._SslStream.StartWriting(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
	   at System.Net.Security._SslStream.ProcessWrite(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
	   at System.Net.Security.SslStream.Write(Byte[] buffer, Int32 offset, Int32 count)
	   at SocketHttpListener.Net.ResponseStream.InternalWrite(Byte[] buffer, Int32 offset, Int32 count)
	   at SocketHttpListener.Net.ResponseStream.Write(Byte[] buffer, Int32 offset, Int32 count)
	   at ServiceStack.Formats.HtmlFormat.SerializeToStream(IRequest request, Object response, IResponse httpRes)
	   at ServiceStack.HttpResponseExtensionsInternal.WriteErrorToResponse(IResponse httpRes, IRequest httpReq, String contentType, String operationName, String errorMessage, Exception ex, Int32 statusCode)
	   at ServiceStack.ServiceStackHost.OnUncaughtException(IRequest httpReq, IResponse httpRes, String operationName, Exception ex)
	   at ServiceStack.HostContext.RaiseUncaughtException(IRequest httpReq, IResponse httpRes, String operationName, Exception ex)
	   at ServiceStack.HttpResponseExtensionsInternal.WriteToResponse(IResponse response, Object result, ResponseSerializerDelegate defaultAction, IRequest request, Byte[] bodyPrefix, Byte[] bodySuffix)
	   at ServiceStack.HttpResponseExtensionsInternal.WriteToResponse(IResponse httpRes, IRequest httpReq, Object result, Byte[] bodyPrefix, Byte[] bodySuffix)
	   at ServiceStack.HttpResponseExtensionsInternal.WriteToResponse(IResponse httpRes, IRequest httpReq, Object result)
	   at ServiceStack.Host.Handlers.ServiceStackHandlerBase.HandleResponse(Object response, Func`2 callback, Func`2 errorCallback)
	InnerException: System.Net.Sockets.SocketException
	An existing connection was forcibly closed by the remote host
	   at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
	   at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
	
2016-06-27 08:37:38.1566 Info HttpServer: HTTP Response 500 to 205.185.214.90. Time: 756ms. https://remoteurl:8920/Videos/9e545f3eb415509b4cbee7fae4cae878/stream.mp4?Static=true&mediaSourceId=9e545f3eb415509b4cbee7fae4cae878&deviceId=devId


Here is the portion of the Emby Theatre log when attempting SSL Playback:

2016-06-27 08:37:29.5708 Info App: Http POST directshowplayer/play
2016-06-27 08:37:29.5708 Info DirectShowPlayerBridge: Playing media source {"Protocol":"File","Id":"9e545f3eb415509b4cbee7fae4cae878","Path":"\\\\DISKSTATION\\HTPC_MEDIA\\avi-Episodes\\Rookie Blue\\Season06\\Rookie Blue.S06E03.Uprising.mp4","Type":"Default","Container":"mp4","Name":"480P/H264/AAC","RunTimeTicks":25676800000,"ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"RequiresOpening":false,"RequiresClosing":false,"VideoType":"VideoFile","MediaStreams":[{"Codec":"aac","CodecTag":"mp4a","Language":"und","DisplayTitle":"Und AAC stereo (D)","IsInterlaced":false,"ChannelLayout":"stereo","BitRate":135973,"Channels":2,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Profile":"LC","Type":"Audio","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"h264","CodecTag":"avc1","Language":"und","NalLengthSize":"4","IsInterlaced":false,"IsAVC":true,"BitRate":886573,"BitDepth":8,"RefFrames":5,"IsDefault":true,"IsForced":false,"Height":404,"Width":720,"AverageFrameRate":23.97602,"RealFrameRate":23.97602,"Profile":"High","Type":"Video","AspectRatio":"16:9","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":31,"IsAnamorphic":false}],"PlayableStreamFileNames":[],"Formats":[],"Bitrate":1026688,"RequiredHttpHeaders":{},"DefaultAudioStreamIndex":0}
2016-06-27 08:37:29.5708 Info InternalDirectShowPlayer: Playing Uprising. Audio Renderer: Default, Madvr: False, xySubFilter: True, ParentID: 113949cadcabd8a40d583551542f8db1
2016-06-27 08:37:29.5708 Info InternalDirectShowPlayer: Playing Path https://remoteurl:8920/Videos/9e545f3eb415509b4cbee7fae4cae878/stream.mp4?Static=true&mediaSourceId=9e545f3eb415509b4cbee7fae4cae878&deviceId=devID&api_key=apiKey
2016-06-27 08:37:29.5708 Info InternalDirectShowPlayer: Configure LAV Splitter
2016-06-27 08:37:29.5778 Info InternalDirectShowPlayer: SetSubtitleMode: 
2016-06-27 08:37:29.5778 Info InternalDirectShowPlayer: SetPGSForcedStream: False
2016-06-27 08:37:29.5778 Info InternalDirectShowPlayer: SetPGSOnlyForced: False
2016-06-27 08:37:30.7378 Error InternalDirectShowPlayer: InvokeOnPlayerThread
	Could not render any streams from the source Uri
	System.Exception
	   at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
	   at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
	   at System.Windows.Forms.Control.Invoke(Delegate method)
	   at Emby.Theater.DirectShow.InternalDirectShowPlayer.InvokeOnPlayerThread(Action action, Boolean throwOnError)
	
2016-06-27 08:37:30.7378 Error InternalDirectShowPlayer: Error beginning playback
	Could not render any streams from the source Uri
	System.Exception
	   at Emby.Theater.DirectShow.InternalDirectShowPlayer.InvokeOnPlayerThread(Action action, Boolean throwOnError)
	   at Emby.Theater.DirectShow.InternalDirectShowPlayer.PlayTrack(String path, Int64 startPositionTicks, Boolean isVideo, BaseItemDto item, MediaSourceInfo mediaSource, String forcedVideoRenderer)
	   at Emby.Theater.DirectShow.InternalDirectShowPlayer.Play(String path, Int64 startPositionTicks, Boolean isVideo, BaseItemDto item, MediaSourceInfo mediaSource, String forcedVideoRenderer)
	
2016-06-27 08:37:38.3233 Debug App: Exiting HttpConnection.OnReadInternal because nread=0. ConnectionId: b6dd197357174f59818f58d7d48a0737


My hope is that you can use this data to help resolve this issue...

 

Cheers and Thanks in advance...

Edited by jurmb84
Link to comment
Share on other sites

Thanks for the info. Looks like the error is deep down in lav filters. If you install lav filters and then try to play with windows media player, does that work?

Link to comment
Share on other sites

jurmb84

I just tested with the following:

 

LAV-Filters 64-bit 0.68.1

MPC-HC 64-bit 1.7.10

 

Also Tried with WMP on Windows 7 Pro

 

Worked like a charm over SSL using the url's listed above (adding in the altered sections for privacy)

 

Hope that helps...

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...