Skip to content

Commit

Permalink
6 i dont think the imagewebcam feature is working (#7)
Browse files Browse the repository at this point in the history
* Remove GA

* Update gifie link in README

Point to https, not http!

* Fix video stream mapping in gifie.js

The Firefox-check doesn't really work.
And it doesn't need to be specifically set per version.
Instead, just set all props.
  • Loading branch information
eirikb authored May 4, 2023
1 parent 6fd6587 commit 2331fd0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 21 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gifie](http://eirikb.github.io/gifie)
[gifie](https://eirikb.github.io/gifie)
=====

Create a gif-selfie using built in HTML5 web cam and [gif.js](http://jnordberg.github.io/gif.js).
Create a gif-selfie using built in HTML5 web cam and [gif.js](https://jnordberg.github.io/gif.js).
18 changes: 7 additions & 11 deletions gifie.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,14 @@ gifie = (function() {

navigator.getUserMedia({
video: true
}, function(stream) {
if (navigator.mozGetUserMedia) {
video.mozSrcObject = stream;
} else {
try {
video.src = (window.URL || window.webkitURL).createObjectURL(stream);
} catch(e) {
video.srcObject = stream;
}
}
}, function (stream) {
video.srcObject = stream;
video.mozSrcObject = stream;
try {
video.src = (window.URL || window.webkitURL).createObjectURL(stream);
} catch (e) { }
trigger('prepare');
}, function(err) {
}, function (err) {
trigger('prepare', err);
});
}
Expand Down
8 changes: 0 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,6 @@
</head>

<body>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-45228842-1', 'eirikb.github.io');
ga('send', 'pageview');
</script>
<div class="container">
<div>
<h1>gifie</h1>
Expand Down

0 comments on commit 2331fd0

Please sign in to comment.