bob-sims / ytPlayer

Simple cross-platform Alloy Widget for Titanium Mobile, plays streaming YouTube video with native Ti.Media.VideoPlayer
Other
43 stars 15 forks source link

Update widget.js #1

Closed xtarx closed 11 years ago

xtarx commented 11 years ago

The old var json = decodeURIComponent(decodeURIComponent(decodeURIComponent(decodeURIComponent(this.responseText.substring(4, this.responseText.length)))));

no longer works , its produces an invalid json

so to make it work just simply replace it with

    var json = (this.responseText.substring(4, this.responseText.length));
bob-sims commented 11 years ago

Sorry so late with responding to this PR, as I do truly appreciate your contribution.

I rolled you change up with a few other minor ones I made to account for changes in the YouTube JSON response.

Thanks again.