IOS Video Object Walkthru

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Is there one?
    Has anyone actually used the video object to make a video play on the iPad?
    How did you do it?

    Something like:
    1024 x 768 background
    Video is in the centre
    IOS button underneath
    Press the Button...
    ...Plays the video?

    Even a link to documentation would be helpful :)

    Thanks

  • I've gotten it to work on iPad just fine. :)

    All the info you need is in the Help file for the object. Just add it to your frame and then go to the object properties and open the help file through there.

    Please login to see this link.

    My examples:
    Please login to see this link.
    Please login to see this link.
    Please login to see this link.

  • Ah -Thanks.

    Am I right in thinking that there are no actions available for this object such as Play, Stop, Pause or seek, like with MMF video objects? The only controls are the default embedded user controls?
    In other words, one cannot start, stop or pause a video playing as a result of an event trigger?

    Perhaps the only way to achieve this would be to put videos on their own frame in the application and set them to play from start of frame? That way we could enter and leave whole frames in order to control the playback?

  • Ok I read the help but they don't tell you what to do.

    This is the process I am going through:
    Insert Menu -> New Object -> IOS Video Object
    Set File or URL to file (mp4 as I'm not sure what file formats are allowed)
    Play from Start.
    Nothing happens when I run the app locally.
    Help!

  • There is no play/pause/stop actions in the object because I could not find them in the API when I was programming the object. Of course I wanted to have such options, but I just simply could not.
    Sometimes I am dumb when reading documentation.
    If anyone finds the way to control the object, please let him send the method to me, and i'll implement them.

    Francois
    PM: Please login to see this link.

  • Thanks Francois.

    There was a rumour that these methods were removed in IOS 6. No methods have actually been "removed" I think. They were moved into a protocol, presumably because having an abstraction of a media player API allows for very cool things to be done by providing custom object implementations that conform to the MPMediaPlayback protocol.

    I'll check what's happening around the MPMediaPlayback protocol which now supports play, stop and seek and see what the workaround is.
    Please login to see this link.

  • This is great, thanks a lot François!

    Now what would be really wonderful would be to listen to player events.
    I'm currently unable to use the following conditions in behaviours:
    - "Movie is playing" => no effect
    - "Movie is stopped" => no effect
    - "Movie is pause" => no effect and the condition is replaced by "Movie is stopped" in the event editor.
    Is it normal or am I the only one with this issues?

  • I confirm I can't make these conditions work, even after a full project re-generation.

    Also, is there a way to change the image where the player returns after a movie playback, independently from the "initial playback time" parameter? Currently the player returns to the "initial playback time" after a playback completes. It would be great also to be able to change the image shown before any playback occurs.

    Ideally, we could set:
    - Time of the image shown before any playback
    - Time of the image shown after a playback completes.
    What do you think?

  • Be careful of the expression 'Current Playback Time' as a general comparison value too - remember neither videos, nor MMF projects actually report whole (consecutive integer) milliseconds to the application.

    Always use both 'is greater than' AND 'is less than' together, and create a range to build a trigger from the playback head position.

    E.G.

    A) Compare Two General Values - IOS Video Playback Time = 10,000 milliseconds THEN Stop Movie will NOT work because the value '10000' will never be perfectly hit or reported, so the test always fails, even though the video plays across the 10 second mark.

    B) Compare Two General Values - IOS Video Playback Time > 10,000 milliseconds and < 10,500 milliseconds THEN Stop Movie WILL work because at least one number in that range will be hit and reported.

  • There's a small mistake in my last post. One should read: "Currently the player returns to the first image after a playback completes."
    The need to set timecode of images shown before and after a movie playback remains valid (at least this would be useful to me :)

  • Ok I found the checkbox in Xcode, but there seem to be a problem with a movieclip I made with after effects. it was a simpel car driving scene it's a quicktime movie car1.mov.
    When I put the movie in the resource folder and named the path in the ios video object. but when i launch the game on my iphone 5 you will see the quicktime logo and you can see that the video is playing but there is no video on the screen?

    anyone know what is going on?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!