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

Add support for MOV files #802

Closed
doctor30306 opened this issue Nov 19, 2016 · 1 comment
Closed

Add support for MOV files #802

doctor30306 opened this issue Nov 19, 2016 · 1 comment

Comments

@doctor30306
Copy link

doctor30306 commented Nov 19, 2016

Please add support for MOV files which is the common format for video from iPhones. I added code was able to modify my version of fileinput.js to accommodate. All the user does is set the type in initReviewConfig as movie

tMovie = '<object CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="{width}" height="{height}" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">\n' +
                    '<param name="src" value="{data}">\n' +
                    '<param name="qtsrc" value="{data}">\n' +
                    '<param name="autoplay" value="false">\n' +
                    '<param name="scale" value="Aspect">\n' +
                    '<param name="loop" value="false">\n' +
                    '<param name="controller" value="true">\n' +
                    '<embed src="{data}" qtsrc="{data}" TYPE="video/quicktime" AUTOPLAY="false" CONTROLLER="true" SCALE="Aspect" pluginspage="http://www.apple.com/quicktime/download/"></embed>\n' +
                '</object>'

movie: function (vType, vName) {
            return compare(vType, 'movie.*') && (compare(vType, /(mov)$/i) ||
                compare(vName, /\.(mov)$/i));
        },
@kartik-v
Copy link
Owner

These embeds will not work in latest browsers (Chrome has stopped support for NPAPI plugins).

If it is specific for Apple related devices and browsers, then I suppose this should be a simpler fix for Safari and IOS browsers. Will update.

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

No branches or pull requests

2 participants