diff --git a/app/assets/javascripts/components/Book.es6.jsx b/app/assets/javascripts/components/Book.es6.jsx
index 1ae20719..63b00d1e 100644
--- a/app/assets/javascripts/components/Book.es6.jsx
+++ b/app/assets/javascripts/components/Book.es6.jsx
@@ -366,7 +366,7 @@ class Book extends React.Component {
return (
-
+
{this.renderPlayButton()}
)
} else {
- return
{this.renderPlayButton()}
+ return
{this.renderPlayButton()}
}
} else {
if (this.state.isEditingBook) {
@@ -411,6 +411,7 @@ class Book extends React.Component {
author={this.props.currentUser.username}
width={600}
videoPhrase={false}
+ awsBucket={this.props.awsBucket}
/>
)
@@ -486,7 +487,7 @@ class Book extends React.Component {
.then((stream) => {
self.onSaveStream(stream);
video.controls = false;
- video.src = window.URL.createObjectURL(stream);
+ video.srcObject = stream;
})
.catch((err) => {
console.log(err.name + ": " + err.message);
@@ -688,6 +689,7 @@ class Book extends React.Component {
targetLanguage={this.state.book.target_language}
author={this.state.book.user_id}
isNewPhrase={this.state.isNewPhrase}
+ awsBucket={this.props.awsBucket}
/>
@@ -746,4 +748,5 @@ Book.propTypes = {
delete: React.PropTypes.string,
edit: React.PropTypes.string,
close: React.PropTypes.string,
+ awsBucket: React.PropTypes.string
};
diff --git a/app/assets/javascripts/components/Dictionary.es6.jsx b/app/assets/javascripts/components/Dictionary.es6.jsx
index 6c34ea42..89ed4350 100644
--- a/app/assets/javascripts/components/Dictionary.es6.jsx
+++ b/app/assets/javascripts/components/Dictionary.es6.jsx
@@ -262,7 +262,7 @@ class Dictionary extends React.Component {
.then((stream) => {
self.onSaveStream(stream);
video.controls = false;
- video.src = window.URL.createObjectURL(stream);
+ video.srcObject = stream;
})
.catch((err) => {
console.log(err.name + ": " + err.message);
@@ -302,7 +302,8 @@ class Dictionary extends React.Component {
delete={this.props.delete}
edit={this.props.edit}
close={this.props.close}
- newPhrase="newPhrase" />
+ newPhrase="newPhrase"
+ awsBucket={this.props.awsBucket} />
);
}
return (
@@ -320,6 +321,7 @@ class Dictionary extends React.Component {
delete={this.props.delete}
edit={this.props.edit}
close={this.props.close}
+ awsBucket={this.props.awsBucket}
/>
);
});
@@ -450,6 +452,7 @@ class Dictionary extends React.Component {
author={this.props.author}
width={600}
videoPhrase={true}
+ awsBucket={this.props.awsBucket}
/>
);
@@ -500,4 +503,5 @@ Dictionary.propTypes = {
delete: React.PropTypes.string,
edit: React.PropTypes.string,
close: React.PropTypes.string,
+ awsBucket: React.PropTypes.string
};
diff --git a/app/assets/javascripts/components/NewBook.es6.jsx b/app/assets/javascripts/components/NewBook.es6.jsx
index 8b3bd574..04f47b13 100644
--- a/app/assets/javascripts/components/NewBook.es6.jsx
+++ b/app/assets/javascripts/components/NewBook.es6.jsx
@@ -146,7 +146,7 @@ class NewBook extends React.Component {
renderVideoDescription() {
if(this.state.isInputVideo == false) {
if(this.state.hasVideoDescription) {
- return