Mbonea commited on
Commit
0f248e4
1 Parent(s): 0682a8f

changed entry props

Browse files
App/Generate/database/Model.py CHANGED
@@ -72,11 +72,11 @@ class Project(orm.Model):
72
  "name": file_name,
73
  "start": self.start,
74
  "end": self.start + scene.narration_duration + 1,
75
- # "props": {
76
- # "startFrom": 0,
77
- # "endAt": scene.narration_duration * 30,
78
- # "volume": 5,
79
- # },
80
  }
81
  )
82
 
 
72
  "name": file_name,
73
  "start": self.start,
74
  "end": self.start + scene.narration_duration + 1,
75
+ "props": {
76
+ # "startFrom": 0,
77
+ # "endAt": scene.narration_duration * 30,
78
+ # "volume": 5,
79
+ },
80
  }
81
  )
82
 
App/Generate/database/Vercel.py CHANGED
@@ -49,7 +49,10 @@ class AsyncImageGenerator:
49
  temp = await response.json()
50
  status = temp
51
  while status["status"] != "succeeded":
52
- status = await self._fetch_image_status(image_id)
 
 
 
53
  await asyncio.sleep(3)
54
  return status
55
 
 
49
  temp = await response.json()
50
  status = temp
51
  while status["status"] != "succeeded":
52
+ try:
53
+ status = await self._fetch_image_status(image_id)
54
+ except:
55
+ pass
56
  await asyncio.sleep(3)
57
  return status
58
 
Remotion-app/src/HelloWorld/AudioStream.jsx CHANGED
@@ -31,9 +31,10 @@ const AudioStream = React.memo(() => {
31
  const AudioX = React.memo(({entry}) => {
32
  return (
33
  <Audio
34
- startFrom={entry.props.startFrom}
35
- endAt={entry.props.endAt}
36
- volume={entry.props.volume}
 
37
  src={staticFile(entry.name)}
38
  />
39
  );
 
31
  const AudioX = React.memo(({entry}) => {
32
  return (
33
  <Audio
34
+ {...entry.props}
35
+ // startFrom={entry.props.startFrom}
36
+ // endAt={entry.props.endAt}
37
+ // volume={entry.props.volume}
38
  src={staticFile(entry.name)}
39
  />
40
  );