Thursday, May 9, 2013

[WD&D] Digest for sitedesign@googlegroups.com - 1 Message in 1 Topic

Group: http://groups.google.com/group/sitedesign/topics

    "Anthony P." <papillion@gmail.com> May 07 07:30PM -0700  

    Hello Everyone,
     
    I'm developing an HTML5 app that will use WebRTC. All I'm trying to do is
    to capture a media stream and display it in a video element. Here is the
    code I'm using within my HTML document:
     
    <script type="text/javascript">
    function startVideo(){
    navigator.webkitGetUserMedia({audio: true, video: true}, onSuccess,
    onFail);
    }

    onFail = function(error){
    alert("An error occured. Error detail: " + error);
    }
     
    onSuccess = function(stream){
    var url = webkitURL.createObjectURL(stream);
    var video = document.getElementById("video");

    video.src = stream;
    }
    </script>
     
    <video id="video" autoplay="autoplay"></video>
     
    When I run the code above, I get an object.navigatorUserMediaError. That's
    all the details I'm getting. Can anyone clue me in as t owhat I'm doing
    wrong?
     
    Thanks,
    Anthony

     

You received this message because you are subscribed to the Google Group sitedesign.
You can post via email.
To unsubscribe from this group, send an empty message.
For more options, visit this group.

--
--
You received this because you are subscribed to the "Web Design and Development" group at Google Groups. Messages are prefixed with [WD&D] in the subject. No spam is allowed. Be civil, be professional; try to be helpful & mind your netiquette. All posts are Copyright the original author and the Web Design and Development group. No reproduction of this content is allowed in any electronic or printed form outside the group at Google Groups and the http://www.WDaDg.org website. Any unauthorized use of our copy constitutes illegal Copyright infringement and may well be prosecuted to the full extent of the law. Digital Signature: $©"[W|D|&|D]g"|^|!SiteDesign@GG||#%$
To post to this group, email SiteDesign@googlegroups.com
To unsubscribe, email SiteDesign-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/SiteDesign?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Web Design and Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sitedesign+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

1 comment:

  1. Now I am going to do my breakfast, later than having my breakfast coming
    again to read other news.

    My blog post; レイバンサングラス

    ReplyDelete