mp4 files supposed to open in flash... plays in Quicktime

6 Messages Forum Options Options
Permalink
Shadowlurker
mp4 files supposed to open in flash... plays in Quicktime
Reply Threaded More
Print post
Permalink
Hi guys!

I just found the shadowbox and I must say I love it!
I´m having some trouble though, I have made som movies that I want to display on my website. I already have the JW FLV player. If I only use the JW player it plays the mp4 files just fine, but when displaying it with shadowbox they are played with quicktime...

How/what/where in the shadowbox code do I need to tweak it, so that it will play the mp4 files with flash?

Thanks a lot in advance!
mjijackson
Re: mp4 files supposed to open in flash... plays in Quicktime
Reply Threaded More
Print post
Permalink
You need to alter the options.ext object to include mp4 in your flv array, like this:

var opts = {
    // all the rest of the extensions from the source file here...
    flv: ['flv','mp4']
};

Shadowbox.init(opts);
Shadowlurker
Re: mp4 files supposed to open in flash... plays in Quicktime
Reply Threaded More
Print post
Permalink
Thanks a lot! :)
Shadowlurker
Re: mp4 files supposed to open in flash... plays in Quicktime
Reply Threaded More
Print post
Permalink
In reply to this post by mjijackson
Sad to say... it doesen´t seem to work. :(
Anyway, while browsing the JW webpage the playlist catched my eye.

Check this page: http://www.jeroenwijering.com/?page=wizard&example=21 

Is it at all possible to get shadowbox to initiate this player+playlist (and getting the JW player to use the xml playlist to get the files loaded to the player)?
Norgoth
Re: mp4 files supposed to open in flash... plays in Quicktime
Reply Threaded More
Print post
Permalink
In reply to this post by mjijackson
Hi...i have the same Problem, but i cant find the File or Part where i must add this Code-Snippet.

Can you help me to find the right File and Part of it to play mp4 Files with the JW Flash Player ?
Thanks a lot.

Cheers

PS: Sorry about my bad english, thanks.
Gordon K
Shadowbox won't accept ext[] array changes?
Reply Threaded More
Print post
Permalink
In reply to this post by mjijackson
I've been having trouble getting Shadowbox to "see" my changes to the ext array. In this case, I want to display .java class files as plain text (which they are). In my <head> code, I defined the following:

     var sbMimeMap = {
            img:        ['png', 'jpg', 'jpeg', 'gif', 'bmp'],
            swf:        ['swf'],
            flv:        ['flv'],
            qt:         ['dv', 'mov', 'moov', 'movie', 'mp4'],
            wmp:        ['asf', 'wm', 'wmv'],
            qtwmp:      ['avi', 'mpg', 'mpeg'],
            iframe:       ['asp', 'aspx', 'cgi', 'cfm', 'htm', 'html', 'pl', 'php',
                        'php3', 'php4', 'php5', 'phtml', 'rb', 'rhtml', 'shtml',
                        'txt', 'vbs', 'java']
            };

And then passed it to .init along with other options:

                window.onload = Shadowbox.init( {
                        initialHeight:350
                       , initialWidth:450
                       , loadingImage:"loading.gif"
                       , handleException: "Shadowbox error"
                       , handleUnsupported:  'link'
                       , ext: sbMimeMap
                       } );

I tried passing the "mime map" both as a variable, and as an inline array, but with the same result: When I try to pass Shadowbox a .java file, it opens the Shadowbox window but doesn't load the file - and the browser then pops up a load/save dialog over the Shadowbox window, as if Shadowbox has rejected the file and passed it to the browser.

I think this problem occurs only when I invoke Shadowbox via the open() function in Javascript, not when I call it via an  tag. Any suggestions? Many thanks for any help you can offer!!!