Failed when SetFullscreen returning to original size
"RyanYee/叶晔" <[email protected]>
| Newsgroups | gmane.comp.mozilla.mplayerplug-in |
|---|---|
| Message-ID | <[email protected]> |
1.I used mplayer_plugin in my project.
first JS call play() with fullscreen=0.
2.So,display embeded video window in my web page.
then in my web page(push a button)I call play() with fullscreen=1,
it was ok with new window (fullscreen video).
3.At last,I push key "F" to get back to original embeded window but failed
the video didn't scale to orignal,and have a offset to old window.
I found this in my output,maybe XReparentWindow()failed.So can anyone give
me some help. thanks
(Gecko:7526): Gtk-CRITICAL **: gtk_widget_reparent: assertion
`widget->parent != NULL' failed
attached debug.txt and screen shot(embed display & back to embeded).
*****SetWindow Callback Enter************
New window! old: 0x0 new 0x46138014
Size: 6 88 0x2c0029e
Size: 448x222
Checking if DPMS is enabled
DPMS is enabled = 0
setting window size
menus built
resizing widgets to 448 x 222
resize is complete
***********SetWindow Callback Exit**************
*****SetWindow Callback Enter************
back in SetWindow
New Size: 448x222
Current state is 4
isMms = false
url =
http://172.30.5.183:8080/jsp-examples/media/720x576/jixiangsanbao_mpeg2_5Mb_720x576.mpg
resizing widgets to 448 x 222
resize is complete
***********SetWindow Callback Exit**************
JS Seek issued
JS Play issued
*****Play Called
Starting: mplayer -wid 0x2c002a4 -vf scale=448:0 -vo x11 -zoom -ao oss
-autosync 1 -osdlevel 0 -nojoystick -noconsolecontrols -cookies -slave
-user-agent NSPlayer -nomouseinput -cache 512
http://172.30.5.183:8080/jsp-examples/media/720x576/jixiangsanbao_mpeg2_5Mb_720x576.mpg
in updatefullscreen method
in SetFullscreen with 0
fullscreen = 0
height = 222 and width = 448
SetFullscreen doing nothing
JS SetFullscreen issued
in SetFullscreen with 1
fullscreen = 0
height = 222 and width = 448
SetFullscreen setting fullscreen
x=1280, y=720, movie_width=768, movie_height=576, disp_y=960, pos_y=-120
in SetFullscreen with 1
fullscreen = 1
height = 222 and width = 448
SetFullscreen doing nothing
In keyboard_callback with 115
fs_callback clicked
in SetFullscreen with 0
fullscreen = 1
height = 222 and width = 448
SetFullscreen returning to original size
in SetFullscreen with 0
fullscreen = 0
height = 222 and width = 448
SetFullscreen doing nothing
--
RyanYee/叶晔
How many roads must a man walk down before
you can call him a Man?How many years can
some people exist before They're allowed to
be free?the answer is Blowing in the wind...
----<blowing in the wind>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Mplayerplug-in-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mplayerplug-in-devel
debug.txt
(text/plain, 7.1 KB)
UA: Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.7.8) Gecko/20050524 Fedora/1.0.4-4 Firefox/1.0.4:, extra: Firefox/1.0.4 showbuttons:0 wmp:1 qt:1 rm:1 gmp:1 mp3:1 ogg:1 midi:0 pls:1 smil:1 helix:1 mimetype: video/mp4 Embedded mode Argument Name: type Argument Value: video/mp4 Argument Name: name Argument Value: video1 Argument Name: autoplay Argument Value: no in lowercase argv[i]=no autostart=0 Argument Name: loop Argument Value: no in lowercase argv[i]=no loop=-1 Argument Name: src Argument Value: http://172.30.5.183:8080/jsp-examples/media/720x576/jixiangsanbao_mpeg2_5Mb_720x576.mpg Argument Name: height Argument Value: 222 Argument Name: width Argument Value: 448 *****SetWindow Callback Enter************ New window! old: 0x0 new 0x46138018 Size: 6 88 0x2c002a2 Size: 448x222 Checking if DPMS is enabled DPMS is enabled = 0 setting window size menus built resizing widgets to 448 x 222 resize is complete ***********SetWindow Callback Exit************** *****SetWindow Callback Enter************ back in SetWindow New Size: 448x222 Current state is 4 isMms = false url = http://172.30.5.183:8080/jsp-examples/media/720x576/jixiangsanbao_mpeg2_5Mb_720x576.mpg resizing widgets to 448 x 222 resize is complete ***********SetWindow Callback Exit************** JS Seek issued JS Play issued *****Play Called Play: resetting playlist Play: setupplayer Entering SetupPlayer using url for url in getURLBase in getURLBase base: http://172.30.5.183:8080/jsp-examples/media/720x576/jixiangsanbao_mpeg2_5Mb_720x576.mpg exiting URL base with http://172.30.5.183:8080/jsp-examples/media/720x576/ entering getURLHostname exiting getURLHostname with 172.30.5.183:8080 in fullyQualifyURL item: http://172.30.5.183:8080/jsp-examples/media/720x576/jixiangsanbao_mpeg2_5Mb_720x576.mpg baseurl: http://172.30.5.183:8080/jsp-examples/media/720x576/ hostname: 172.30.5.183:8080 in fexists isMms = true fqu result: http://172.30.5.183:8080/jsp-examples/media/720x576/jixiangsanbao_mpeg2_5Mb_720x576.mpg url http://172.30.5.183:8080/jsp-examples/media/720x576/jixiangsanbao_mpeg2_5Mb_720x576.mpg buffer http://172.30.5.183:8080/jsp-examples/media/720x576/jixiangsanbao_mpeg2_5Mb_720x576.mpg ready to setup threads creating thread - NP_EMBED creating player thread In launchPlayerThread, state = 110 launchPlayerThread - creating new thread ----player thread: in playPlaylist ----player thread: about to go to sleep, js_state = 6, state = 110 MAIN THREAD DONE Play: ready to signal Play: signalling thread Signalling Player thread, state = 112, js_state = 6 play clickd ***********Exiting Play************* **********NewStream Callback http://172.30.5.183:8080/jsp-examples/media/720x576/jixiangsanbao_mpeg2_5Mb_720x576.mpg **************** *********Exiting NewStream Callback***************** panel_height = 222 Drawn = 0 drawing panel height = 222 panel= 16 showbuttons = 0 showcontrols = 1 panel_height = 16 Drawn = 1 panel_height = 16 Drawn = 1 local_td = 0x9e1b5e8 local_td->instance = 0x9f3c600 ---player thread: got wakeup signal, js_state = 6, state = 115 ----player thread: playPlayList - waiting complete in gtkgui_message ----player thread: building command string PLAY 0:mplayer PLAY 0:-wid PLAY 0:0x2c002a8 PLAY 0:-vf PLAY 0:scale=448:0 PLAY 0:-vo PLAY 0:x11 PLAY 0:-zoom PLAY 0:-ao PLAY 0:oss PLAY 0:-autosync PLAY 0:1 PLAY 0:-osdlevel PLAY 0:0 PLAY 0:-nojoystick PLAY 0:-noconsolecontrols PLAY 0:-cookies PLAY 0:-slave ----player thread: local_list = 0x9c265b0 PL URL: http://172.30.5.183:8080/jsp-examples/media/720x576/jixiangsanbao_mpeg2_5Mb_720x576.mpg play = 1, cancelled= 0 next= (nil) ----player thread: entering loop ----player thread: looking for node to play ----player thread: chose url http://172.30.5.183:8080/jsp-examples/media/720x576/jixiangsanbao_mpeg2_5Mb_720x576.mpg ----player thread: playing url: http://172.30.5.183:8080/jsp-examples/media/720x576/jixiangsanbao_mpeg2_5Mb_720x576.mpg in gtkgui_message in updatebuttons method buttons are at 222 x 448 ----player thread: URL: http://172.30.5.183:8080/jsp-examples/media/720x576/jixiangsanbao_mpeg2_5Mb_720x576.mpg Starting: mplayer -wid 0x2c002a8 -vf scale=448:0 -vo x11 -zoom -ao oss -autosync 1 -osdlevel 0 -nojoystick -noconsolecontrols -cookies -slave -user-agent NSPlayer -nomouseinput -cache 512 http://172.30.5.183:8080/jsp-examples/media/720x576/jixiangsanbao_mpeg2_5Mb_720x576.mpg in gtkgui_save_enable in fexists isMms = true in gtkgui_message in gtkgui_message in gtkgui_message ----player thread: panel height in thread = 16 in resize method New size is 768 x 576 panel_height = 16 Drawn = 1 mediaTime = 0.200000 in updatefullscreen method in SetFullscreen with 0 fullscreen = 0 height = 222 and width = 448 SetFullscreen doing nothing mediaTime = 0.700000 JS SetFullscreen issued in SetFullscreen with 1 fullscreen = 0 height = 222 and width = 448 SetFullscreen setting fullscreen x=1280, y=720, movie_width=768, movie_height=576, disp_y=960, pos_y=-120 in SetFullscreen with 1 fullscreen = 1 height = 222 and width = 448 SetFullscreen doing nothing gtkwidget resized to 1280 x 720 drawing_area is 960 x 720 JS Play issued *****Play Called play clickd ***********Exiting Play************* sending pause in sendcommand - command pause pause clickd *****Play Called Play: sending play in sendcommand - command pause play clickd ***********Exiting Play************* mediaTime = 1.300000 mediaTime = 1.600000 In keyboard_callback with 115 Ryan:keyboard in Ryan:stop in fs_callback clicked in SetFullscreen with 0 fullscreen = 1 height = 222 and width = 448 SetFullscreen returning to original size Ryan:reparent in SetFullscreen with 0 fullscreen = 0 height = 222 and width = 448 SetFullscreen doing nothing sending quit in sendcommand - command quit in killmplayer in sendcommand - command quit mediaTime = 2.100000 ----player thread: breaking read loop - Quit ----player thread: tryagain = 0 ----player thread: playNode returned = 0 ----player thread: close done ----player thread: transitioning to next item ----player thread: entering loop ----player thread: looking for node to play ----player thread: nothing on the list to play ----player thread: nothing to play ----player thread: callbacks complete ----player thread: normal exit Trying to kill mplayer process(2231), if it still exists player should be closed in gtkgui_message in drawMediaProgress method in resize method New size is 1 x 1 panel_height = 16 Drawn = 1 in gtkgui_stop ***********NPP_DestroyStream called 2 URL: http://172.30.5.183:8080/jsp-examples/media/720x576/jixiangsanbao_mpeg2_5Mb_720x576.mpg User cancelled the download *******Exiting DestroyStream Callback, state = 125, js_state = 0 shut called shutdown called mplayer dead Window Cleaned up Entering deleteList DELETE http://172.30.5.183:8080/jsp-examples/media/720x576/jixiangsanbao_mpeg2_5Mb_720x576.mpg File to delete size: 0 remove: 1 play: 1 playlist: 0 speed: -1 cancelled: 0 retrieved: 0 mms stream: 1 cache bytes: 0 Actual Size: 448x576 Play Size: 768x576 memory free destorying pthread attrs, mutexes and conds thread_attr destroyed playlist_mutex destroyed playlist_cond_mutex destroyed control_mutex destroyed read_mutex destroyed playlist_complete_cond destroyed ~nsPluginInstance called
Screenshot.png
(image/png, 120.4 KB) - not displayed
Screenshot-2.png
(image/png, 122.2 KB) - not displayed