Could you help me with streaming pls ?

Jul 30, 2013 at 7:42 PM
Edited Jul 30, 2013 at 8:45 PM
Hi, henric Thanks you for your excellent work !
I'm new to wp8. I want to play streaming on wp8 but I don't know how to play m3u8 file. like in android or iOS. After searching I found this project and I hope it will help me.
It work great with some m3u8 but it can't play some m3u8 that can play on android and iOS.
Could you please take a look to it for me pls ?

this is example my m3u8

playlist.m3u8
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=104000
chunklist-b104000.m3u8?wowzasessionid=xxxxxxx&stime=xxxxxx&etime=xxxxxx&encoded=xxxxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=414000
chunklist-b414000.m3u8?wowzasessionid=xxxxxxx&stime=xxxxxx&etime=xxxxxx&encoded=xxxxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=928000
chunklist-b928000.m3u8?wowzasessionid=xxxxxxx&stime=xxxxxx&etime=xxxxxx&encoded=xxxxxx
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1478000
chunklist-b1478000.m3u8?wowzasessionid=xxxxxx&stime=xxxxxx&etime=xxxxxx&encoded=xxxxxx
chunklist-b104000.m3u8
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:32
#EXT-X-MEDIA-SEQUENCE:1
#EXTINF:14.0,
media-b104000_1.ts?wowzasessionid=xxxxxx&stime=xxxxxx&etime=xxxxxx&encoded=xxxxxx
#EXTINF:31.9,
media-b104000_2.ts?wowzasessionid=xxxxxx&stime=xxxxxx&etime=xxxxxx&encoded=xxxxxx
#EXTINF:11.4,
media-b104000_3.ts?wowzasessionid=xxxxxx&stime=xxxxxx&etime=xxxxxx&encoded=xxxxxx
.....
#EXT-X-ENDLIST

ps. Sorry for my bad english

Coordinator
Jul 31, 2013 at 8:57 AM
The playlists look fine. There is probably something going on with the .ts files. Could you either send me a private message with the actual url or a copy of your output window when you try to play in Debug mode (it should look something like the below).

If this is an audio-only feed, take a look at this discussion: M3u8 with relative path for a workaround. The code assumes that .ts files will contain exactly two streams.

If you are using the binary build, could you give the latest source a try?

