-
Notifications
You must be signed in to change notification settings - Fork 4
Shareability #81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Shareability #81
Conversation
…e video id in the URL
…in order to match the error catch in videoplayer. when errors occur in either personal videos or random videos, the videoplayer must be able to catch both cases. naming the arrays the same will allow it to do that.
…it as an array of hashes to the index page
…string for unique identification of dream
…cript to manipulate.
…uffering time on my machine.
bd65616
to
76b3594
Compare
Adding Michael Angelo, since you were trying to combine all the branches earlier and you and Steph know the setTimeouts super deep. I modified two of the setTimeouts by increasing them both by 4 seconds. I needed the extra buffering time because it kept erroring out on all the videos otherwise. No videos would play for me but would instead go into that endless recursion of destroying the player and running videomaker again and again. You had also mentioned in your IM that you couldn't get passed the OAuth. When you updated the .env in my branch, did you kill the rails server and restart it? |
count += 1 | ||
} else if (array.length > 0) { | ||
setTimeout(function() {videoList(array[0]), array.shift()}, 10000); | ||
setTimeout(function() {videoList(array[0]), array.shift()}, 14000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should remain 10000.
Behavior:
Oddities:
Notes (please read):
Since this is not an AJAX call, the returned hash/JSON from the database could not be directly handled by the JavaScript code. Instead, it had to be passed through an instance variable, that loads it on the DOM itself. Then a jQuery call captures that data and saves it into a variable for further manipulation by the JavaScript logic.