Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Wont Play Video In PhoneGap App

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Wont Play Video In PhoneGap App

    I have a phonegap built ios mobile app that when someone clicks on a picture it should play a video. So in a video player component, it should set the url from one that is pulled from a sql table. It works fine when I publish the app and access it through a web browser. It doesn't work through the phonegap built app. It opens up the video player window but doesn't play the video. I checked and the player and app has always allowed for security. Any suggestions?

    #2
    Re: Wont Play Video In PhoneGap App

    There are 4 Video Player controls within Alpha. Which one are you using... which section did you get it from?

    What is the "picture" rendered in... a static image, data bound control, List, ViewBox, FormView?

    What version/build of Alpha are you working with?

    Comment


      #3
      Re: Wont Play Video In PhoneGap App

      The video player is the one under web components. The picture is a image control that pulls a path in a sql table that points to the image to display, so I am assuming it is a data bound control... Using build 4346_4889

      Comment


        #4
        Re: Wont Play Video In PhoneGap App

        Sorry... you did say component. So that's 4 controls and 1 component.

        How are you running the Video Player Component in your UX?

        If the Image control is data bound, I doubt it's bound to the table character field your URL is found in.

        What type of video are you trying to play? Can you post a sample URL here?

        Is your PGB app iOS, Android, or both? Have your tried both?

        Comment


          #5
          Re: Wont Play Video In PhoneGap App

          When a user clicks on the image then the onclick action in a list control pulls up and should pull the url for the video to play. The videos are stored in Amazon S3 and the urls do play the video in the web browser as stated before. All the videos are mp4 format. Again, I am not sure why they play fine in the web browser but not the phonegap built app. I have just tested for IOS.

          Comment


            #6
            Re: Wont Play Video In PhoneGap App

            Ok... so we're working with a List control as well. But how is the Video Component being accessed? What is the onClick event of the List control actually doing? Is it running the Action Javascript "Open a Video Player Component"? If so, how is that action defined? What is the Target? The Video Player Component is usually bound, via an Argument, to a UX Control. Is that your List control?

            Comment


              #7
              Re: Wont Play Video In PhoneGap App

              Yes it is an action javascript "Open a Video Player Component. Target is a window. The mp4 argument value is bound to the sql table and field that holds the url to play. Hopes this answers your questions. Is there a certain player I should be choosing in the video player component, perhaps JWPlayer?

              Comment


                #8
                Re: Wont Play Video In PhoneGap App

                Ok... getting closer... but you're going to have to explain this one...

                The mp4 argument value is bound to the sql table and field that holds the url to play
                Your List control has a SQL data source. So... it's one of 2 bindings for your Player Video Component:

                1. Your List does not have a Detail View and the List Return Value Type is set to a field... and that field is your SQL URL field... and your Video Player Component is bound to the List.
                2. Your List has a Detail View and your Video Player Component is bound to the Detail View Textbox control holding your URL

                JW_Player is an option for a Flash Player. What is your Video Component HTML5 / Flash Player Type set to?

                Flash does not have native support under iOS. But your videos are mp4... so the Flash Player doesn't matter... this is all HTML5 stuff.
                Last edited by Davidk; 05-29-2017, 07:59 PM.

                Comment


                  #9
                  Re: Wont Play Video In PhoneGap App

                  I don't have a detail view and the return value is set to a field and the field is my sql url field. Not sure about the bound video player component, where do I check that?

                  Comment


                    #10
                    Re: Wont Play Video In PhoneGap App

                    I followed this through because I wanted to see if the Video Component could be used in a PGB app. I don't think it can be. The app is attempting to load the Video Component from the device file system, for whatever reason. The rendered app is showing a 404 error on trying to find the Video Component. You might be able to put the Video Component into a UX and call that but now it just going from bad to worse.

                    However, I don't think you want to use that component anyway. Not to take anything away from it... but it's fairly old... and designed for use with Web Apps before PGB apps were in play within Alpha.

                    The control you want to use is Data Controls, More, VideoPlayer. This is a standard data control and therefore you can set it's video source with a .setValue() method. And... it's designed for use with PGB.

                    In your List control onClick event...

                    Code:
                    {dialog.Object}.setValue('videoPlayer',this.value[0]);
                    {dialog.object}.panelSetActive('PANELCARD_2',true);
                    I've got my VideoPlayer Control in a PanelCard so here I'm setting the value of the VideoPlayer to this.value[0] because my List is set to return the URL column and then changing to my Panel.

                    If you really want your pop-up window, then put the VideoPlayer in a Container:Window control and pop that up.

                    Comment


                      #11
                      Re: Wont Play Video In PhoneGap App

                      Seems to be working, one odd thing, after it moves to the video player panel card and move back to the previous panel card, it wont let me scroll down it just goes back to the video player panel card. Its almost like it is reading it as onclick, instead of trying to scroll

                      Comment


                        #12
                        Re: Wont Play Video In PhoneGap App

                        It's the touch scrolling that is setting off the onClick. That's why, most of the time, a button is placed in the list with "Stop event propagation" and "Focus row" turned on. The button onClick event will fire off the video process.

                        Comment


                          #13
                          Re: Wont Play Video In PhoneGap App

                          Sorry, so I need to add something to the onclick event within the play video event?

                          Comment


                            #14
                            Re: Wont Play Video In PhoneGap App

                            Nope. It's easy to tap/click on a row without meaning to do it. You don't want to launch a video because of this. So, in the List Fields tab, click "Add Item" and add a button. The onClick event of your new button will fire off the video process. You can comment out the video stuff in the List onClick event.

                            When you add the button in List Fields, you'll see it has a couple of properties... Stop event propagation and Focus row. Turn them on. You may not need them, but... nice to have on.

                            Now add your new Button to your List Layout. Now you can scroll through your List... and when ready to view a video, tap on the Button which is displayed on each row of your List.

                            The code in your Button onClick Event will be a bit different than the code in your List onClick Event...

                            Code:
                            {dialog.Object}.setValue('videoPlayer',data.videoURL);
                            {dialog.object}.panelSetActive('PANELCARD_2',true);
                            Before we could use "this" which was the List object. However, now we have to use "data" which is passed into the Button event and represents the row of List data. So... data.videoURL is the column representing the URL field in your List.

                            Comment

                            Working...
                            X