Live Streaming on the Mobile network

Sep 26, 2013 at 11:24 PM
Hi there,

I'm using the SamplePlayer.WP8 and when I put in a link which streams a live TV channel it works fine on a Lumia 925 while on WIFI.

However when I turn off wifi, onto 4G, it doesn't seem to want to play. The loading animation doesn't play at all.

Any ideas on how to enable this?

Thanks
Coordinator
Sep 27, 2013 at 1:17 AM
What is the bitrate of the stream you are trying to play?

Are there any errors in the Debug Output window?

You might also want to try running it with HlsView.WP8 to see if it gives some kind of error message on your stream.
Sep 27, 2013 at 7:40 AM
The bitrate of a couple of streams I tried are 1Mbps and 4Mbps.

The standard apple bipbop test works - but that's not a live channel.

Nothing comes up in the debug windows.

I'll try HlsView.WP8 later today.

Thanks.
Coordinator
Sep 27, 2013 at 8:45 AM
Do you mean that there is nothing in particular in the debug output or that there is none at all? A debug build started through the debugger should generate something like what you see below. If you get a trace and can't publish the URLs here, either "X" them out, send me a private message, or both.

Also, are you using the phonesm-20130921 binary build?

Thanks.


From playing the NASA feed on Windows 8.1:
PlaylistSegmentManager.CheckReload (09/27/2013 01:29:06 -07:00)
PlaylistSegmentManager.CheckReload is starting ReadSubList (09/27/2013 01:29:06 -07:00)
PlaylistSegmentManager.ReadSubList (09/27/2013 01:29:06 -07:00)
PlaylistSegmentManager.UpdatePlaylist: playlist http://public.infozen.cshls.lldns.net/infozen/public/public/public_200.m3u8 loaded with 8 entries in 00:00:00.6674279. index: -1 dynamic: True expires: 00:00:12 (09/27/2013 01:29:07 -07:00)
SubPool 327680: new 0 alloc 0 free 0 allocSize 0
SubPool 1310720: new 0 alloc 0 free 0 allocSize 0
Pool clear: alloc 0 free 0 req bytes 0, alloc bytes 0 free bytes 0
MediaElement State: Opening
PlaylistSegmentManager.CheckReload (09/27/2013 01:29:07 -07:00)
'SamplePlayer.Win81.exe' (CLR v4.0.30319: Immersive Application Domain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Threading\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Threading.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SamplePlayer.Win81.exe' (CLR v4.0.30319: Immersive Application Domain): Loaded 'C:\WINDOWS\system32\WinMetadata\Windows.Media.winmd'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
PlaylistSegmentManager.CheckReload (09/27/2013 01:29:07 -07:00)
++++ Starting http://public.infozen.cshls.lldns.net/infozen/infozen_public/streams/public/public_200Num18341.ts at 09/27/2013 01:29:07 -07:00.  Total memory: 966464
Media MediaStreamSourceAssigned: Idle -> Assigned at 09/27/2013 01:29:07 -07:00
'SamplePlayer.Win81.exe' (CLR v4.0.30319: Immersive Application Domain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.WindowsRuntime.UI.Xaml\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.WindowsRuntime.UI.Xaml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
MediaElement State: Opening
'SamplePlayer.Win81.exe' (CLR v4.0.30319: Immersive Application Domain): Loaded 'C:\src\Phone\Hls2013\phonesm\Source\App\SamplePlayer.Win81\bin\x64\Debug\AppX\Microsoft.Threading.Tasks.Extensions.DLL'. Cannot find or open the PDB file.
Create PES Video stream (AVC video stream conforming to one or more profiles defined in Annex A of ITU-T Rec. H.264 | ISO/IEC 14496-10 or AVC video sub-bitstream as defined in 2.1.78) with PID 257
Create PES Audio stream (ISO/IEC 13818-7 Audio with ADTS transport syntax) with PID 258
Configuration AAC layer 0 profile "AAC LC (Low Complexity), 11.025kHz 2 channels" channels 2 sampling 11.025kHz length 361 CRC False
MediParser.CreatePacketHandler: Sync to start position 00:00:00 at 15:17:03.7040000
BufferingManager.UpdateBuffering: 0.00%, 00:00:00 duration, 354 size, 1564504 memory
A first chance exception of type 'System.NotSupportedException' occurred in System.dll
---- Completed http://public.infozen.cshls.lldns.net/infozen/infozen_public/streams/public/public_200Num18341.ts at 09/27/2013 01:29:09 -07:00 (00:00:01.1622451).  Total memory: 1908624
PlaylistSegmentManager.CheckReload (09/27/2013 01:29:09 -07:00)
++++ Starting http://public.infozen.cshls.lldns.net/infozen/infozen_public/streams/public/public_200Num18342.ts at 09/27/2013 01:29:09 -07:00.  Total memory: 1916816
MediParser.CreatePacketHandler: Sync to start position 00:00:00 at 15:17:03.8000000
BufferingManager.UpdateBuffering: 0.38%, 00:00:00.0960000 duration, 1152 size, 1965960 memory
Configuration H.264 "Baseline" profile, level 3.1 428x240
MediaElement State: Opening
MediaElement State: Opening
WinRtMediaStreamSource.MediaStreamSourceOnStarting()
'SamplePlayer.Win81.exe' (CLR v4.0.30319: Immersive Application Domain): Loaded 'C:\WINDOWS\system32\WinMetadata\Windows.Storage.winmd'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
MediaElement State: Buffering
BufferingManager.UpdateBuffering: 24.95%, 00:00:03.0330000 duration, 89433 size, 2097032 memory
BufferingManager.UpdateBuffering: 48.60%, 00:00:05.9690000 duration, 174181 size, 2195336 memory
A first chance exception of type 'System.NotSupportedException' occurred in System.dll
---- Completed http://public.infozen.cshls.lldns.net/infozen/infozen_public/streams/public/public_200Num18342.ts at 09/27/2013 01:29:09 -07:00 (00:00:00.7448015).  Total memory: 2195336
PlaylistSegmentManager.CheckReload (09/27/2013 01:29:09 -07:00)
++++ Starting http://public.infozen.cshls.lldns.net/infozen/infozen_public/streams/public/public_200Num18343.ts at 09/27/2013 01:29:09 -07:00.  Total memory: 2211720
BufferingManager.UpdateBuffering: 48.75%, 00:00:06.0360000 duration, 174724 size, 2244488 memory
A first chance exception of type 'System.NotSupportedException' occurred in System.dll
---- Completed http://public.infozen.cshls.lldns.net/infozen/infozen_public/streams/public/public_200Num18343.ts at 09/27/2013 01:29:10 -07:00 (00:00:00.7561220).  Total memory: 1462768
BufferingManager.UpdateBuffering: 70.17%, 00:00:08.9162778 duration, 251473 size, 1470960 memory
PlaylistSegmentManager.CheckReload (09/27/2013 01:29:10 -07:00)
++++ Starting http://public.infozen.cshls.lldns.net/infozen/infozen_public/streams/public/public_200Num18344.ts at 09/27/2013 01:29:10 -07:00.  Total memory: 1470960
BufferingManager.UpdateBuffering: 73.61%, 00:00:09.0090000 duration, 263819 size, 1530672 memory
A first chance exception of type 'System.NotSupportedException' occurred in System.dll
---- Completed http://public.infozen.cshls.lldns.net/infozen/infozen_public/streams/public/public_200Num18344.ts at 09/27/2013 01:29:11 -07:00 (00:00:00.7024629).  Total memory: 1620784
BufferingManager.UpdateBuffering: 97.78%, 00:00:11.9750000 duration, 350461 size, 1637168 memory
PlaylistSegmentManager.CheckReload (09/27/2013 01:29:11 -07:00)
++++ Starting http://public.infozen.cshls.lldns.net/infozen/infozen_public/streams/public/public_200Num18345.ts at 09/27/2013 01:29:11 -07:00.  Total memory: 1637168
BufferingManager.UpdateBuffering: 98.35%, 00:00:12.1080000 duration, 352490 size, 1678128 memory
BufferingManager.UpdateBuffering done buffering: 00:00:12.4420000 duration, 358530 size, 1694512 memory
MediaElement State: Buffering
MediaElement State: Buffering
MediaElement State: Playing
MediaElement State: Playing
Sep 27, 2013 at 10:34 PM
Yes im using the latest download.

Here is the debug:
An exception of type 'System.Net.WebException' occurred in System.Windows.ni.dll and wasn't handled before a managed/native boundary
An exception of type 'System.Net.WebException' occurred in System.Windows.ni.dll and wasn't handled before a managed/native boundary
An exception of type 'System.Net.Http.HttpRequestException' occurred in System.Net.Http.DLL and wasn't handled before a managed/native boundary
'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\windows\system32\en-US\mscorlib.debug.resources.dll'. Module was built without symbols.
An exception of type 'System.Net.Http.HttpRequestException' occurred in Microsoft.Threading.Tasks.DLL and wasn't handled before a managed/native boundary
An exception of type 'System.Net.Http.HttpRequestException' occurred in Microsoft.Threading.Tasks.DLL and wasn't handled before a managed/native boundary
An exception of type 'System.Net.Http.HttpRequestException' occurred in SM.Media.DLL and wasn't handled before a managed/native boundary
An exception of type 'System.Net.Http.HttpRequestException' occurred in Microsoft.Threading.Tasks.DLL and wasn't handled before a managed/native boundary
ProgramManager.LoadAsync: Response status code does not indicate success: 403 (Forbidden).
MediaElementWrapper.SetMediaSource: program not found
A first chance exception of type 'System.IO.FileNotFoundException' occurred in sm.media.mediaplayer.wp8.DLL
An exception of type 'System.IO.FileNotFoundException' occurred in sm.media.mediaplayer.wp8.DLL and wasn't handled before a managed/native boundary
MediaElementWrapper.SetMediaSource: unable to load playlist: Unable to load program
A first chance exception of type 'System.IO.FileNotFoundException' occurred in sm.media.mediaplayer.wp8.DLL
An exception of type 'System.IO.FileNotFoundException' occurred in sm.media.mediaplayer.wp8.DLL and wasn't handled before a managed/native boundary
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.ni.dll
An exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.ni.dll and wasn't handled before a managed/native boundary
The thread 0x28 has exited with code 259 (0x103).
The program '[4140] TaskHost.exe' has exited with code 0 (0x0).
Coordinator
Sep 27, 2013 at 11:37 PM
Edited Sep 28, 2013 at 12:19 AM
Could this be a private resource you can get at through WiFi but not from an external address? The "ProgramManager.LoadAsync: Response status code does not indicate success: 403 (Forbidden)," bit suggests that the server is not permitting access. If you have access to the server, can you see anything odd in the server logs?
Dec 15, 2013 at 2:48 AM
I have the same problem, can't stream NASA chanel! Any ideas on how to reslove this?
Thank!
Coordinator
Dec 15, 2013 at 8:02 PM
Could you provide some more details? What version of the code are you trying to run on what kind of device (or emulator)? How, exactly is it not working? (E.g., Are you having problems compiling? Is the screen garbled? Does it just hang?)
Dec 20, 2013 at 4:41 PM
Edited Dec 20, 2013 at 4:42 PM
Hi henric,
Thank for your reply!

I have a http stream link: http://113.160.49.36/lives/origin01/vtc1mb.isml/vtc1mb.m3u8

Error code: 3108, unable to play media

And here is debug output:
 TsMediaStreamSource.OpenMediaAsync()
 Media OpenMediaAsyncCalled: Idle -> Opening at 21/12/2013 12:24:02 SA +07:00
 MediaElementWrapper.StartPlaybackAsync
 MediaElementWrapper.TsMediaManagerOnOnStateChange to OpenMedia: 
 PlaylistSegmentManager.CheckReload (21/12/2013 12:24:02 SA +07:00)
 PlaylistSegmentManager.CheckReload is starting ReadSubList (21/12/2013 12:24:02 SA +07:00)
 PlaylistSegmentManager.ReadSubList (21/12/2013 12:24:02 SA +07:00)
 An exception of type 'System.Net.WebException' occurred in System.Windows.ni.dll and wasn't handled before a managed/native boundary
 An exception of type 'System.Net.WebException' occurred in System.Windows.ni.dll and wasn't handled before a managed/native boundary
 An exception of type 'System.Net.Http.HttpRequestException' occurred in System.Net.Http.DLL and wasn't handled before a managed/native boundary
 An exception of type 'System.Net.Http.HttpRequestException' occurred in Microsoft.Threading.Tasks.DLL and wasn't handled before a managed/native boundary
 An exception of type 'System.Net.Http.HttpRequestException' occurred in Microsoft.Threading.Tasks.DLL and wasn't handled before a managed/native boundary
 An exception of type 'System.Net.Http.HttpRequestException' occurred in SM.Media.DLL and wasn't handled before a managed/native boundary
 An exception of type 'System.Net.Http.HttpRequestException' occurred in Microsoft.Threading.Tasks.DLL and wasn't handled before a managed/native boundary
 An exception of type 'System.Net.Http.HttpRequestException' occurred in Microsoft.Threading.Tasks.DLL and wasn't handled before a managed/native boundary
 An exception of type 'System.Net.Http.HttpRequestException' occurred in Microsoft.Threading.Tasks.DLL and wasn't handled before a managed/native boundary
 An exception of type 'System.Net.Http.HttpRequestException' occurred in Microsoft.Threading.Tasks.DLL and wasn't handled before a managed/native boundary
 PlaylistSegmentManager.ReadSubList() failed: Response status code does not indicate success: 403 (Forbidden).
 PlaylistSegmentManager.ReadSubList(): retrying update in 00:00:03.9610000
 An exception of type 'System.IO.FileNotFoundException' occurred in SM.Media.DLL and wasn't handled before a managed/native boundary
 An exception of type 'System.IO.FileNotFoundException' occurred in Microsoft.Threading.Tasks.DLL and wasn't handled before a managed/native boundary
 TsMediaManager.PlayAsync failed: Unable to find the specified file.
 MediaElementWrapper.TsMediaManagerOnOnStateChange to Error: Unable to play media
 TsMediaManager.PlayAsync(): reader create failed: One or more errors occurred.
 An exception of type 'System.AggregateException' occurred in SM.Media.DLL and wasn't handled before a managed/native boundary
 TsMediaStreamSource.CloseMedia()
 An exception of type 'System.AggregateException' occurred in Microsoft.Threading.Tasks.DLL and wasn't handled before a managed/native boundary
 ValidateEvent Invalid state transition: state Opening event CloseMediaCalled
 Command failed: One or more errors occurred.
 MediaElementWrapper.MediaElement_MediaFailed
Coordinator
Dec 20, 2013 at 11:43 PM
Do you get a 403 if you try opening that URL in the phone's IE? Does anything behave differently if the phone is or is not tethered? If you have access to the server logs, do you see anything there?