facebook

How to play a mp4 video file from a button or image?

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #323249 Reply

    I have trying at this for some time. I do some work in the video industry. Other iphone build apps sites allow you to include buttons where you click on them you show a small video file. But this MobiOne doesn’t appear to do that. Please tell me how it can be done. I just download the latest version a week ago.

    #323262 Reply

    support-michael
    Keymaster

    @vanavah

    We will be introducing a media widgets into the designer following the upcoming android support. A couple approaches you can take now are:

    1) for your button use a GotoURL action and set the URL to the media file
    or
    2) Craft javascript using the html5 <video> tag. The technique is similar to this audio example
    http://www.genuitec.com/support-genuitec/viewtopic.php?f=14&t=2061

    #323269 Reply

    I have added the following code to the Javascript onclick button properties to play the mp4 video file but it doesn’t work.

    <video src=”rose.mp4″ controls> </video>

    You have given the full javascript code for the audio in your reply. Can you please give the javascript that would play the video? It appears this small video file has to also loaded into the phone test center for it to play. How do I do that? Please I really need to get this problem solve as soon as possible.

    #323301 Reply

    support-michael
    Keymaster

    @vanavah

    I guess you found out that you can not include html code in a Run JavaScript action. Only a javascript script can be executed. Instead try using a Goto URL action and set the URL to your video file. I just added this article for quick and dirty video playing technique:

    http://www.genuitec.com/support-genuitec/viewtopic.php?f=14&t=2463

    #323310 Reply

    This URL you posted as it is your address. I want this thing to run independent of your address. I want to be sure. So I need to ask a few question.
    (1) When I click send the URL to my phone, will the full code and the mp4 file be transferred to my phone?
    (2) Will see and play the file on my phone without reference to your URL?
    (3) Will I have full access rights to the full code on my computer when I send the URL to my phone?

    Finally, I would be grateful if you can also post a javascript that will run the video file.

    #323350 Reply

    support-michael
    Keymaster

    @vanavah

    Is your intent to develop an app or a mobile webapp/site? The reason is there are different options depending up on the target distribution model. I am answering the questions as if you are developing a mobile webapp.

    >(1) When I click send the URL to my phone, will the full code and the mp4 file be transferred to my phone?
    The video will download similar to any other web resource that you may click on in a link (<a>)

    >(2) Will see and play the file on my phone without reference to your URL?
    My example was to demonstrate a quick way to hook a button up to playing a video. In the designer change the URL of the Goto URL action to reference your online video.

    >(3) Will I have full access rights to the full code on my computer when I send the URL to my phone?
    Yes, you own the src code. Also any image resources you include from the media palette can be freely distributed as well.

    >Finally, I would be grateful if you can also post a javascript that will run the video file.
    Until a media widget is available in the Design Center the best that I can do is provide an example similar to the audio example. It will not be drop-in code that will run without adaptation to your UI design, styling and artwork.

    I hope this helps.

    #323358 Reply

    As my work depends alot on video, that is why I bought MobiOne. I thought it had a video widget as other solution providers like ibuildapps has a properly function one. What date will this be out? I really need to know if to continue with this or use the ibuildapps.

    #323382 Reply

    URGENT! Can these apps be sent to new models of BlackBerry phones as most of my collegues have this type of phone. Finally, Which other smart phones can these apps be sent.

    #323384 Reply

    support-michael
    Keymaster

    @vanavah

    >Which other smart phones can these apps be sent.

    MobiOne ver 1.x is optimized for iOS native apps and webapps. We are developing android app and webapp support next. Following android we will pursue other platforms based on customer demand.

    >Can these apps be sent to new models of BlackBerry phones

    I suspect they they will work on the latest BB OS due its webkit-based HTML5 browser. But we don’t officially test MobiOne apps on RIM devices yet until it is a supported platform.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: How to play a mp4 video file from a button or image?

You must be logged in to post in the forum log in