Thanks.
Play clicked
'TaskHost.exe' (Managed): Loaded '\Applications\Install\CBB0CD41-BF6E-4874-A1F1-EBC9A5A37E8F\Install\SM.TsParser.dll', Symbols loaded.
PlaylistSegmentManager.CheckReload (7/31/2013 1:41:48 -07:00)
PlaylistSegmentManager.CheckReload is starting ReadSubList (7/31/2013 1:41:48 -07:00)
PlaylistSegmentManager.ReadSubList (7/31/2013 1:41:48 -07:00)
'TaskHost.exe' (Managed): Loaded '\Applications\Install\CBB0CD41-BF6E-4874-A1F1-EBC9A5A37E8F\Install\System.Runtime.dll'
PlaylistSegmentManager.ReadSubList: playlist http://public.infozen.cshls.lldns.net/infozen/public/public/public_200.m3u8 loaded with 8 entries in 00:00:01.1130000. index: -1 dynamic: True expires: 00:00:12 (7/31/2013 1:41:49 -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
'TaskHost.exe' (Managed): Loaded '\Applications\Install\CBB0CD41-BF6E-4874-A1F1-EBC9A5A37E8F\Install\Microsoft.Threading.Tasks.Extensions.Phone.dll'
MediaElement State: Opening
PlaylistSegmentManager.CheckReload (7/31/2013 1:41:49 -07:00)
PlaylistSegmentManager.CheckReload (7/31/2013 1:41:49 -07:00)
Media MediaStreamSourceAssigned: Idle -> Assigned at 7/31/2013 1:41:49 -07:00
MediaElement State: Opening
TsMediaStreamSource.OpenMediaAsync()
Media OpenMediaAsyncCalled: Assigned -> Opening at 7/31/2013 1:41:49 -07:00
++++ Starting http://public.infozen.cshls.lldns.net/infozen/infozen_public/streams/public/public_200Num149803.ts at 7/31/2013 1:41:49 -07:00.  Total memory: 853152
MediaElement State: Opening
MediaElement State: Opening
'TaskHost.exe' (Managed): Loaded '\Applications\Install\CBB0CD41-BF6E-4874-A1F1-EBC9A5A37E8F\Install\Microsoft.Threading.Tasks.Extensions.dll'
---- Completed http://public.infozen.cshls.lldns.net/infozen/infozen_public/streams/public/public_200Num149803.ts at 7/31/2013 1:41:51 -07:00 (00:00:01.3980000).  Total memory: 1050292
PlaylistSegmentManager.CheckReload (7/31/2013 1:41:51 -07:00)
++++ Starting http://public.infozen.cshls.lldns.net/infozen/infozen_public/streams/public/public_200Num149804.ts at 7/31/2013 1:41:51 -07:00.  Total memory: 1055332
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)" channels 2 sampling 11.025kHz
MediParser.CreatePacketHandler: Sync to start position 00:00:00 at 18:47:14.8622444
BufferingManager.UpdateBuffering: 0.00%, 00:00:00 duration, 407 size, 1236008 memory
MediParser.CreatePacketHandler: Sync to start position 00:00:00 at 18:47:14.9222444
Configuration H.264 profile "Baseline" level 3.1 428x240
MediaElement State: Opening
TsMediaStreamSource: ReportOpenMediaCompleted (2 streams)
TsMediaStreamSource: ReportOpenMediaCompleted CanSeek = False
Media CallingReportOpenMediaCompletedLive: Opening -> Playing at 7/31/2013 1:41:51 -07:00
TsMediaStreamSource.SeekAsync(00:00:00)
Media SeekAsyncCalled: Playing -> Seeking at 7/31/2013 1:41:51 -07:00
Media CallingReportSeekCompleted: Seeking -> Playing at 7/31/2013 1:41:51 -07:00
TsMediaStreamSource.SeekHandler(00:00:00) completed, actual: 00:00:00
MediaElement State: Playing
---- Completed http://public.infozen.cshls.lldns.net/infozen/infozen_public/streams/public/public_200Num149804.ts at 7/31/2013 1:41:52 -07:00 (00:00:00.9220000).  Total memory: 1398428
Aug 3, 2013 at 10:31 AM
Hi henric
After you tell me you didn't have any trouble playing, I don't know why I can't playing and it still to show unable to play media.
I am using the binary build from this link "https://phonesm.codeplex.com/downloads/get/679596" and run on windows phone 8 emulator.
Here is output from debug mode.
Play clicked
'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\Data\Programs\{1ECE197B-770D-4BAB-9FB9-653B84077E87}\Install\Microsoft.Threading.Tasks.DLL'. Cannot find or open the PDB file.
'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\Data\Programs\{1ECE197B-770D-4BAB-9FB9-653B84077E87}\Install\System.Net.Http.DLL'. Cannot find or open the PDB file.
'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\Data\Programs\{1ECE197B-770D-4BAB-9FB9-653B84077E87}\Install\System.Net.Http.Primitives.DLL'. Cannot find or open the PDB file.
'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\Data\Programs\{1ECE197B-770D-4BAB-9FB9-653B84077E87}\Install\SM.TsParser.DLL'. Cannot find or open the PDB file.
PlaylistSegmentManager.CheckReload (8/3/2013 5:15:27 PM +07:00)
PlaylistSegmentManager.CheckReload is starting ReadSubList (8/3/2013 5:15:27 PM +07:00)
PlaylistSegmentManager.ReadSubList (8/3/2013 5:15:27 PM +07:00)
'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Runtime.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\Data\Programs\{1ECE197B-770D-4BAB-9FB9-653B84077E87}\Install\Microsoft.Threading.Tasks.Extensions.DLL'. Cannot find or open the PDB file.
'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.ArgumentOutOfRangeException' occurred in mscorlib.ni.dll and wasn't handled before a managed/native boundary
An exception of type 'System.ArgumentOutOfRangeException' occurred in Microsoft.Threading.Tasks.DLL and wasn't handled before a managed/native boundary
An exception of type 'System.ArgumentOutOfRangeException' occurred in Microsoft.Threading.Tasks.DLL and wasn't handled before a managed/native boundary
An exception of type 'System.ArgumentOutOfRangeException' occurred in Microsoft.Threading.Tasks.DLL and wasn't handled before a managed/native boundary
An exception of type 'System.ArgumentOutOfRangeException' occurred in SM.Media.DLL and wasn't handled before a managed/native boundary
An exception of type 'System.ArgumentOutOfRangeException' occurred in Microsoft.Threading.Tasks.DLL and wasn't handled before a managed/native boundary
An exception of type 'System.ArgumentOutOfRangeException' occurred in Microsoft.Threading.Tasks.DLL and wasn't handled before a managed/native boundary
An exception of type 'System.ArgumentOutOfRangeException' occurred in Microsoft.Threading.Tasks.DLL and wasn't handled before a managed/native boundary
An exception of type 'System.ArgumentOutOfRangeException' occurred in Microsoft.Threading.Tasks.DLL and wasn't handled before a managed/native boundary
An exception of type 'System.ArgumentOutOfRangeException' occurred in Microsoft.Threading.Tasks.DLL and wasn't handled before a managed/native boundary
An exception of type 'System.ArgumentOutOfRangeException' occurred in Microsoft.Threading.Tasks.DLL and wasn't handled before a managed/native boundary
An exception of type 'System.ArgumentOutOfRangeException' occurred in Microsoft.Threading.Tasks.DLL and wasn't handled before a managed/native boundary
TsMediaManager.PlayAsync failed: Capacity must be positive.
Parameter name: capacity
'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\Data\Programs\{1ECE197B-770D-4BAB-9FB9-653B84077E87}\Install\Microsoft.Threading.Tasks.Extensions.Phone.DLL'. Cannot find or open the PDB file.
MediaElement State: Closed
An exception of type 'System.AggregateException' occurred in SM.Media.DLL and wasn't handled before a managed/native boundary
An exception of type 'System.AggregateException' occurred in Microsoft.Threading.Tasks.DLL and wasn't handled before a managed/native boundary
Command failed: One or more errors occurred.
The thread 0x90c has exited with code 259 (0x103).
Help me please.
Thanks.
Coordinator
Aug 3, 2013 at 10:41 PM
I got your email, but I haven't had a chance to look into this more deeply yet.

