Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

playback of HSS playready stream CORS problem #245

Open
maba72 opened this issue Feb 18, 2019 · 7 comments
Open

playback of HSS playready stream CORS problem #245

maba72 opened this issue Feb 18, 2019 · 7 comments

Comments

@maba72
Copy link

maba72 commented Feb 18, 2019

Hi,
I have no problem playing the following live stream in the Silverlight test application(s) but unfortunately i cannot get it to play through HASPlayer, seems the issue is likely related to CORS headers. Can anyone tell me if it's even possible to play this kind of stream without Silverlight ?

https://stream.linear.yelo.prd.telenet-ops.be/eenhd.isml/manifest

@nicosang
Copy link
Contributor

Hi @maba72 ,

do you try to use hasplayer.js in Chrome browser? There is a new CORB issue with the latest chrome version. Which browser do you use?

Anyway, the first answer is yes it's still possible to play MSS stream in a browser without Silverlight.

Nico

@maba72
Copy link
Author

maba72 commented Feb 18, 2019

Hi Nicholas, I'm trying to open the stream in Edge , as far as I know Chrome doesn't support playready, am I right ?

Chrome throws the following exception
Access to XMLHttpRequest at 'https://stream.linear.yelo.prd.telenet-ops.be/eenhd.isml/manifest' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

@nicosang
Copy link
Contributor

Hi @maba72 ,

you're right about playready.....sorry.

You just have to configure cors on your IIS server. For instance, you can see here the response headers of your stream :

Accept-Ranges: bytes Age: 0 Cache-Control: max-age=2 Content-Encoding: gzip Content-Length: 1242 Content-Type: text/xml Date: Tue, 19 Feb 2019 08:16:38 GMT Etag: "fadd79f8f87457d0" Pragma: IISMS/4.1,IIS Media Services by Microsoft Server: Microsoft-IIS/7.5 IISMS/4.1 Via: 1.1 varnish, 1.1 varnish X-Powered-By: ASP.NET X-Varnish: 3257280977, 2916984509

....and headers of an accessible stream :

Access-Control-Allow-Origin: * Cache-Control: max-age=7200 Content-Length: 262588 Content-Type: text/xml Date: Tue, 19 Feb 2019 08:20:12 GMT Etag: "a31e50c9cb486601" Pragma: IISMS/4.1,IIS Media Services by Microsoft Server: Microsoft-IIS/7.0 IISMS/4.1 X-Powered-By: ASP.NET

On your side, Access-Control-Allow-Origin is missing...

Nico

@maba72
Copy link
Author

maba72 commented Feb 19, 2019 via email

@bbert
Copy link

bbert commented Feb 25, 2019

Hi @maba72, if you want to get around CORS issues on Edge browser, you can try using Fiddler to act as a proxy that is able to add custom headers on the fly.
Check this link: https://gist.github.com/fhfaa/4501be75121cae2da45f

BTW, you may know that smooth streaming is also supported by dash.js (https://github.com/Dash-Industry-Forum/dash.js).
If you start a new project we recommend you using dash.js (with MSS package) instead of hasplayer.js since minimal support will be provided on hasplayer.js.

@maba72
Copy link
Author

maba72 commented Feb 27, 2019 via email

@maba72
Copy link
Author

maba72 commented Feb 27, 2019 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants