Can't open mpg files in my browser Can't open mpg files in my browser
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Can't open mpg files in my browser

Started by Binks, November 13, 2004, 11:10:45 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Binks

Hi:)
I've got mpg file in my gallery album, and i'm using Opera as my default browser. When trying to acces this file with opera i got only "box" like it wants to dowload some plugin, but when i clik on it, appears popup trying to download the file name "plugin". What to do? I should moddify some entrys in config file or what?
Friend toled me that now it is "<embed src=[[link]] AutoStart=true> </embed>" and there should be "<embed type="application/x-mplayer2" pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/" SRC="[[link do pliku]]]" name="MediaPlayer1" width=160 height=162 AutoStart=true> </embed>" But in wich file? I should add it somware?
He got this from site info. He don't have acces directly to the files.
Please help.

Joachim Müller

this is imo a matter of your browser setup - you have to configure it properly. Please post a direct link to the page you're refering to.

Joachim

Binks

Ok. It's here-> http://www.binks.pro24.pl/galeria/displayimage.php?album=1&pos=0.
But as i said, it only happends under Opera. On IE it works. I don't know why....

Joachim Müller

The link should actually be http://www.binks.pro24.pl/galeria/displayimage.php?pos=-1&lang=english
I'm not a video encoding specialist, but I guess that non-Microsoft browsers just don't come with the plugin needed to play the type of media you added. I tried with Firefox, IE and Opera, and none of them was able to actually display the movie - even IE6 (with MediaPlayer9 on Windows2000) wasn't able to dsiplay the movie (although it displayed the embedded WindowsMediaPlayer), which leads to the conclusion that there's something fishy with your video file's encoding in the first place (the fact that you were able to play the video on your machine doesn't proof anything). I suggest you test this with a known-good, small mpg file in the first place, or you get a good encoder software (for a start, you can use the free WindowsMediaEncoder suite that creates wmv files that display fine on almost every PC with Windows OS).

Joachim

Nibbler

Works for me - I'd put this down to browser setup. Relevent bit of code is in displayimage.php:

            $pic_html = "<object {$image_size['whole']}><param name=\"autostart\" value=\"true\"><param name=\"src\" value=\"". $picture_url . "\"><embed {$image_size['whole']} src=\"". $picture_url . "\" autostart=\"true\"></embed></object><br />\n";

Casper

It works for me in Firefox, although it uses quicktime to play it.  In IE it works, but you cannot see it, probably because you have not set the image size.  Try editing the file, and make sure the image size is not 0 x 0, but the actual size.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here