Return to Video

Recording Troubles - Intro to iOS App Development with Swift

  • 0:00 - 0:03
    So thus far, we've been able to record our sound, and
  • 0:03 - 0:07
    then print the name of the file where we actually recorded our voice.
  • 0:07 - 0:08
    At this point,
  • 0:08 - 0:12
    I want us to consider two scenarios that can cause some trouble going forward.
  • 0:12 - 0:16
    The first one has to do with our story board, so let me go back to Xcode.
  • 0:16 - 0:20
    Now we know that we are recording our voice in here in the first scene, or
  • 0:20 - 0:22
    in Record Sounds View Controller.
  • 0:22 - 0:25
    We also know that we need that recorded file in here,
  • 0:25 - 0:28
    in the second scene, or in Play Sounds View Controller.
  • 0:28 - 0:31
    Right now, when we hit this Stop button,
  • 0:31 - 0:34
    we move very promptly form this first scene, to the second scene.
  • 0:34 - 0:37
    Do you think we will need to pass the audio file from
  • 0:37 - 0:39
    the first scene to the second scene?
  • 0:39 - 0:41
    If so, how would we go about doing that?
  • 0:41 - 0:43
    So here is the first scenario that we need to think deeply about.
  • 0:43 - 0:47
    The second scenario has to do with recording audio.
  • 0:47 - 0:50
    Right now the sounds that we are recording, are really short.
  • 0:50 - 0:52
    About five to ten seconds long.
  • 0:52 - 0:55
    What do you think will happen if our user records a conversation with
  • 0:55 - 0:57
    a friend for about five minutes?
  • 0:57 - 1:00
    I would imagine that it will take our phone some time to process that
  • 1:00 - 1:01
    audio properly.
  • 1:01 - 1:03
    Now picture this.
  • 1:03 - 1:07
    Our phone is in the middle of processing a really large sound file here in
  • 1:07 - 1:07
    the first scene,
  • 1:07 - 1:12
    while we have pushed the stop button and moved on to the second scene, and
  • 1:12 - 1:16
    already started to play the audio that hasn't fully finished recording yet.
  • 1:16 - 1:17
    That could cause some troubles.
  • 1:17 - 1:19
    So then the question is,
  • 1:19 - 1:22
    how will we know that the phone has successfully finished recording in
  • 1:22 - 1:25
    the first scene, before we play that audio in the second scene?
  • 1:25 - 1:28
    Now, I want you to think about both of these scenarios, and
  • 1:28 - 1:31
    then write down your reflections in these boxes,
  • 1:31 - 1:33
    on how you would go about solving both of these issues.
Cím:
Recording Troubles - Intro to iOS App Development with Swift
Leírás:

05-06 Recording Troubles

more » « less
Video Language:
English
Team:
Udacity
Projekt:
UD585 - Intro to iOS App Development with Swift
Duration:
01:34

English subtitles

Felülvizsgálatok Compare revisions