Re: [whatwg] A slightly different use-case for shared workers

2008-08-29 Thread Cameron McCormack
Robert O'Callahan: Why not just open new window and move the playing audio element from the old window into the new window? You might need to call play() on it again in the new window, but you shouldn't lose your place in the stream. Why shouldn’t that throw a WRONG_DOCUMENT_ERR? -- Cameron

Re: [whatwg] A slightly different use-case for shared workers

2008-08-29 Thread Anne van Kesteren
On Fri, 29 Aug 2008 16:20:21 +0200, Cameron McCormack [EMAIL PROTECTED] wrote: Robert O'Callahan: Why not just open new window and move the playing audio element from the old window into the new window? You might need to call play() on it again in the new window, but you shouldn't lose your

Re: [whatwg] A slightly different use-case for shared workers

2008-08-29 Thread Russell Leggett
I'm also a Pandora fan, and I actually thought of another use. In addition to popping out a separate player, Pandora also opens new tabs/windows to browse pages about artists/songs. These pages allow you to listen to samples, but listening to them does not pause the player. It would be pretty cool

Re: [whatwg] A slightly different use-case for shared workers

2008-08-29 Thread Jonas Sicking
Anne van Kesteren wrote: On Fri, 29 Aug 2008 16:20:21 +0200, Cameron McCormack [EMAIL PROTECTED] wrote: Robert O'Callahan: Why not just open new window and move the playing audio element from the old window into the new window? You might need to call play() on it again in the new window, but

Re: [whatwg] A slightly different use-case for shared workers

2008-08-28 Thread Jonas Sicking
Aaron Boodman wrote: I encounter sites frequently that want to pop out part of their application free of the page, into a smaller window. For example, Pandora radio (http://pandora.com) does this. The player starts out embedded in the normal content area, but users have the option to pop it out

Re: [whatwg] A slightly different use-case for shared workers

2008-08-28 Thread Aaron Boodman
On Thu, Aug 28, 2008 at 3:11 PM, Jonas Sicking [EMAIL PROTECTED] wrote: I think that example could be solved simpler actually. An audio element can be moved between two documents without requiring any interference in its functionality. So if pandora used an audio to play music they could easily

[whatwg] A slightly different use-case for shared workers

2008-08-27 Thread Aaron Boodman
I encounter sites frequently that want to pop out part of their application free of the page, into a smaller window. For example, Pandora radio (http://pandora.com) does this. The player starts out embedded in the normal content area, but users have the option to pop it out into a smaller,

Re: [whatwg] A slightly different use-case for shared workers

2008-08-27 Thread Robert O'Callahan
On Thu, Aug 28, 2008 at 9:59 AM, Aaron Boodman [EMAIL PROTECTED] wrote: I encounter sites frequently that want to pop out part of their application free of the page, into a smaller window. For example, Pandora radio (http://pandora.com) does this. The player starts out embedded in the normal

Re: [whatwg] A slightly different use-case for shared workers

2008-08-27 Thread Aaron Boodman
On Wed, Aug 27, 2008 at 5:23 PM, Robert O'Callahan [EMAIL PROTECTED] wrote: On Thu, Aug 28, 2008 at 9:59 AM, Aaron Boodman [EMAIL PROTECTED] wrote: I encounter sites frequently that want to pop out part of their application free of the page, into a smaller window. For example, Pandora radio

Re: [whatwg] A slightly different use-case for shared workers

2008-08-27 Thread Ian Hickson
On Wed, 27 Aug 2008, Aaron Boodman wrote: Why not just open new window and move the playing audio element from the old window into the new window? You might need to call play() on it again in the new window, but you shouldn't lose your place in the stream. Hm, that is a good point.

Re: [whatwg] A slightly different use-case for shared workers

2008-08-27 Thread Robert O'Callahan
On Thu, Aug 28, 2008 at 12:30 PM, Aaron Boodman [EMAIL PROTECTED] wrote: Hm, that is a good point. I didn't consider the the audio object would keep playing smoothly when moved between documents. That seems unlikely to be reliable across implementations, but I'll keep my fingers crossed :).

Re: [whatwg] A slightly different use-case for shared workers

2008-08-27 Thread Aaron Boodman
On Wed, Aug 27, 2008 at 6:46 PM, Robert O'Callahan [EMAIL PROTECTED] wrote: Works on Firefox trunk :-). Testcase attached. (The Vorbis file takes a while to download so you should probably let it play through once before trying the test.) What is the rationale behind having to call play()

Re: [whatwg] A slightly different use-case for shared workers

2008-08-27 Thread Robert O'Callahan
On Thu, Aug 28, 2008 at 2:23 PM, Aaron Boodman [EMAIL PROTECTED] wrote: On Wed, Aug 27, 2008 at 6:46 PM, Robert O'Callahan [EMAIL PROTECTED] wrote: Works on Firefox trunk :-). Testcase attached. (The Vorbis file takes a while to download so you should probably let it play through once