In the meantime, if you have access to VS Pro or better, could you try doing a build from the latest source to see if that makes a difference for you?
Aug 5, 2013 at 8:23 AM
Now I can play this streaming after try to build from latest source. Thank you for a big help.
Coordinator
Aug 5, 2013 at 10:50 PM
Great. Are you having any problems with the latest source?

On at least some streams and phones, there appears to be a race condition when starting to play a stream. Everything looks normal, but the stream doesn't actually start playing. Hitting "Stop" and "Play" again usually gets it working.

An update to the binary build is long overdue. I'm not sure if the apparent "Play" race is a regression from the previous binary build or not, but it is something I want to resolve before doing another build.
Aug 7, 2013 at 6:44 PM
henric wrote:
Great. Are you having any problems with the latest source?

On at least some streams and phones, there appears to be a race condition when starting to play a stream. Everything looks normal, but the stream doesn't actually start playing. Hitting "Stop" and "Play" again usually gets it working.

An update to the binary build is long overdue. I'm not sure if the apparent "Play" race is a regression from the previous binary build or not, but it is something I want to resolve before doing another build.
Ya i got some problem with lastest source build , Sometime it can play automaticially but sometime is not there , i need to press "Play" button to play it. oh i'm using SamplePlayer.WP8 as base. I'm not sure that is come from what.

Thanks a lot ! :D

Sorry for late reply.
Coordinator
Aug 25, 2013 at 5:30 AM
Could you see if the latest source helps with your play vs pause problem? I'm hoping that the fix in bf05d576d92c will improve things for you.

Thanks.
Aug 25, 2013 at 4:14 PM
Thank for your big help.
I will try it soon and I will give feedback to you.

Best Regards.