Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

media.js moved to audio.js

  • Loading branch information...
commit 877a629c689d9927b087763460de68a7de8815e2 1 parent d24697d
Ryan Willoughby wildabeast authored
Showing with 0 additions and 36 deletions.
  1. +0 −36 symbian.wrt/js/media.js
36 symbian.wrt/js/media.js
View
@@ -1,36 +0,0 @@
-/**
- * This class provides access to the device media, interfaces to both sound and video
- * @constructor
- */
-function Media(src, successCallback, errorCallback) {
- this.src = src;
- this.successCallback = successCallback;
- this.errorCallback = errorCallback;
-}
-
-Media.prototype.record = function() {
-}
-
-Media.prototype.play = function(src) {
-
- if (document.getElementById('gapsound'))
- document.body.removeChild(document.getElementById('gapsound'));
- var obj;
- obj = document.createElement("embed");
- obj.setAttribute("id", "gapsound");
- obj.setAttribute("type", "audio/x-mpeg");
- obj.setAttribute("width", "0");
- obj.setAttribute("width", "0");
- obj.setAttribute("hidden", "true");
- obj.setAttribute("autostart", "true");
- obj.setAttribute("src", src);
- document.body.appendChild(obj);
-}
-
-Media.prototype.pause = function() {
-}
-
-Media.prototype.stop = function() {
-}
-
-if (typeof navigator.media == "undefined") navigator.media = new Media();
Please sign in to comment.
Something went wrong with that request. Please try again.