maninha22crazy / gecko-mediaplayer

Automatically exported from code.google.com/p/gecko-mediaplayer
GNU General Public License v2.0
0 stars 0 forks source link

Gecko-mediaplayer plugin works in some website only #168

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Go to: http://tv7.bg/liveTV/
2. There should be play online TV but doesn't
3. Gecko-mediaplayer plugin works in other sites, but in this doesn't

What is the expected output? What do you see instead?
Online TV stream

What version of the product are you using? On what operating system?
CentOS 6.2, Gnome, gecko-mediaplayer 1.0.4

Please provide any additional information below.

Original issue reported on code.google.com by dobsto on 17 Mar 2012 at 7:12

GoogleCodeExporter commented 8 years ago
I forgot to tell that When I start Firefox via terminal and try to play the TV 
from http://tv7.bg/liveTV/ I see this message:
$ firefox
NPP_New called
gecko mediaplayer v1.0.4
Using player backend of ''
DBUS connection created
Listening to path /control/51673
ARG: style = display:block

Original comment by dobsto on 17 Mar 2012 at 8:06

GoogleCodeExporter commented 8 years ago
You might try upgrading to 1.0.5 of gnome-mplayer and gecko-mediaplayer. But 
based on the information in the log, it doesn't look like Firefox is getting 
you the needed information to plat the stream.

Original comment by kdeko...@gmail.com on 17 Mar 2012 at 10:10

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
With Totem player and totem-mozplugin the stream is working. But I prefer to 
use Gecko-mediaplayer. Is there a repo's for 1.0.5 version of the player and 
the plugin?

Original comment by dobsto on 18 Mar 2012 at 10:08

GoogleCodeExporter commented 8 years ago
I tried to view source code of the page, found and get the "mms" link and put 
it on the Gnome-mplayer - File - Open location. The stream works. Somthing 
wrong with gecko-mediaplayer may be?!?

Original comment by dobsto on 18 Mar 2012 at 9:45

GoogleCodeExporter commented 8 years ago
As I said before the webpage is not providing the "embed" tag in a form that 
gecko-mediaplayer recognises, the site does not actually provide "embed" at all 
and that is how gecko-mediaplayer gets the metadata to play the media on the 
site. As this point I don't see anyway that gecko-mediaplayer can get this 
data. Totem works a different way and that is why it works.

Original comment by kdeko...@gmail.com on 18 Mar 2012 at 10:10

GoogleCodeExporter commented 8 years ago
OK! Thank you! Perhaps I was wrong - I think that the stream worked with gecko 
before. And I post the problem in some other forums where some people tell me 
that the stream works with gecko at them.

Original comment by dobsto on 19 Mar 2012 at 8:12

GoogleCodeExporter commented 8 years ago
The stream works on other systems with CentOS and gecko-mediaplayer, but with 
0.9.2 version of a gnome-player and plugin, or version 1.0.4 of both - player 
and plugin. My Player is 1.0.0 version and gecko - 1.0.4.

Original comment by dobsto on 20 Mar 2012 at 8:42

GoogleCodeExporter commented 8 years ago
I'll look at again, but are there any additional firefox extensions or plugins 
on the machines where it works?

Original comment by kdeko...@gmail.com on 20 Mar 2012 at 5:37

GoogleCodeExporter commented 8 years ago
OK! I'll ask the people who have no problem with the stream about additional 
extensions or plugins. By the way, I download and compilied the 1.0.4 version 
of gnome-mplayer. And now the both - gecko and player are with the same version 
but the problem is still present. kdeko...@gmail.com, did you try to open 
http://tv7.bg/liveTV/?

Original comment by dobsto on 21 Mar 2012 at 9:00

GoogleCodeExporter commented 8 years ago
I see something in the code of that site that bothers me... in that it looks 
for a Mac specificially, but never linux. However, I should be emulating the 
Windows plugin good enough for this site. In fact I even added a couple of more 
methods, but still can't quite make it work. The javascript is not issuing any 
errors at this point so not sure what the problem is.

Original comment by kdeko...@gmail.com on 21 Mar 2012 at 2:33

GoogleCodeExporter commented 8 years ago
ok, found a bug in the SVN code that was causing a property load error. It was 
actually kinda tricky to find. The fix is in SVN r497. Very simple fix that 
should apply to your code as well. 

