Last Comment Bug 515082 - Investigate enabling UI to control audio elements in email messages
: Investigate enabling UI to control audio elements in email messages
Status: NEW
:
Product: Thunderbird
Classification: Client Software
Component: Message Reader UI (show other bugs)
: Trunk
: All All
: -- normal with 4 votes (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
:
Mentors:
Depends on: 449358 463155
Blocks:
  Show dependency treegraph
 
Reported: 2009-09-07 13:47 PDT by Mark Banner (:standard8)
Modified: 2013-05-01 17:28 PDT (History)
6 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---


Attachments

Description Mark Banner (:standard8) 2009-09-07 13:47:57 PDT
When implementing bug 463155 we discovered that the audio element can be not shown and set to autoplay. For email messages this could be quite annoying.

Additionally even if the controls are set to be shown, we still can't hook the context menu Play/Pause functions to control the audio element.

For the time being, we are therefore disabling autoplay and this bug should investigate possible UIs for allowing re-enabling of autoplay (if desired) and controlling audio elements properly.
Comment 1 Joe Sabash [:JoeS1] 2013-02-16 08:11:23 PST
The XBL scoping seems to have fixed the lack of controls in FF
https://bugzilla.mozilla.org/show_bug.cgi?id=449358#c38
Not so in TB however.

I can get the audio and video controls to appear and play in native video/audio mode by using an iframe rather than the video/audio tag.
Example code:
*iframe
src="http://upload.wikimedia.org/wikipedia/en/0/04/Rayman_2_music_sample.ogg"
      autoplay="true"></iframe>
Produces the controls and they work fine.

This is just an FYI, as I realize this is a low priority bug.
I'm also not sure the iframe behavior is a direct result of the XBL scoping, but I suspect so.
Comment 2 Mark Banner (:standard8) 2013-02-18 01:46:14 PST
It could be that we're blocking something too much in our content policy that somehow prevents the controls. Without debugging nsMsgContentPolicy to find out what is/isn't being blocked when a message with video/audio loads, it is hard to say though.
Comment 3 Alexander 2013-05-01 17:28:56 PDT
In 17 version i see no controls and not able to play audio from message. With iframe TB offers me to download file. With audio tag it shows nothing at all.

Note You need to log in before you can comment on or make changes to this bug.