Skip to content

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

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

Shareability #81

wants to merge 16 commits into from

Conversation

unknownbreaker
Copy link
Owner

Behavior:

  • Generates a unique 2 character string that can be placed in the URL to replay a user's saved dream.
  • Removes all modals so when the webpage loads, it fades into the user's saved dream sequence.

Oddities:

  • Still refreshes at the end of the dream, thereby, replaying the same dream sequence, over and over until user leaves the URL.

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.

…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.
@unknownbreaker
Copy link
Owner Author

@Yamikamisama

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);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should remain 10000.

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

Successfully merging this pull request may close these issues.

2 participants