- From: Marco Chen <mchen@mozilla.com>
- Date: Tue, 17 Mar 2015 10:43:37 +0800
- To: Paul Higgs <paul.higgs@ericsson.com>
- Cc: "public-tvapi@w3.org" <public-tvapi@w3.org>
- Message-ID: <CAEeA-r4Q0GN1+gaXu6_pVS6ewpoaRzby=dDUKewncgthJi=v+Q@mail.gmail.com>
Hi Paul, Please refer to [1], there is a new attribute proposed in HTMLMediaElement and called "srcObject". You can just assign a MediaStream object into it. [1] http://w3c.github.io/mediacapture-main/getusermedia.html#widl-HTMLMediaElement-srcObject Thanks, Sincerely yours. On Tue, Mar 17, 2015 at 4:18 AM, Paul Higgs <paul.higgs@ericsson.com> wrote: > Found it myself here…. > http://w3c.github.io/mediacapture-main/#direct-assignment-to-media-elements > > > > I am not sure how seamless transitioning from live to timeshifted would be > given that the “User Agent *MUST* re-run the media element load algorithm > <http://www.w3.org/TR/html5/embedded-content-0.html#media-element-load-algorithm>” > if the source for the MediaElement changes. > > > > *From:* Paul Higgs [mailto:paul.higgs@ericsson.com] > *Sent:* Monday, March 16, 2015 4:08 PM > *To:* public-tvapi@w3.org > *Subject:* Playing the channel from TVTuner > > > > Hi > > > > Looking at the TV Control API specification [1] I am left wondering how > these “connect” at an application level. > > > > I expect that we will be using an HTML5 video element [2] to present the > tuned channel and will interact with that presentation via some “TV > Application” > > > > As far as I can see, the TVTuner.stream is of type MediaStream (defined > in [3]) but the src attribute of the HTML5 <video> element is a URL. In > MSE [4] there is a createObjectURL() defined for MediaSource, but I do not > see anything equivalent in MediaStream. > > > > Could someone provide some sample JavaScript for connecting an HTML5 > <video> element to the TVTuner? > > > > [1] http://w3c.github.io/tvapi/spec/ > > [2] http://www.w3.org/TR/html5/single-page.html#the-video-element > > [3] http://www.w3.org/TR/mediacapture-streams/ > > [4] http://www.w3.org/TR/media-source/#methods-4 > > > > > > [image: Description: Description: Ericsson] <http://www.ericsson.com/> > > *PAUL HIGGS * > Technical Solutions Manager > Ericsson Inc > > > *Ericsson* > 6 Concourse Parkway, suite 400 > Atlanta, GA 30328, United States of America > Phone +1 (650) 580-1731 > paul.higgs@ericsson.com > www.ericsson.com > > > > [image: Description: Description: http://www.ericsson.com/current_campaign] > <http://www.ericsson.com/current_campaign> > > > > Legal entity: Ericsson AB, registered office in Kista, Sweden. This > Communication is Confidential. We only send and receive email on the basis > of the terms set out at www.ericsson.com/email_disclaimer > -- ------------------------------------- Marco Chen Engineering Manager Connected Device, Firefox OS Devices Mozilla Corporation
Attachments
- image/gif attachment: image002.gif
- image/gif attachment: image001.gif
Received on Tuesday, 17 March 2015 02:44:07 UTC