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

Videos... and mp3?

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

  • Videos... and mp3?

    Hi,

    Will the new video plyaer function also wor with mp3 files? I am working a lot with small mp3 files that I need to strem from the grid, would be very happy if this could be done from within alpha now :)

    Regads
    Robert

  • #2
    Re: Videos... and mp3?

    you mean mp4 or just mp3 sound files?
    Frank

    Tell me and I'll forget; show me and I may remember; involve me and I'll understand

    Comment


    • #3
      Re: Videos... and mp3?

      Just mp3 sound files... Would like to be able to have a grid with one mp3 sound file per row and be able to stream separately on each row. Just a small player.

      I got some helo here on this before using jQuery, but I am not good at programming and canšt get it to work... :(

      Comment


      • #4
        Re: Videos... and mp3?

        You won't need the videoplayer for that; html 5 browsers support audio natively otherwise you have to depend on a plugin in the user's browser.

        Here's a way:

        Create an A5W page "audio.a5w"

        Code:
        <!DOCTYPE html>
        <html>
        <head>
        <meta name="generator" content="Alpha Five HTML Editor Version 11 Build 2169-3791">
        <!-- must use in order to make XP Themes render -->
        <meta HTTP-EQUIV="MSThemeCompatible" content="Yes" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
        
        
        <title></title>
        </head>
        <body>
        <p>&nbsp;</p>
        
        <script> 
        function getQueryVariable(variable) { 
          var query = window.location.search.substring(1); 
          var vars = query.split("&"); 
          for (var i=0;i<vars.length;i++) { 
            var pair = vars[i].split("="); 
            if (pair[0] == variable) { 
              return pair[1]; 
            } 
          } 
          alert('Query Variable ' + variable + ' not found'); 
        } 
        
        var mp3=getQueryVariable("song");
        
        document.write("<audio src="+mp3+" controls=\"controls\" autoplay=\"autoplay\">");
        document.write("</audio>");
        
        </script>
        
        </body></html>
        Create a grid with a field containing the mp3 url & a button to start playing it using the onclick event. See attached screenshots.
        Needs polishing

        mp34.pngmp33.pngmp32.pngmp31.png
        Frank

        Tell me and I'll forget; show me and I may remember; involve me and I'll understand

        Comment


        • #5
          Re: Videos... and mp3?

          Thanks so uch for this eplanation, I actually have it working with HTML5 now but it doesn't seem to be streamed but actually downloaded. If I open a grid with 20 mp3 samples there is a whole lot to download and it takes time before I can start listening to them as they are downloaded one by one. I am looking for a streaming function.

          Thask for your help though!!!

          Robert

          Comment


          • #6
            Re: Videos... and mp3?

            See that you have them in pop ups, could be a possible solution for not downloading them all (I have them straight in the grid) but it would be so much better to stream...

            thanks again

            Comment


            • #7
              Re: Videos... and mp3?

              What do you mean by having them straight in the grid ? It's just links you need to put in there so there is no download issue
              Frank

              Tell me and I'll forget; show me and I may remember; involve me and I'll understand

              Comment


              • #8
                Re: Videos... and mp3?

                You can play around with the "preload=auto" attribute to avoid the downloading I think. Also note that FireFox & Opera do not support mp3 so you'd need a .wav or .ogg copy for users with these browsers.
                Frank

                Tell me and I'll forget; show me and I may remember; involve me and I'll understand

                Comment


                • #9
                  Re: Videos... and mp3?

                  Originally posted by Clipper87 View Post
                  You can play around with the "preload=auto" attribute to avoid the downloading I think. Also note that FireFox & Opera do not support mp3 so you'd need a .wav or .ogg copy for users with these browsers.
                  Thanks, I will look into this. The jQuery solution looks better though, will try some more to get it to work. Got a great step by step instruction for doing this (here on the forum) but unfortunatly I still canšt get it to work...

                  Regards

                  Comment


                  • #10
                    Re: Videos... and mp3?

                    I just tested with a 50 Mb MP3 & preload=auto; works like a charm!

                    I am interested to see your solution as well; the learning never stops...
                    Frank

                    Tell me and I'll forget; show me and I may remember; involve me and I'll understand

                    Comment


                    • #11
                      Re: Videos... and mp3?

                      What does the preload = auto do?

                      At the moment I have one HTML5 player on each row in the grid, but it seems to be preloading to the browser meaning that you have to wait for the one you want to listen to have been loaded before you can play. You can see my kind of implementation in the following thread in post #4:
                      http://msgboard.alphasoftware.com/al...&highlight=mp3

                      In post #14 you can see the version I am trying to implement.

                      Regards
                      Robert

                      Comment


                      • #12
                        Re: Videos... and mp3?

                        OK looking at the screenshot I now understand. I suggest you use preload="none" or preload="metadata" so:

                        <audio src="sounds/{data.Firstname}.mp3" controls="controls" preload="none"> or <audio src="sounds/{data.Firstname}.mp3" controls="controls" preload="metadata">

                        Upon rendering the grid it then will not download the mp3 files
                        Frank

                        Tell me and I'll forget; show me and I may remember; involve me and I'll understand

                        Comment


                        • #13
                          Re: Videos... and mp3?

                          I found Safari to do what you like with preload="none" , other browsers seem indeed to download every row's mp3 upon rendering the grid

                          mp3s.png

                          You could go my way but use a hidden div instead rahter then a popup window
                          Frank

                          Tell me and I'll forget; show me and I may remember; involve me and I'll understand

                          Comment


                          • #14
                            Re: Videos... and mp3?

                            Great, thanks for your input!

                            I will look at the preload = none solution, if not satisfying I will look more into the jQuery solution or just pop ups as in your example.

                            It would be nice to have this solution in v11 as they are spending time on developing video tools anyway...

                            Thanks again!

                            Comment


                            • #15
                              Re: Videos... and mp3?

                              I've been doing some more reading on the html5 audio tag & related browser support. Seems this is still a pretty messy area while browsers continue to change their html5 implementation of the audio tag & the formats they support. No single solution exists (yet).

                              Actually it is like with video but Alpha users don't have to worry about video anymore thanks to Bob Moore's great work for the video component. Maybe Bob will be tempted to do it allover for audio after reading this thread?
                              Frank

                              Tell me and I'll forget; show me and I may remember; involve me and I'll understand

                              Comment

                              Working...
                              X