awslabs / aws-streaming-media-analytics

AWS Streaming Media Analytics is a serverless end-to-end solution for analyzing the video streaming experience
MIT No Attribution
39 stars 17 forks source link

video playback failing due to CORS permissions in Firefox 71 #9

Closed alcousins closed 4 years ago

alcousins commented 4 years ago

Playing back video in Firefox 71 on Mac results in errors related to permissions (CORS?):

NotAllowedError: The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://dl0q54uth5jdv.cloudfront.netsample-videos/hls/BigBuckBunny.m3u8. (Reason: CORS request did not succeed).

alcousins commented 4 years ago

ah, the media URL is missing a delimeter between the host and path. I suspect this may be a bug introduced by changing the runtime to a newer version of node.

Looks like this can be fixed by adding the '/' prefix to the path in web/reactplayer/build/videos.json

alcousins commented 4 years ago

Fixed in https://github.com/awslabs/aws-streaming-media-analytics/commit/f0db0e55d343620a2ac18d5eb05e5385d68d07ce#diff-439577973759b2a788953baaac9b1c9c