When I try this now it tells me that I am not authorized to view the content, 
but that could be due to my geography. So try that and see if it fixes the 
issue.

Original comment by kdeko...@gmail.com on 21 Mar 2012 at 3:50

GoogleCodeExporter commented 8 years ago
OK! Sorry, friend but I don't understand what I have to do!?

Original comment by dobsto on 21 Mar 2012 at 8:54

GoogleCodeExporter commented 8 years ago
Well if you don't feel comfortable applying the fix to the code, you can wait 
until the 1.0.6 release. Which due to this bug I now have a good reason to cut 
a release as this fix is a good reason to do that.

I can attach the source code to this issue if you want to try that. Or you can 
check out the code from SVN and then build the code.

Original comment by kdeko...@gmail.com on 22 Mar 2012 at 3:37

GoogleCodeExporter commented 8 years ago
I think this will be difficult for me. Unfortunately I will have to wait for 
the 1.0.6 release or I will have to use totem-plugin.

Original comment by dobsto on 22 Mar 2012 at 7:32

GoogleCodeExporter commented 8 years ago
But why with v.0.9.9 of gecko and player the stream works on some system?

Original comment by dobsto on 22 Mar 2012 at 8:08

GoogleCodeExporter commented 8 years ago
These are the plugins and extensions installed on the system where the stream 
works:

http://91.134.54.9/Screenshot-1.png
http://91.134.54.9/Screenshot-6.png
http://91.134.54.9/Screenshot-7.png
http://91.134.54.9/Screenshot-8.png

Original comment by dobsto on 22 Mar 2012 at 8:15

GoogleCodeExporter commented 8 years ago
In 0.9.9 the attribute "style" was not parsed. Then I found that some sites use 
this for sizing the plugin instead of width and height. So I started parsing 
"style" and that parsing code was the cause of the error.

I'm anticipating that the fix will be available to you in a couple of weeks 
depending on your distribution and ppa's

Original comment by kdeko...@gmail.com on 22 Mar 2012 at 12:43

