Skip to content

Commit

Permalink
Merge pull request #737 from billdawson/timob-6238
Browse files Browse the repository at this point in the history
TIMOB-6238 implement videoplayer.start
  • Loading branch information
joshthecoder committed Nov 20, 2011
2 parents 654677d + 4478948 commit c3edf26
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,15 @@ public void play()
control(MSG_PLAY);
}

/**
* Backwards-compatibility
*/
@Kroll.method
public void start()
{
play();
}


@Kroll.method
public void pause()
Expand Down
3 changes: 2 additions & 1 deletion drillbit/tests/media/media.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ describe("Ti.Media tests", {
valueOf(player).shouldNotBeNull();
valueOf(player.add).shouldBeFunction();
valueOf(player.pause).shouldBeFunction();
valueOf(player.start).shouldBeFunction();
valueOf(player.play).shouldBeFunction(); // this is the documented way to start playback.
valueOf(player.start).shouldBeFunction(); // backwards compat.
valueOf(player.stop).shouldBeFunction();
if (!isAndroid) valueOf(player.setUrl).shouldBeFunction();
valueOf(player.hide).shouldBeFunction();
Expand Down

0 comments on commit c3edf26

Please sign in to comment.