New Module Multimedia w/ Byte Range support for ipod/ipad/iphone
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
New Multimedia Module replaces flashvideo and mp3audio modules into one single module supporting HTML5 Audio/Video w/ flash fallback where possible. @see demo and format support here. Please keep all discussions/feature requests regarding this module in this thread. -s |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
Nice -- |
|
leonki
Joined: 2010-12-18
Posts: 32 |
![]() |
tried your demo site on iPhone 3GS - mp4 doesn't play but does on flash player website demo. Any idea? Also, hope you don't mind but im modifying a local copy to play videos from S3 if copy exists there .. Much more usable for big home videos. |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
Quote:
tried your demo site on iPhone 3GS - mp4 doesn't play but does on flash player website demo. Any idea? nope. but consider the 3GS has reached its life expectancy. Quote:
Also, hope you don't mind but im modifying a local copy to play videos from S3 if copy exists there .. Much more usable for big home videos. The beauty of open source. -s |
|
leonki
Joined: 2010-12-18
Posts: 32 |
![]() |
3GS, 4, 4S or iPAD .. doesn't matter .. most important thing is the OS .. and I'm running iOS 5.1 (latest) and it doesn't work. It just shows me the first image (same as thumbnail) with a don't download grey icon on top of it.. I'll try it out on my iPAD as well.. do you have an iOS device that you recently checked with to confirm it works? |
|
leonki
Joined: 2010-12-18
Posts: 32 |
![]() |
OK.. did some more testing. Your demo site shows .mp4 video on iPad and iPhone 4 .. but not 3GS. The flowplayer demo site does some the video on 3GS, same as 4 (i.e. open a new window in full screen). iPad shows video in place on the html page. |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
My friend has an old ipad1 and along with my wife's iphone4 is what I originally tested on. -s |
|
leonki
Joined: 2010-12-18
Posts: 32 |
![]() |
BUG REPORT: In modules/multimedia/classes/MultimediaRenderer.class: The generated Javascript for the video player should be modified to include the "scaling" option. The correct source should look like this: clip: { This will preserve the aspect ratio of videos when switching to full screen mode. Encoding my 1080p home movies shows strange vertical stretch when going full screen on my MacBook Pro. With this feature, slight black bars are visible above and below the image. |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
Thanks -s |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
BTW, I have an updated mediaBlock w/ compatibility for the new multimedia module. -s |
|
leonki
Joined: 2010-12-18
Posts: 32 |
![]() |
I had a blast the last couple of days hacking around with this module .. here's some fun stuff I did for my own site (which I host from a server at home to family over my DSL): - moved from using flowplayer to jw player (not going to start a holy war here, enough to say it does a better job for me) In the end of the day, the user experience for videos is amazing! Always fast, and always starts playing in 1-2 seconds, no matter what browser you use or where you're located. It's always fast, even with my 1080p home videos. Thanks for creating such a great module, that finally solved my home video sharing problem, which I had for the last 5+ years. |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
Glad I could help w/ your video issues. I'm disappointed that webM did not have better support as the codec has awesome compression/performance. As for Jeron's player vs.Flowplayer - potato/potatoe -s |
|
leonki
Joined: 2010-12-18
Posts: 32 |
![]() |
When you say mp4, I assume you mean h.264 .. as some of these files are called mp4, sometimes m4v and rarely now .avi In any case .. you're right. I use HandBrake to convert my huge 1080p dumps to something streamable in h.264 format with AAC audio (as most 1080p video devices capture AC3 audio instead) As for G2 vs G3 (I know it's a touchy subject for you) I think I truly understand the issues better, now that I had a chance to do some G2 development. In my opinion (take it with a grain of salt) G3 was a step in the wrong direction. Sure G2 is slower, but it's only slower on machines that are a couple years old. On a modern i7 server, G2 is just as fast as G3. In addition, bandwidth is getting faster and cheaper. I think the effort to recode G3 could have been better used in improving G2. If anything, the image firewall in G2 makes things like swapping video in/out (depend on client location, client browser, size of video file, time of day, etc) is much much easier. I actually converted my G2 installation to G3 **TWICE** (and we're talking about 20,000+ images on an old P4 server! LONG LONG TIME) In both cases, it rubbed me the wrong way and I went back to G2. Thanks again for the great module. |
|
irwand
Joined: 2008-06-10
Posts: 4 |
![]() |
Thank you suprsidr!! I've been looking for a solution to get videos just play on wide variety of devices. Your solution is the best/easiest I've come across on Gallery2. |
|
davidarnoult
Joined: 2008-03-18
Posts: 39 |
![]() |
Hi, This module looks pretty good, thanks suprsidr! However it seems that it does not work in embedded G2 mode in Drupal 6. URL de Gallery = http://www.mywebsite.com/gallery2/main.php Thanks... |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
Quote:
URL rewrite is activated in Drupal + gallery2. Any idea? did you check the box next to the multimedia option in Gallery admin -> rewrite? Are gallery's rewrite rules getting written to your embed application's .htaccess? Quote:
Other thing : the administration panel for this module does not appear (such as flashvideo module works fine). there aint no admin panel for this module |
|
davidarnoult
Joined: 2008-03-18
Posts: 39 |
![]() |
Yes indeed. I have also added/adapted these lines to the drupal .htaccess Drupal htaccess g2 htaccess: But with no results. Still same error. Weird... Still works fine in stand alone. I will check in log files, it is for sure a rule that does not work ;-) Thanks anyway |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
url pattern in rewrite: m/%itemId%-%serialNumber%/%fileName% .htaccess: RewriteCond %{THE_REQUEST} /m/([0-9]+)\-([0-9]+)/([^/?]+)(\?.|\ .) RewriteCond %{REQUEST_URI} !/gallery2/main\.php$ RewriteRule . /gallery2/main.php?g2_view=multimedia.DownloadItem&g2_itemId=%1&g2_serialNumber=%2&g2_fileName=%3 [QSA,L] |
|
davidarnoult
Joined: 2008-03-18
Posts: 39 |
![]() |
Thanks very much suprsidr! That did the trick with /m/*. Btw by default the rewrite rule was wrong (/f)for multimedia module, I didn't modify anything... I have left flasphayer module installed. Thanks David |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
Comments are now permitted for this topic. |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
If you're having troubles w/ apostrophes in titles: $title = smarty_modifier_markup($item->getTitle(), 'strip'); $title = addslashes($title);
-s |
|
boogityshoe
![]()
Joined: 2007-07-14
Posts: 3 |
![]() |
@suprsidr, How do I change the default settings so I can turn off the autoplay and set new defaults for various variables described in the AdminMultimedia.tpl file? I would like the videos to not autoplay. I tinkered with the settings in the MultimediaRenderer.class file, but they do not seem to work. Thanks, |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
Sorry, I never finished the admin for this module. The ~admin.tpl is useless. In the <video /> element the mere presence of autoplay causes autoplay regardless of it's value. Best just to remove the line altogether. -s |
|