jwplayer / jw-showcase-appletv

An Apple TV app builder written in TVJS with support for videos streamed out of the JW Player platform
Other
87 stars 44 forks source link

Issue with the URL #69

Open scottastafford5 opened 7 years ago

scottastafford5 commented 7 years ago

The app works when i push it to the apple device but then i'm having issues with URL for hosting my files. I tried using google drop box and says token issue. Then i try to use local web server and i get error, can't remember the error but the only website works is the demo. The other question i have why is that i have to use a web server to host this file, or is there another way or place to put this on jw player or apple at the end?

johnluther commented 7 years ago

Hi Scott. We pull as much of the code and config info as possible from the cloud so that you don't have to resubmit your app to the Apple store every time you want to make an update.

Dropbox won't work b/c it's a file storage service, not a web server. Using a static web site in Amazon S3 with your own domain is a good and affordable option. See http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html

scottastafford5 commented 7 years ago

John,I'm using amazon s3 still getting errors popping the files. do I need include both folders in amazon cloud to access it? 

Sent via the Samsung Galaxy S7, an AT&T 4G LTE smartphone -------- Original message --------From: John Luther notifications@github.com Date: 12/13/16 7:31 AM (GMT-06:00) To: jwplayer/jw-showcase-appletv jw-showcase-appletv@noreply.github.com Cc: scottastafford5 scottastafford5@gmail.com, Author author@noreply.github.com Subject: Re: [jwplayer/jw-showcase-appletv] Issue with the URL (#69) Hi Scott. We pull as much of the code and config info as possible from the cloud so that you don't have to resubmit your app to the Apple store every time you want to make an update. Dropbox won't work b/c it's a file storage service, not a web server. Using a static web site in Amazon S3 with your own domain is a good and affordable option. See http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/jwplayer/jw-showcase-appletv","title":"jwplayer/jw-showcase-appletv","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/jwplayer/jw-showcase-appletv"}},"updates":{"snippets":[{"icon":"PERSON","message":"@johnluther in #69: Hi Scott. We pull as much of the code and config info as possible from the cloud so that you don't have to resubmit your app to the Apple store every time you want to make an update. \r\n\r\nDropbox won't work b/c it's a file storage service, not a web server. Using a static web site in Amazon S3 with your own domain is a good and affordable option. See http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html\r\n"}],"action":{"name":"View Issue","url":"https://github.com/jwplayer/jw-showcase-appletv/issues/69#issuecomment-266738803"}}}

johnluther commented 7 years ago

Just the jwplayer-appletv-web-app folder. I'd also recommend renaming the folder to something shorter, for example tvosapp.

scottastafford5 commented 7 years ago

Everything works perfect but now anytime i run xcode i get error on if let kindstr = as? String {

Error Cast from UIApplicationLaunchOptionkey to unrelated type string always fails.

On Tue, Dec 13, 2016 at 3:05 PM, John Luther notifications@github.com wrote:

Just the jwplayer-appletv-web-app folder. I'd also recommend renaming the folder to something shorter, for example tvosapp.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jwplayer/jw-showcase-appletv/issues/69#issuecomment-266861647, or mute the thread https://github.com/notifications/unsubscribe-auth/AWYGv5OfQMq0n7sRne0IxLMeFFGRx7d-ks5rHwiEgaJpZM4LLQmx .

-- Thanks,

Scott Stafford

johnluther commented 7 years ago

Did you make any other changes to the AppDelegate.swift file other than the URL variables?

scottastafford5 commented 7 years ago

Nope, even if I start over i get same error using default varibles.

On Wed, Dec 14, 2016 at 12:54 PM, John Luther notifications@github.com wrote:

Did you make any other changes to the AppDelegate.swift file other than the URL variables?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jwplayer/jw-showcase-appletv/issues/69#issuecomment-267122066, or mute the thread https://github.com/notifications/unsubscribe-auth/AWYGvwnW5Qhk-OuyIWyJCE8B6ABpQ947ks5rIDt1gaJpZM4LLQmx .

-- Thanks,

Scott Stafford

Daniel-Berger commented 7 years ago

Hi @scottastafford5. I would be glad to assist you. Can you please email me at support+sdk@jwplayer.com so I can further trouble shoot your issue? Thanks.

onlyinmystreams commented 7 years ago

I was going through all this trouble to try and ad this file to my managed wordpress site through godaddy although I was not sure why I was using my website since I would only be using the jwplayer video tied to it's API and playlists. Is this thread suggesting that I could just create a folder in S3 and pull from that instead? Assuming I make the changes prior to uploading I suppose.

scottastafford5 commented 7 years ago

I finally got everything working right, i put my config file into S3 then used Xcode for the rest the app such. The S3 i had issues with webpage and permissions trying to access during testing but finally all up.

On Mon, Mar 13, 2017 at 11:36 AM, onlyinmystreams notifications@github.com wrote:

I was going through all this trouble to try and ad this file to my managed wordpress site through godaddy although I was not sure why I was using my website since I would only be using the jwplayer video tied to it's API and playlists. Is this thread suggesting that I could just create a folder in S3 and pull from that instead? Assuming I make the changes prior to uploading I suppose.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jwplayer/jw-showcase-appletv/issues/69#issuecomment-286164257, or mute the thread https://github.com/notifications/unsubscribe-auth/AWYGv95ccLRgN715IivbCR_xf7_WML7bks5rlXB4gaJpZM4LLQmx .

-- Thanks,

Scott Stafford

onlyinmystreams commented 7 years ago

@scottastafford5 I am getting an error too and wonder if this was the same thing you saw.... If so, what wound up being your fix? Thanks.

2017-03-14 07:21:23.362 jwplayer-for-tv[989:75114] ITML : SyntaxError: Unexpected token '<'...{ line = 1; sourceURL = "http://xxxxxxxx-xxxxxx.s3-website-us-east-1.amazonaws.com/js/application.js"; }

scottastafford5 commented 7 years ago

Send me private message with your project scottastafford5@gmail.com and I can take a look at it.

Sent via the Samsung Galaxy S7, an AT&T 4G LTE smartphone -------- Original message --------From: onlyinmystreams notifications@github.com Date: 3/14/17 12:17 PM (GMT-06:00) To: jwplayer/jw-showcase-appletv jw-showcase-appletv@noreply.github.com Cc: scottastafford5 scottastafford5@gmail.com, Mention mention@noreply.github.com Subject: Re: [jwplayer/jw-showcase-appletv] Issue with the URL (#69) @scottastafford5 I am getting an error too and wonder if this was the same thing you saw.... If so, what wound up being your fix? Thanks. 2017-03-14 07:21:23.362 jwplayer-for-tv[989:75114] ITML : SyntaxError: Unexpected token '<'...{

line = 1;

sourceURL = "http://xxxxxxxx-xxxxxx.s3-website-us-east-1.amazonaws.com/js/application.js";

}

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/jwplayer/jw-showcase-appletv","title":"jwplayer/jw-showcase-appletv","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/jwplayer/jw-showcase-appletv"}},"updates":{"snippets":[{"icon":"PERSON","message":"@onlyinmystreams in #69: @scottastafford5 I am getting an error too and wonder if this was the same thing you saw.... If so, what wound up being your fix? Thanks.\r\n\r\n2017-03-14 07:21:23.362 jwplayer-for-tv[989:75114] ITML \u003cError\u003e: SyntaxError: Unexpected token '\u003c'...{\r\n line = 1;\r\n sourceURL = \"http://xxxxxxxx-xxxxxx.s3-website-us-east-1.amazonaws.com/js/application.js\";\r\n}\r\n"}],"action":{"name":"View Issue","url":"https://github.com/jwplayer/jw-showcase-appletv/issues/69#issuecomment-286494091"}}}

tuck11 commented 7 years ago

I'm also having issues connecting the app to my ftp. Any advice is appreciated.

onlyinmystreams commented 7 years ago

@tuck11 are you hosting on AWS? I finally able to get it going yesterday.

scottastafford5 commented 7 years ago

What is it setup? Are u using aws s3 to hold config files?

Sent via the Samsung Galaxy S7, an AT&T 4G LTE smartphone -------- Original message --------From: tuck11 notifications@github.com Date: 3/20/17 7:30 PM (GMT-06:00) To: jwplayer/jw-showcase-appletv jw-showcase-appletv@noreply.github.com Cc: scottastafford5 scottastafford5@gmail.com, Mention mention@noreply.github.com Subject: Re: [jwplayer/jw-showcase-appletv] Issue with the URL (#69) I'm also having issues connecting the app to my ftp. Any advice is appreciated.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/jwplayer/jw-showcase-appletv","title":"jwplayer/jw-showcase-appletv","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/jwplayer/jw-showcase-appletv"}},"updates":{"snippets":[{"icon":"PERSON","message":"@tuck11 in #69: I'm also having issues connecting the app to my ftp. Any advice is appreciated."}],"action":{"name":"View Issue","url":"https://github.com/jwplayer/jw-showcase-appletv/issues/69#issuecomment-287940160"}}}

tuck11 commented 7 years ago

Yes. How'd you get it going via AWS?

onlyinmystreams commented 7 years ago

@tuck11 I had several issues but ultimately I made the mistake of changing the region initially. So just create an S3 bucket and upload the jwplayer-appletv-web-app. Make all the files are marked as read/write in permissions and set to public. It worked after I did that.

scottastafford5 commented 7 years ago

just pasting in links from aws and also making sure amazon is set to public and public is set to read only.

On Mon, Mar 20, 2017 at 8:03 PM, tuck11 notifications@github.com wrote:

Yes. How'd you get it going via AWS?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jwplayer/jw-showcase-appletv/issues/69#issuecomment-287945511, or mute the thread https://github.com/notifications/unsubscribe-auth/AWYGv97hYsoNdTdCINdgC2IAMHxZ0zdCks5rnyHxgaJpZM4LLQmx .

-- Thanks,

Scott Stafford

Superngorksky commented 7 years ago

Hello @scottastafford5 , is this a sensitive information? {"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"}