Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I've had a look at the link you sent me, and have found that there are a couple of different ways that things might be going wrong for you.</p> <p>First, I had to download the movie from that link... BUT, when I did this in Safari there was a problem with it, as follows:</p> <ol> <li>Safari downloaded the link as an mov file</li> <li>The file was 433kb... pretty small</li> <li>This led me to believe that what Safari was downloading was actually a .mov container</li> <li>Tried to dig through the site's code using the Safari Developer extensions</li> <li>Could only ever download the .mov container from Safari</li> </ol> <p>What I'd downloaded was actually a container and NOT the actual source movie and this never worked in C4 because it was always only a reference to a movie and not an object itself.</p> <p>So, I took a crack at it with Chrome's developer tools and was able to save the file as source. </p> <ol> <li>From Chrome, the file saved as an mp4 at 75.6MB</li> <li>Tried loading the file directly into a C4 project and it worked.</li> </ol> <p>The following code works for me:</p> <pre><code>#import "C4WorkSpace.h" @implementation C4WorkSpace { C4Movie *m; } -(void)touchesBegan { if(m == nil) { m = [C4Movie movieNamed:@"iPhone.mp4"]; m.shouldAutoplay = YES; [self.canvas addMovie:m]; } } @end </code></pre> <p>I delayed the starting of the movie because it's a big file. You don't actually want to have a bunch of files this large just sitting directly in your project, but for testing it worked. I start creating the movie in <code>touchesBegan</code> so that the app doesn't get bogged down in loading the movie as the app is opening up.</p> <hr> <p>Ok, this might not actually solve your problem. So, I tested creating a small clip from the big movie source file with the following steps:</p> <ol> <li>Open the movie in Quicktime</li> <li>Trim the movie to a 12 second clip (start the trim job by hitting cmd+t)</li> <li>Export the trimmed movie (cmd+shift+s, or File > Export)</li> <li>Choose iPad, iPhone 4, Apple TV option</li> <li>Export the m4v</li> <li>Drag it into the my original project, rename the variable to match the new file</li> <li>It works!</li> </ol> <hr> <p>So, my suspicion is that the first part of this answer might be where you're hung up. The file not actually being a movie file but a pointer to some other media. The reason I thought of this is because I remembered that when I export a Quicktime mov for web it actually creates a folder of media with an .mov file that references some other media in another folder. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload