Live streams and Advertising does not work together

Topics: Windows 8 JavaScript
Sep 27, 2012 at 6:43 PM

I use
"Microsoft.PlayerFramework.Js.Adaptive, Version=1.3.0"
for play live smooth streams and try use "Microsoft.PlayerFramework.Js.Advertising, Version=1.3.0" for advertising. But them does not work together. When i try play live stream i have an unhandled exception:

 Unhandled exception at line 1195, column 13 in ms-/Microsoft.PlayerFramework.Js.Advertising/js/PlayerFramework.Advertising.js0x800a13f3 - JavaScript runtime error: Could not convert value to Windows.Foundation.TimeSpan: value outside of valid range

In this code:

1194: _onMediaPlayerDurationChange: function (e) {          
1195:     this._mastAdapter.setDuration(this.mediaPlayer.duration * 1000);
1196: },

Because this.mediaPlayer.duration is Infinity.
Are it is a bug or I can do something for fix it in my code? 

Coordinator
Nov 27, 2012 at 7:34 PM

@zayass, can you please give this a try with the latest version? I am unable to repro this problem and suspect this may have been fixed already in a later version.

Thanks, Tim

Nov 28, 2012 at 10:53 AM

Yes it is fixed. But I have a related issue with format time.
http://playerframework.codeplex.com/workitem/23659