GoogleCodeExporter commented 8 years ago
Sorry! But I make changes in the files from r497 and when I tried to compilе I 
see this error:
# make
make  all-recursive
make[1]: Entering directory 
`/home/validob/Desktop/Install/gecko-mediaplayer-0.9.9.2'
Making all in src
make[2]: Entering directory 
`/home/validob/Desktop/Install/gecko-mediaplayer-0.9.9.2/src'
Making all in libgmlib
make[3]: Entering directory 
`/home/validob/Desktop/Install/gecko-mediaplayer-0.9.9.2/src/libgmlib'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory 
`/home/validob/Desktop/Install/gecko-mediaplayer-0.9.9.2/src/libgmlib'
make[3]: Entering directory 
`/home/validob/Desktop/Install/gecko-mediaplayer-0.9.9.2/src'
g++ -DHAVE_CONFIG_H -I. -I.. -fPIC 
-DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -DPACKAGE_SRC_DIR=\""."\" 
-DPACKAGE_DATA_DIR=\""/usr/local/share"\"  -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include   -I/usr/include/dbus-1.0 
-I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
  -DORBIT2=1 -pthread -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include   -DHAVE_GCONF -DMOZILLA_STRICT_API -DXP_UNIX    -g 
-O2 -MT plugin_types_std.o -MD -MP -MF .deps/plugin_types_std.Tpo -c -o 
plugin_types_std.o plugin_types_std.cpp
In file included from plugin_types.h:41,
                 from plugin_types_std.cpp:38:
plugin.h:40:19: error: npapi.h: No such file or directory
plugin.h:41:23: error: npruntime.h: No such file or directory
plugin.h:42:25: error: npfunctions.h: No such file or directory
In file included from plugin_types.h:41,
                 from plugin_types_std.cpp:38:
plugin.h:96: error: variable or field ‘postDOMEvent’ declared void
plugin.h:96: error: ‘NPP’ was not declared in this scope
plugin.h:96: error: expected primary-expression before ‘const’
plugin.h:96: error: expected primary-expression before ‘const’
plugin.h:100: error: ISO C++ forbids declaration of ‘NPWindow’ with no type
plugin.h:100: error: expected ‘;’ before ‘*’ token
plugin.h:101: error: ISO C++ forbids declaration of ‘NPStream’ with no type
plugin.h:101: error: expected ‘;’ before ‘*’ token
plugin.h:102: error: ‘NPBool’ does not name a type
plugin.h:103: error: ISO C++ forbids declaration of ‘NPObject’ with no type
plugin.h:103: error: expected ‘;’ before ‘*’ token
plugin.h:104: error: ISO C++ forbids declaration of ‘NPObject’ with no type
plugin.h:104: error: expected ‘;’ before ‘*’ token
plugin.h:107: error: expected ‘)’ before ‘pNPInstance’
plugin.h:110: error: ‘NPBool’ does not name a type
plugin.h:112: error: ‘NPBool’ does not name a type
plugin.h:115: error: ISO C++ forbids declaration of ‘NPObject’ with no type
plugin.h:115: error: expected ‘;’ before ‘*’ token
plugin.h:116: error: ISO C++ forbids declaration of ‘NPObject’ with no type
plugin.h:116: error: expected ‘;’ before ‘*’ token
plugin.h:118: error: ‘NPError’ does not name a type
plugin.h:119: error: ‘NPError’ does not name a type
plugin.h:120: error: ‘NPError’ does not name a type
plugin.h:121: error: ‘NPError’ does not name a type
plugin.h:122: error: ‘NPReason’ has not been declared
plugin.h:123: error: ‘NPStream’ has not been declared
plugin.h:124: error: ‘NPStream’ has not been declared
plugin.h:165: error: ‘NPP’ does not name a type
plugin.h:168: error: ‘uint16_t’ does not name a type
In file included from plugin_types_std.cpp:38:
plugin_types.h:45: error: ‘NPError’ does not name a type
plugin_types_std.cpp:131: error: ‘NPError’ does not name a type
make[3]: *** [plugin_types_std.o] Error 1
make[3]: Leaving directory 
`/home/validob/Desktop/Install/gecko-mediaplayer-0.9.9.2/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory 
`/home/validob/Desktop/Install/gecko-mediaplayer-0.9.9.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/home/validob/Desktop/Install/gecko-mediaplayer-0.9.9.2'
make: *** [all] Error 2

And how can I checkout this r497? When I click on the Checkout tab i see link 
for the last r499 only. Thank you!

Original comment by dobsto on 22 Mar 2012 at 9:54

GoogleCodeExporter commented 8 years ago
Looks like you are missing some development packages and may have forgotten to 
run configure. And the patches apply to 1.0.5 and not 0.9.9.2.

Original comment by kdeko...@gmail.com on 23 Mar 2012 at 12:56

GoogleCodeExporter commented 8 years ago
No, I run ./configure and everythings look good. But "make" gives some error. 
Please tell me how can I checkout r497 or I'll have to checkout 
"gecko-mediaplayer-read-only" and make changes from r497?

Original comment by dobsto on 23 Mar 2012 at 2:56

GoogleCodeExporter commented 8 years ago
SVN r497 or later should include the fix. You should be able to just pull the 
latest. However, based on the error messages it appears that gecko-mediaplayer 
is not finding the xulrunner, libxul, or firefox libraries to link against. 

Posting the configure output, will allow me to clarify that.

Original comment by kdeko...@gmail.com on 23 Mar 2012 at 3:42

GoogleCodeExporter commented 8 years ago
OK! Now I checkout the gecko-mediaplayer-read-only and I tried to compile it. 
But I see that it need from "gmlib" package:

# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to disable maintainer-specific portions of Makefiles... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for ranlib... ranlib
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for catalogs to be installed...  cs de es fr ja it nl pl pt pt_BR tr
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for GMLIB... no
configure: error: Package requirements (gmlib >= 1.0.5) were not met:

No package 'gmlib' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GMLIB_CFLAGS
and GMLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

I'm looking for this GMLIB but I cannot find it.

Original comment by dobsto on 23 Mar 2012 at 7:13

GoogleCodeExporter commented 8 years ago
You need my gmtk library.. which you get from here.. 

http://code.google.com/p/gmtk/

So build and install gmtk first, then build and install gecko-mediaplayer.. but 
since you are upgrading both of those you might as well get the latest 
gnome-mplayer.. which you can get from here:

http://code.google.com/p/gnome-mplayer/

Original comment by kdeko...@gmail.com on 23 Mar 2012 at 7:16

GoogleCodeExporter commented 8 years ago
I download and complied GMT but when I try to compilie gecko-mediaplayer I see 
the same error:

configure: error: Package requirements (gmlib >= 1.0.5) were not met:

No package 'gmlib' found

Original comment by dobsto on 23 Mar 2012 at 7:53

GoogleCodeExporter commented 8 years ago
did you "make install" gmtk ?

Original comment by kdeko...@gmail.com on 23 Mar 2012 at 8:10

GoogleCodeExporter commented 8 years ago
Sure!

Original comment by dobsto on 23 Mar 2012 at 8:20

GoogleCodeExporter commented 8 years ago
This is the output of gmtk compile:

ftp://store1.data.bg/conf-make-install

Original comment by dobsto on 23 Mar 2012 at 8:48

GoogleCodeExporter commented 8 years ago
Sorry - look here:
http://store1.data.bg/icemans/conf-make-install.txt

Original comment by dobsto on 23 Mar 2012 at 9:11

GoogleCodeExporter commented 8 years ago
Sorry neither of those sites open... please attach the log to this bug report.

Original comment by kdeko...@gmail.com on 23 Mar 2012 at 10:14

GoogleCodeExporter commented 8 years ago
OK!

Original comment by dobsto on 24 Mar 2012 at 6:06

Attachments:

GoogleCodeExporter commented 8 years ago
And then I;m trying to compilie gecko-mediaplayer:

Original comment by dobsto on 24 Mar 2012 at 7:36

Attachments:

GoogleCodeExporter commented 8 years ago
ok, looks like /usr/local/lib is not in your libpath...

perhaps configuring gmtk with --prefix=/usr --libdir=/usr/lib will fix this, 
please run make uninstall for gmtk prior to doing this, so you can cleanup the 
previously installed files.

Original comment by kdeko...@gmail.com on 24 Mar 2012 at 7:51

GoogleCodeExporter commented 8 years ago
OK! I did it. The I tried compile gecko again and see this error:

# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to disable maintainer-specific portions of Makefiles... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for ranlib... ranlib
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for catalogs to be installed...  cs de es fr ja it nl pl pt pt_BR tr
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for GMLIB... yes
checking for GECKO... no
configure: libxul >= 2 not found, trying another
checking for GECKO... no
configure: libxul >= 1.9.2 not found, trying another
checking for GECKO... no
configure: WARNING: libxul < 1.9.2 not found, trying another
checking for GECKO... no
configure: WARNING: libxul-unstable not found, trying another
checking for GECKO... no
configure: WARNING: mozilla-plugin not found, trying another
checking for GECKO... no
configure: WARNING: firefox-plugin not found, trying another
checking for GECKO... no
configure: WARNING: seamokey-plugin not found, trying another
checking for GECKO... no
configure: WARNING: xulrunner-plugin not found, trying another
checking for GECKO... no
configure: WARNING: iceape-plugin not found, trying another
checking for GECKO... no
configure: error: npapi-sdk not found, all out ot tries

Original comment by dobsto on 24 Mar 2012 at 8:06

GoogleCodeExporter commented 8 years ago
Woow! Man! I did it! I just install xulrunner-dev and then tried ./configure 
gecko again and everythnig was OK, then "make, make install" and then compilied 
gnome-mplayer 1.0.5 and now I have working plugin. Now it works ;) There is a 
little problem - I see the TV in small aspect ratio but I will look for some 
settings in gnome-mplayer and will try it. Thank you men - you a freat men. I'm 
wondering how can you be so patient?!? Cheers ;)

Original comment by dobsto on 24 Mar 2012 at 8:26

GoogleCodeExporter commented 8 years ago
Might try different VOs or upgrade gmtk from 1.0.5 to SVN or the 1.0.6b1 code. 
If you are using X11 as the VO there is a bug that didn't tell mplayer to zoom 
properly. But changing to XV or GL as the VO (Video Ouput) in gnome-mplayer 
Edit->preferences works around that issue.

Original comment by kdeko...@gmail.com on 24 Mar 2012 at 9:24

GoogleCodeExporter commented 8 years ago
I changed VO to GL and everything is OK! Thank you again ;)

Original comment by dobsto on 25 Mar 2012 at 3:51