Skip to content
This repository has been archived by the owner on Jun 9, 2019. It is now read-only.

Broken on iOS devices #23

Closed
hitode909 opened this issue Jun 22, 2014 · 3 comments
Closed

Broken on iOS devices #23

hitode909 opened this issue Jun 22, 2014 · 3 comments

Comments

@hitode909
Copy link

timbre.js looks broken on iOS devices.

It doesn't play any sound.

It looks broken since 199775c .

I used code below and checked with git bisect start master 4df0821.
c858ad1 plays sin wave, but 199775c doesn't play in iOS simulator.

<html>
  <body>
    <h1>Click me</h1>
    <script src="timbre.dev.js"></script>
    <script>document.querySelector('h1').onclick=function() { console.log('click'); T("sin").play(); }</script>

timeout doesn't work

timeout looks broken since 199775c .
c858ad1 displays ended, but 199775c doesn't display ended.

<html>
  <body>
    <h1>Click me</h1>
    <script src="timbre.dev.js"></script>
    <script>
      document.querySelector("h1").onclick=function() {
        document.write("<h1>Just wait...</h1>");
        T("timeout", {timeout:500}).on("ended", function() { document.write("<h1>ended</h1>"); }).start();
      };
    </script>
@SPENCERPOPE
Copy link

I've used it to make numerous apps, so I'm certain it is functional on iOS. Something like this works for me:
<script>function playSin(){ T("sin").play(); }</script> <button onclick="playSin();">play sin</button>

@mohayonao
Copy link
Owner

:godmode: thank you for your report :feelsgood:

@hitode909
Copy link
Author

🍰 🍰 🍰

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants