Jump to content

Question about my content security policy


Recommended Posts

embyuser12345
Posted (edited)

Hi,

 

I generally use safari to access my Emby server, and everything works fine, but I tried using firefox today and I got a playback error on some videos. When I try to open a movie, I get the following message : "No compatible streams are currently available. Please try again later or contact your system administrator for details". 

 

Attached to this message are the logs for both firefox and safari for the same file. The file info is :

 

Video

Title1080P H264

CodecH264

Codec tagavc1

AVCYes

ProfileHigh

Level42

Resolution1920x1080

Aspect ratio16:9

InterlacedNo

Framerate60

Bitrate4001 kbps

Bit depth8 bit

Pixel formatyuv420p

Ref frames1

NAL4

Containermp4

Path/home/movies/shorts/bbb_sunflower_1080p_60fps_normal.mp4

 

 

Audio

TitleUnd MP3 stereo Default

Languageund

CodecMP3

Codec tagmp4a

Layoutstereo

Channels2 ch

Bitrate160 kbps

Sample rate48000 Hz

DefaultYes

 

Audio

TitleUnd Dolby Digital 5.1 Default

Languageund

CodecAC3

Codec tagac-3

Layout5.1

Channels6 ch

Bitrate320 kbps

Sample rate48000 Hz

DefaultYes

 

 

Thanks a lot for your help,

K.

logs.zip

Edited by embyuser12345
Posted

Hi there, the logs look ok to me. Can you provide a sample video for testing? Thanks.

embyuser12345
Posted

Hi,

 

Thanks for your help. You can find the sample video, along with an access to my emby server, at the address that I DM'ed you. I created a user, with login "testing" and password "testing". You should be able to reproduce the bug in this context, and you should also be able to download the video. 

 

K.

Posted

Can you test this file again and capture the output form the browser's debug console? thanks !

embyuser12345
Posted

I think I figured it out, the content-security policy was too restrictive. I removed it in nginx, and it seems to be working. Do you know what CSP I can configure to allow for video playback ? 

 

Thanks,

K.

pir8radio
Posted

I think I figured it out, the content-security policy was too restrictive. I removed it in nginx, and it seems to be working. Do you know what CSP I can configure to allow for video playback ? 

 

Thanks,

K.

 

Yea check out this post:  https://emby.media/community/index.php?/topic/62193-content-security-policy-csp-development/?p=614155

 

If you use http and not https we will have to change some things.

embyuser12345
Posted

Nice, thanks for the tip ! I'm gonna try it out

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...