rlazojr / gecko-mediaplayer

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

Pause video to buffer #110

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Watch a video 
2.Play past the buffered amount
3.

What is the expected output? What do you see instead?
Video stops

What version of the product are you using? On what operating system?
Debian Sid

Please provide any additional information below.
Please change it so that it pauses the video when it gets to a point where it 
hasn't buffered appose to stopping. I love this software but its really 
frustrating when I'm watching something and it just stops because it has not 
buffered and I have to go find that point of the video again. 

Original issue reported on code.google.com by IllBa...@gmail.com on 15 Sep 2010 at 4:05

GoogleCodeExporter commented 8 years ago
Version 0.9.9.2-1

Original comment by IllBa...@gmail.com on 15 Sep 2010 at 4:12

GoogleCodeExporter commented 8 years ago
Please provide any additional information below.
Please change it so that it pauses the video when it gets to a point where it 
hasn't buffered oppose to stopping. I love this software but its really 
frustrating at times to go find the point where the video stopped.*

Original comment by IllBa...@gmail.com on 15 Sep 2010 at 4:17

GoogleCodeExporter commented 8 years ago
Might try upgrading to 1.0.3, there is improved caching support.

Original comment by kdeko...@gmail.com on 31 May 2011 at 2:45

GoogleCodeExporter commented 8 years ago
Ugh, it was working for a bit but it broke again. :(

From terminal.

...
Sending SetProgressText to connection 0x4d3a120
in media state change with state = 0
Sending SetProgressText to connection 0x4d3a120
...

Original comment by Raz...@msn.com on 19 Jun 2011 at 7:15

GoogleCodeExporter commented 8 years ago
Latest version form git (1.4.2?) for both Gnome-mplayer and plugin./

Original comment by Raz...@msn.com on 19 Jun 2011 at 7:16

GoogleCodeExporter commented 8 years ago
I'm using 1.4.0 for both Gnome-mplayer and plugin.

Is there a way to stop buffering for a local file.  For my application, I just 
need to display a bunch of local video files.  Right now, when playing big 
local video file(say a 600M mov file), it got lots of "SetProgressText to 
connection 0xxxxxxxx " before it can show the video.  So the switching between 
videos got around 3 sec delay.  Any clues to reduce the buffering time?

Original comment by callwil...@gmail.com on 2 Aug 2011 at 6:38

GoogleCodeExporter commented 8 years ago
In gnome-mplayer you can change the cache size preference for the plugin under 
Edit->Preferences

If you can control the webpage, I believe you can also set "nocache='true'" in 
the embed tag.

Original comment by kdeko...@gmail.com on 2 Aug 2011 at 7:11

GoogleCodeExporter commented 8 years ago
I have already reduced the video and audio cache size for gnome-mplayer as 
belows:
        <entry name="plugin-video-cache-size" mtime="1312343158" type="int" value="256"/>
        <entry name="plugin-audio-cache-size" mtime="1312343158" type="int" value="64"/>

And set nocache='true' in the embed tag as well.

Here are the logs:
item->hrefid = 0 item->src = http://localhost:8080/data/bbc1080p.mov
Sending SetURL to connection 0xacf7d0d0
Sending SetProgressText to connection 0xacf7d0d0
in media state change with state = 0
Item already opened before
Sending SetProgressText to connection 0xacf7d0d0
Sending SetProgressText to connection 0xacf7d0d0
Sending SetProgressText to connection 0xacf7d0d0
Sending SetProgressText to connection 0xacf7d0d0
Sending SetProgressText to connection 0xacf7d0d0
Sending SetProgressText to connection 0xacf7d0d0
Sending SetProgressText to connection 0xacf7d0d0
Sending SetProgressText to connection 0xacf7d0d0
Sending SetProgressText to connection 0xacf7d0d0
in media state change with state = 1
Sending SetProgressText to connection 0xacf7d0d0
Sending SetProgressText to connection 0xacf7d0d0
Entering destroy stream reason = 2 for http://localhost:8080/data/bbc1080p.mov
Exiting destroy stream reason = 2 for http://localhost:8080/data/bbc1080p.mov
URL Notify url = 'http://localhost:8080/data/bbc1080p.mov'
reason = 2
http://localhost:8080/data/bbc1080p.mov
/root/.cache/gnome-mplayer/plugin/gecko-mediaplayerxtwjjt

dbus log
========
signal sender=:1.48 -> dest=(null destination) serial=196 path=/control/62131; 
interface=com.gnome.mplayer; member=SetCachePercent
   double 0.162423
signal sender=:1.48 -> dest=(null destination) serial=197 path=/control/62131; 
interface=com.gnome.mplayer; member=SetProgressText
   string "Cache fill: 16.24% (45632.0 K/s)"
signal sender=:1.51 -> dest=(null destination) serial=3303 path=/control/62131; 
interface=com.gecko.mediaplayer; member=Event
   string "EnterWindow"
   int32 0
signal sender=:1.48 -> dest=(null destination) serial=198 path=/control/62131; 
interface=com.gnome.mplayer; member=SetCachePercent
   double 0.269216
signal sender=:1.48 -> dest=(null destination) serial=199 path=/control/62131; 
interface=com.gnome.mplayer; member=SetProgressText
   string "Cache fill: 26.92% (33096.0 K/s)"
signal sender=:1.48 -> dest=(null destination) serial=200 path=/control/62131; 
interface=com.gnome.mplayer; member=SetCachePercent
   double 0.35137
signal sender=:1.48 -> dest=(null destination) serial=201 path=/control/62131; 
interface=com.gnome.mplayer; member=SetProgressText
   string "Cache fill: 35.14% (25460.0 K/s)"
signal sender=:1.51 -> dest=(null destination) serial=3304 path=/control/62131; 
interface=com.gecko.mediaplayer; member=Event
   string "LeaveWindow"

Any other cache settings I was missed?

Original comment by callwil...@gmail.com on 3 Aug 2011 at 4:10

GoogleCodeExporter commented 8 years ago
Please don't chop the output from firefox...

What happens if you just put this in firefox

http://localhost:8080/data/bbc1080p.mov

Original comment by kdeko...@gmail.com on 3 Aug 2011 at 12:40

GoogleCodeExporter commented 8 years ago
Please note that even with caching disable, mplayer will still cache some of 
the video which may take a second or two. It will do this to ensure that it has 
enough data to start the playing.

Original comment by kdeko...@gmail.com on 3 Aug 2011 at 12:46

GoogleCodeExporter commented 8 years ago
Yup I have tried http://localhost:8080 in Firefox.  It's the same.
Indeed, when I use gnome-mplayer with a playlist, it will switch to the next 
video nearly with no delay, not like gecko-mediaplayer when used with Firefox.  
From the log, it caches up  before it displays to the broswer with certain 
delay during the switching of a video.  Need to modify the source code to avoid 
this, like plugin.cpp?

Original comment by callwil...@gmail.com on 6 Aug 2011 at 9:40