Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure kharma server to serve media files? #747

Closed
fschwiet opened this issue Sep 14, 2013 · 1 comment
Closed

configure kharma server to serve media files? #747

fschwiet opened this issue Sep 14, 2013 · 1 comment

Comments

@fschwiet
Copy link

I have some tests that need to set a video element source to a video url. I need this video hosted on the same domain as the test runner to prevent cross-origin issues.

I thought I'd try adding an .mp4 video file to Kharma's "files" config. However, using the following:

        {
            pattern: 'src/client/test.mp4',
            include: false
        }

Kharma complains:

[2013-09-13 17:42:50.532] [DEBUG] config - Loading config     C:\src\videoplayer\build\karma\karma.conf.js
Firefox 23.0.0 (Windows 8) ERROR
    SyntaxError: illegal character
    at C:/src/videoplayer/src/client/test.mp4:1

Is it possible for Kharma to act as a direct proxy for these files, and not care about their contents?

@fschwiet
Copy link
Author

I misunderstood the problem I was having, closing this issue.

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

No branches or pull requests

1 participant