Commit Graph

292 Commits

Author SHA1 Message Date
Chris Double
2b08d28a2e Bug 495129. Propagate errors better. r+sr=roc 2009-05-28 16:39:39 +12:00
Robert O'Callahan
6134d7088d Bug 495145. Don't change the state away from ENDED if we try to pause in the ENDED state. r=doublec 2009-05-28 15:49:22 +12:00
Robert O'Callahan
4f81b0342f Since test_load.html waits for load events, make sure it autobuffers and set the cache size to something large so loads aren't suspended. No bug, test-only change. 2009-05-25 12:51:01 +12:00
Chris Double
1ae4c2a0d3 Bug 494035. Never enable tracks we don't use. r=roc
--HG--
extra : rebase_source : ceffc78e6473273893fd1ad000799b32023f5c76
2009-05-25 12:45:47 +12:00
Robert O'Callahan
3dc99d8a9f Bug 494336. In DECODER_STATE_DECODING state, if mBufferExhaused is set then stop waiting for the next frame to become available. r=doublec
--HG--
extra : rebase_source : 8b9a35e65cd0ddde311a493b4762fbd58fa2abf6
2009-05-25 12:44:45 +12:00
Robert O'Callahan
3d39f15314 Bug 475110. Don't try to handle Wave files loaded via links or <object> using our Wave codec, since there are Wave formats we don't support that are actually used in the wild. r=doublec,a=beltzner
--HG--
extra : rebase_source : 562c7c7c17157082483e456f33aa8b211fd07aeb
2009-05-25 12:42:19 +12:00
Chris Pearce
4a9eea3922 Bug 493958. When decoding ahead to the desired seek position, save up the audio data as we go, because some of it might be needed for the destination frame and later frames. Also, if we reach the end of the frames without finding our destination position, keep the last frame and display it. r=doublec,roc 2009-05-21 17:55:12 +12:00
Chris Double
e3232bfecd Fix another FrameData leak (Bug 463358). Fixes intermittent orange. 2009-05-21 03:17:21 +12:00
Robert O'Callahan
dfae15cade Fix FrameData leak (bug 463358) 2009-05-20 21:11:48 +12:00
Robert O'Callahan
cda3109ffc Bug 493109. Shut down step-decode thread from the main decoder thread, instead of synchronously on the main thread at bad times. r=doublec
--HG--
extra : rebase_source : 4af72350a51255e7e8748c726a17f9e88e1a540b
2009-05-19 11:08:08 +12:00
Chris Pearce
b515f90d78 Bug 463358. Seek to any desired frame without visual artifacts by seeking to the previous keyframe and then decoding forward to the desired frame. r=doublec,roc
--HG--
extra : rebase_source : 602a8f9feb74a1ef88e86424028d8da7bcf57b58
2009-05-20 15:50:44 +12:00
Robert O'Callahan
efef7a6bc2 Backing out bug 493109 on suspicion of causing crashes in linux tests 2009-05-20 00:24:37 +12:00
Robert O'Callahan
6256de7f9c Backed out changeset 4b86cbae2846 2009-05-20 00:23:51 +12:00
Robert O'Callahan
f843370660 Bug 486922. Clamp out-of-bounds seek requests. r=doublec
--HG--
extra : rebase_source : deeabc531d4fa6ada6e35740aed44bcc3844f233
2009-05-19 21:55:04 +12:00
Robert O'Callahan
b4d2d7054a Fix test_media_selection.html to handle IDLE network states, since the cache size limit can suspend its loads
--HG--
extra : rebase_source : a90486545fbb993c48dba3ee0025418b7bdc915f
2009-05-19 21:53:38 +12:00
Robert O'Callahan
d848e30d78 Bug 493109. Shut down step-decode thread from the main decoder thread, instead of synchronously on the main thread at bad times. r=doublec
--HG--
extra : rebase_source : 3a1a053308fc209181f7f23b234ba2f396de2a6e
2009-05-19 11:08:08 +12:00
Robert O'Callahan
5b5d6baa5f Bug 480058. Handle non-square Theora pixel-aspect-ratio property. r=doublec
--HG--
extra : rebase_source : 0a43b053b52a9b1e300f7f516517722c44040992
2009-05-19 11:07:19 +12:00
Chris Double
127a265725 Bug 493673. If a video frame has an audio track but no audio data at all, assume the audio has ended and stuff silence into the audio stream. We need this so that video will keep playing synced to the audio clock. r=roc
--HG--
extra : rebase_source : a1684fbd769ae48602335d312a33aa87ca17b8aa
2009-05-19 17:39:40 +12:00
Robert O'Callahan
3d87360eee Bug 493431. When a frame has no video data, don't try to use the video time. r=doublec
--HG--
extra : rebase_source : 985b41ec426c1cc793634c9f40f6924fbd33ed9b
2009-05-19 17:30:36 +12:00
Chris Pearce
a0da0c82f6 Bug 487612. Let the start time of all media be 0 even if the internal timestamps start with something nonzero. r=doublec,roc
--HG--
extra : rebase_source : ee419a06388a5230cddd79c78ddb86ed99fb6400
2009-05-19 17:25:51 +12:00
Matthew Gregan
f201fe7c68 Bug 454971. Support 'new Audio()' constructor. r+sr=roc
--HG--
extra : rebase_source : 1738d65cd16a79d69408055a8d9feb5ab5d97923
2009-05-19 17:18:41 +12:00
Robert O'Callahan
bb3c7fc0f9 Bug 492420. Delay a little before playing a live stream to try to reduce the likelihood we'll have to buffer. r=doublec
--HG--
extra : rebase_source : 022aa4d89644b3cfef62f95b4349932594de734f
2009-05-19 17:14:20 +12:00
Robert O'Callahan
acdb5cc508 Bug 480058. Handle non-square Theora pixel-aspect-ratio property. r=doublec
--HG--
extra : rebase_source : 762e10566ae85d0f73d7080ccb090533d50bfe66
2009-05-19 11:07:19 +12:00
Robert O'Callahan
0855ba8432 Bug 493509. Don't fire 'suspend' when the resource is actually fully loaded. r=doublec
--HG--
extra : rebase_source : a7ae1b2f53c7eb4b8a0e270510028d155d79f319
2009-05-19 11:06:10 +12:00
Robert O'Callahan
f1b439157e Bug 487659. Make sure we never pass a playback rate of 0 to the media cache. r=doublec
--HG--
extra : rebase_source : af86613bb5283e777acf1ca01d67eaa734cb8a0f
2009-05-19 11:05:13 +12:00
Robert O'Callahan
0785b005eb Bug 493187. Call nsOggDecoder::UpdateReadyStateForData more often so we don't fail to notice state changes, and make it smarter about examining the frame queue. r=doublec
--HG--
extra : rebase_source : 9a45e7cf9dc048956971ecf83b0bcc9bb2e45491
2009-05-19 10:47:08 +12:00
Robert O'Callahan
a3f433b1b3 Bug 493443. Set readyState to HAVE_CURRENT_DATA whenever the Ogg frame queue is empty or we're buffering/seeking, instead of trying to hardcode it based on other events like PlaybackEnded. r=doublec
--HG--
extra : rebase_source : 0b2f938e5f19cbb21258248da9da09e2a525db81
2009-05-19 10:44:17 +12:00
Benjamin Smedberg
bb1c33c4ea Bug 488175 - flatten dist/include and provide mechanism to install certain headers in namespaced subdirectories (e.g. #include "mozilla/XPCOM.h") r=ted
--HG--
rename : xpcom/ds/nsTimeStamp.cpp => xpcom/ds/TimeStamp.cpp
rename : xpcom/ds/nsTimeStamp.h => xpcom/ds/TimeStamp.h
2009-05-18 14:15:05 -04:00
Robert O'Callahan
ceaf55f434 Fix test_media_selection.html; its video resource needs to be autobuffer so it doesn't stop loading
--HG--
extra : rebase_source : 937602951c6a8c9831f6a73adc913457e913a7d6
2009-05-18 20:18:43 +12:00
Robert O'Callahan
2d8939e3ca Fix test_autobuffer2 to handle the case when a suspend happens when all the data is already loaded.
--HG--
extra : rebase_source : 7923d3fde3e4aef1723e424631f65a64d663f2a3
2009-05-18 16:37:10 +12:00
Robert O'Callahan
5c3106e300 Relax time constraint in test_buf482461 a bit.
--HG--
extra : rebase_source : 01fda6b6e4f50a8207208b22811a335117f9518c
2009-05-18 15:20:40 +12:00
Robert O'Callahan
9ae2cf2709 Bug 479863. AdFire 'suspend' event and do correct networkState transitions when downloads suspend and resume. Also avoid firing 'stalled' while the download is suspended. r=doublec
--HG--
extra : rebase_source : 0615871c062638d575a66e29b630040821a9f9cf
2009-05-18 14:03:37 +12:00
Robert O'Callahan
710d28a4e6 Bug 479863. Add ability to close and reopen suspended streams, and recover from server-side disconnect of suspended streams. r=doublec
--HG--
extra : rebase_source : 5ed7825cd919ad3f997f58dafb61c2d4249b60d4
2009-05-18 14:02:20 +12:00
Robert O'Callahan
a2a28c523b Bug 479863. Stop buffering media elements by default, implement 'autobuffer' attribute to control buffering. r=doublec
--HG--
extra : rebase_source : 5fa0b63da981fdfcf7b1555174b6d1122bf2ae97
2009-05-18 14:00:44 +12:00
Robert O'Callahan
80975dcc56 Fix seeking tests to avoid false assumptions 2009-05-18 12:25:05 +12:00
Robert O'Callahan
ee1a877ccf Fix test_seek5; it should not depend on reading currentTime for the first seek during the asynchronous 'seeking' event, since the second seek may well have already happened. 2009-05-18 12:15:32 +12:00
Chris Pearce
ff942d65f4 Bug 469408. Make seeking in bufferred ranges fast by trying a 'bounded seek' in each buffered data range before falling back to a seek over the whole resource. r=doublec,sr=roc 2009-05-18 10:15:57 +12:00
Robert O'Callahan
c2bc1f2907 Bug 476973. Don't get confused by repeated seeks in the Ogg decoder. r=doublec 2009-05-18 10:03:03 +12:00
Josh Aas
2f6891c68f Disable test "test_videoDocumentTitle.html" due to random failures. b=492821 2009-05-15 23:20:39 -04:00
Robert O'Callahan
9bc46422a9 Disable test_autobuffer2.html for now, it fails a lot (bug 493692 filed) 2009-05-19 17:44:23 +12:00
Robert O'Callahan
e2ae04f459 Make test_autobuffer2.html more informative to try to narrow down the failures 2009-05-19 16:10:08 +12:00
Robert O'Callahan
45d2769b54 Backing out bug 480058 since it seems to have caused reftest failures on Windows 2009-05-19 16:04:16 +12:00
Robert O'Callahan
fb15d8ccac Backed out changeset 49f254a4390e 2009-05-19 16:03:49 +12:00
Chris Double
7d1ceb826c Bug 461286. Don't try to get more frames if we've completed decoding. r=roc
--HG--
extra : rebase_source : 11346f044176fdaba753e5a4ce5d74ef91ffc493
2009-05-19 12:07:27 +12:00
Chris Double
16b6058725 Bug 493494. Stop playback when a seek occurs so that A/V sync doesn't get confused. r=roc
--HG--
extra : rebase_source : 8dd4c7d5e95472cb17f7523db56446966f11f704
2009-05-19 11:11:59 +12:00
Robert O'Callahan
54052b20f1 Bug 489415. Handle media streams with data from different principals in the media cache. r=bzbarsky,doublec 2009-05-14 09:52:50 +12:00
Chris Double
9f038bfa2e Bug 466699 - Fix out of sync video and audio - r+sr=roc
--HG--
extra : rebase_source : ee8eedf72add30627fdbeef7cf22bc70a9415362
2009-05-15 13:29:05 +12:00
Robert O'Callahan
bb0f8610f9 Backed out changeset eb93563530d5 2009-05-14 12:38:33 +12:00
Robert O'Callahan
9926956f04 Bug 489415. Handle media streams with data from different principals in the media cache. r=bzbarsky,doublec
--HG--
extra : rebase_source : 2551f25e1828939dbb1619c31d3cedc2217a6623
2009-05-14 09:52:50 +12:00
Chris Double
f875415388 Bug 474540 - Moves oggplay decoder to separate thread for better playback performance in big videos - r=kinetik sr=roc
--HG--
extra : rebase_source : 8f6925b3dc3a50e8bb02f39d76d2b2444b089b6d
2009-05-13 11:47:52 +12:00
Jeff Muizelaar
ab93609bae Bug 487305 - create video surface element with RGB24 colour format instead of ARGB32. r=joe 2009-05-12 15:25:05 -04:00
Matthew Gregan
016153f95a Bug 488287. When playback ends, readyState should change to HAVE_CURRENT_DATA. r=doublec,sr=roc
--HG--
extra : rebase_source : ea224af1634304c40d7e4ea0f564e72ccab65caa
2009-05-08 14:25:13 +12:00
L. David Baron
8c38aba811 Switch HTML mochitests from using MochiKit.js to packed.js. (Bug 490955) r=sayrer 2009-05-06 13:46:04 -07:00
Chris Pearce
79d9578afd Bug 488961 - Don't listen for 'stalled' event in content/media/video/test_load.html 2009-04-27 13:03:47 +12:00
Honza Bambas
e1d4b6d384 Bug 486646 - nsMediaChannelStream::OnStopRequest nulls out mChannel too early, r=roc+bz 2009-04-21 20:43:09 +02:00
Robert O'Callahan
642498a112 Bug 486991. Convert nsMediaStream and media decoders to use TimeStamp/TimeDuration. r=doublec 2009-04-11 21:39:24 +12:00
Robert O'Callahan
7a2ad352d5 Bug 486991. Convert nsMediaCache to use TimeStmap/TimeDuration. r=doublec 2009-04-11 21:39:02 +12:00
Chris Double
9761fb97cb Bug 487552. Stop playback while buffering so that we don't lose audio sync. r=roc
--HG--
extra : rebase_source : b9d10569862aeed02c424fdaec64a5062fa3c7bc
2009-04-10 13:34:15 +12:00
Chris Pearce
ee8c4eae0d Bug 482885. Ensure media channels are in the document loadgroup. r=bzbarsky,r+sr=roc
--HG--
extra : rebase_source : da14c85f0efd3eda24739161f8195d24117da261
2009-04-10 13:28:24 +12:00
Robert O'Callahan
95cf32025a Bug 486556. Don't rely on loadeddata firing before the document load event, per spec it might not. r=doublec
--HG--
extra : rebase_source : 66db9e1f5e94d17f028855e62ebe1aee2ee5acc4
2009-04-10 13:12:19 +12:00
Robert Longson
b2f8e75361 Bug 486934 - video display should take account of image-rendering CSS property. r+sr=roc 2009-04-06 12:05:29 +01:00
Robert O'Callahan
5bde4bb05f Backout incorrectly pushed changes 2009-04-06 14:19:27 +12:00
Robert O'Callahan
1ca364a2d0 Fix libxul test bustage
--HG--
extra : rebase_source : 49e42436893e10cae0e70cc5468b4d95a47cb07d
2009-04-06 14:15:26 +12:00
Matthew Gregan
30576094cf Bug 486923. Clean up nsWaveDecoder a bit. r+sr=roc 2009-04-06 12:20:51 +12:00
Chris Double
15b8c00987 Bug 486641. StopPlayback after Drain()ing the audio stream so we create a new audio stream the next time audio is used. r=kinetik 2009-04-06 12:19:33 +12:00
Matthew Gregan
a1bb6c1bab Remove some unnecessary dump() calls from my video mochitests. No bug. r=xenu 2009-04-05 11:39:30 +12:00
Matthew Gregan
6171b2a005 Bug 485291 - Update liboggplay to b4a7efa06d46596515071490cb255c3548d90371. rs=roc, r=ted.mielczarek for build changes, r=chris.double for local liboggplay changes
--HG--
extra : rebase_source : 84b9322bc764ff70d0df4bd9ff51c3ec243bdc1d
2009-04-04 01:56:22 +13:00
Robert O'Callahan
76cc4c16be Bug 475441. Fix tests that assume a 'playing' event will be sent when we replay after playback has ended. r=doublec 2009-04-01 14:07:17 +13:00
Robert O'Callahan
7d5620c7aa Bug 475441. Make nsWaveDecoder seek instead of reloading when asked to replay after playback has ended. r=kinetik 2009-04-01 14:07:17 +13:00
Robert O'Callahan
32245a0582 Bug 475441. Make nsOggDecoder seek instead of reloading when asked to replay after playback has ended. r=doublec 2009-04-01 14:07:10 +13:00
Robert O'Callahan
64b6352d5f Bug 475441. Make the media cache size really small while we're running mochitests, to give the cache code a thorough workout. r=doublec 2009-04-01 13:52:56 +13:00
Robert O'Callahan
742c2cd62e Bug 475441. Implement media data cache. r=doublec,kinetik 2009-04-01 13:52:56 +13:00
Robert O'Callahan
693437fc2e Backed out changeset b6a1093e5814 2009-04-01 16:19:00 +13:00
Robert O'Callahan
7476df2627 Bug 475441. Implement media data cache. r=doublec,kinetik
--HG--
extra : rebase_source : 3907c84869b1c8bad2279295858ff77ab159d6ee
2009-04-01 13:52:56 +13:00
Robert O'Callahan
168c4a55b9 Bug 475441. Clean up media tests to avoid opening windows or leaving them lying around. r=doublec
--HG--
extra : rebase_source : 86a5dabc1992d0676de30d67db99bec3e1b91b54
2009-03-30 14:22:02 +13:00
Robert O'Callahan
441ffd3298 Bug 475441. Rename media stream classes. r=doublec
--HG--
extra : rebase_source : 824365b6fae0224ffa2ed78bc6062c74c7a02fc5
2009-03-30 14:20:32 +13:00
Robert O'Callahan
e5926e97d4 Bug 475441. Merge nsDefaultStreamStrategy with nsHttpStreamStrategy. r=doublec
--HG--
extra : rebase_source : fd65378e88a550c9753333521bbaed05ee902e4d
2009-03-30 14:19:51 +13:00
Robert O'Callahan
4eeda3d9bb Bug 475441. Expose media strategy directly to decoders instead of proxying through nsMediaStream. r=doublec
--HG--
extra : rebase_source : 326765f1368497c2054531962cad224a43d5d05c
2009-03-30 14:19:10 +13:00
Matthew Gregan
b07995dc3c Bug 485036 - Shut down nsAudioStream when decode state machine shuts down. r=chris.double, sr=roc
--HG--
extra : rebase_source : aed2f4e5b6375c506d2b3afec5cb81b97bdba21d
2009-03-25 15:19:58 +13:00
Matthew Gregan
c4fca6383a Bug 483589 - Fix PRBool violation in nsWaveStateMachine::ScanForwardUntil. r+sr=roc
--HG--
extra : rebase_source : d1898e6ea258dd0a1ec1c13e099f70d11ac5ba2d
2009-03-16 18:53:48 +13:00
Matthew Gregan
9ba64c841a Bug 474748 - Defer YUV conversion until frame paint, and allow SetRGBData to assume ownership of the RGB buffer rather than copying it. r=chris.double, sr=roc
--HG--
extra : rebase_source : 7d122efaed1a506cebe35740f7e6d33bf6311ced
2009-03-17 16:45:00 +13:00
Matthew Gregan
37afa56509 Bug 474748 - Use EXTEND_NONE to paint video frames when target surface is X11. r+sr=roc
--HG--
extra : rebase_source : a97380f1d6d9d7c896dcf584aa845e4fcfbaa876
2009-03-17 11:12:13 +13:00
Matthew Gregan
9f3a5b2f76 Bug 470662 - Don't set paused to true when playback ends. Fix handling of playing/suspend attrs. r=chris.double, sr=roc
--HG--
extra : rebase_source : f5161f9a699015b41c4947b52624901786adc852
2009-02-27 00:55:30 +13:00
Matthew Gregan
8cea93aa59 Matthew Gregan - Bug 481109 - Ignore attempts to transition from shutdown to any other state in Wave decoder 2009-03-03 16:18:23 +13:00
Matthew Gregan
04ccb8e3ca Matthew Gregan - Bug 476813 - progress events shouldn't be fired while the network is stalled. r+ doublec sr+ roc 2009-03-02 19:16:14 +13:00
Chris Pearce
30d943ae95 Chris Pearce - Bug 478957 - Audit events when loading local files from another domain. r+ doublec sr+ roc 2009-03-09 10:02:14 +13:00
Chris Pearce
8504bb216c Chris Pearce - Bug 479711 - Media elements should delay the document 'load' event 2009-03-09 10:01:03 +13:00
Chris Pearce
bec4c67a63 Chris Pearce - Bug 479859 - Implement new new load algorithm r+ doublec sr+ roc. 2009-03-09 09:59:08 +13:00
Chris Double
1d4babacaa Bug 477899 - Requests for the duration of a media resource are cached by liboggplay, with fix for previous win32 buld error - r+sr=roc 2009-03-03 23:23:54 +13:00
Chris Double
20f90eea2c Backed out changeset 0722a0e98124 2009-03-03 22:01:06 +13:00
Chris Double
1424ff6f0c Bug 477899 - Requests for the duration of a media resource are cached by liboggplay - r+sr=roc 2009-03-03 21:35:50 +13:00
Matthew Gregan
3facbf1d48 Merge backout of 59d848818fd8. 2009-02-26 22:06:11 +13:00
Matthew Gregan
241ed4b214 Backed out changeset 59d848818fd8 2009-02-26 21:59:39 +13:00
Matthew Gregan
005e869ef9 Replace test Wave file with silent alternative. No bug. 2009-02-26 21:30:29 +13:00
Matthew Gregan
51b1c1c5aa Bug 470662 - Don't set paused to true when playback ends. r=chris.double, sr=roc 2009-02-25 14:41:42 +13:00
Matthew Gregan
620e25b404 Bug 471024 - volume or mute set early in media load ignored. r=chris.double, sr=roc 2009-02-25 23:59:00 +13:00
Matthew Gregan
b6b81dc5ee Bug 469275 - Seeks requested while Wave state machine is in ended state are lost. r+sr=roc
--HG--
extra : rebase_source : 03ead0a2032ac705b2156bb1b02aef33a414c67b
2009-02-24 15:34:36 +13:00
Ben Turner
c4e95fb3aa Bug 479725 - 'UMR [@ nsOggDecoder::GetStatistics], nsOggDecoder::mDuration not initialized'. r+sr=roc. 2009-02-22 16:51:06 -08:00
Chris Pearce
74bfee1398 b=465458 Media selection algorithm changed in r2403 of HTML5 spec r=doublec sr=roc
--HG--
extra : rebase_source : 09a091ebb5c7a42480a423ac304aacedfa286c4c
2009-02-20 15:49:00 +13:00
Chris Double
66f2bcbbca Backed out changeset 2b7e176d9e73 2009-02-20 16:01:58 +13:00