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

Mp3 player in grid

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

  • Mp3 player in grid

    Hello,

    Im a beginner so please be kind ;)

    I have a grid where i can upload sound samples and download the using the file upload/download featurepacks. However, I would like a function to play tue file in the grid, a small flash player or preferreably sonethibg else (as ipad/iphone dont like flash).

    As I am a beginner i don't even know where to start, if soneone can guide me ib the right direction i wouldbreally appreciate it!

    Thanks
    Robertt

  • #2
    Re: Mp3 player in grid

    chasing almost the same as you.

    I did find if I change them to a swf video file, they pl;ay in a new window(flash). It is a much larger file though. I got some of the tools at www.thefreecountry.com I might switch to a commercial version when I find the right scenario.


    .
    Dave Mason
    [email protected]
    Skype is dave.mason46

    Comment


    • #3
      Re: Mp3 player in grid

      It's a flash player, but... I can't quite get it working completely yet... and I'm stuck.

      I've attached this div to the Freeform Template section of a field.

      Code:
      <div id="playmp3"> 
      	[audio=http://pfgate-pc/colors/sound/{data.Firstname}.mp3&titles={data.Firstname}]
      </div>
      The jQuery code running from the a5w page is...

      Code:
           $j(function(){
              $j.mb_videoEmbedder.defaults.width=500;
              $j("#playmp3").mb_embedAudio();
            });
      If I change the div to a class instead of id, then both the Fred records play the fred.mp3... so that makes sense, but I'm stuck as to how to get each row to work properly. Maybe it's not in the Freeform template of the field... not sure. A push in the right direction would sure be appreciated. David

      Comment


      • #4
        Re: Mp3 player in grid

        Changing tracks a bit (pardon the pun). I thought I should pop over to Bob Moore's excellent video collection and see if there's something about playing audio... well there was... thanks once again Bob!

        So simple to get this going but, as Bob points out it's not going to work on all browsers... yet. Watched the video, checked in with W3Schools and this works so well. This code is running on the Freeform template section of an inserted Static text field.

        Code:
        <audio src="sounds/{data.Firstname}.mp3" controls="controls">
        </audio>
        The attached image is what it looks like. But, I still want to get the jQuery stuff running, too.

        Comment


        • #5
          Re: Mp3 player in grid

          Thanks, this seems to be an easy way to make it work. No problem with browser incompability as it is an internal application, i can get my emplyees to use a specific browser.

          Thanks, hopefully i have time to try during the weekend.

          Regards
          Robert

          Comment


          • #6
            Re: Mp3 player in grid

            Anyone have any hints for getting a jQuery plug-in to run on every row of a grid?

            Comment


            • #7
              Re: Mp3 player in grid

              You might try this website for a flash mp3 player. They also have video players. Haven't tried them but have tried and used other scripts from this site. Cheap and fun stuff.

              http://www.tufat.com/s_flash_mp3_pla..._component.htm

              Comment


              • #8
                Re: Mp3 player in grid

                Thanks Janet... looks interesting.

                I really want to get the jQuery stuff working... I know it will work, just not quite sure how to implement so that it plays for every row... I'm missing a step somewhere.

                Comment


                • #9
                  Re: Mp3 player in grid

                  Please share if you make it work!

                  THanks
                  Robert

                  Comment


                  • #10
                    Re: Mp3 player in grid

                    Still working on this... and very close... but I need some help...

                    Here is a link to download a zip of the system. Unzip it to a folder named "colors".

                    http://www.somatic.ca/downloads/Colors_110207.zip

                    The A5W page to run is gridquery.
                    On this page is a button labelled "button". To the right of this button is a field [Static Text], no label, but each row reads "mp3".

                    If you double-click on any row the mp3 will be changed to a very nice jQuery control, the mp3 file will be loaded and ready to go. Now click on the play control and it will expand and play... not for every row, but for Fred, Sally, Henry and Simon.

                    I set an ID for the [Static Text] field in the "Static Text" property. The ID is set to playmp3{Grid.RowNumber} so that I can get at the row for each player.

                    The javascript file used is called empgrid. This is where I set the innerHTML and load the player.

                    It may not be very practical, overall, but it's just a test to see how it works.

                    However, I'd like the control to load when the row gets rendered and that's where I'm stuck. I've got lots of code here and there, all commented out, but can't get it to work.

                    I'd really appreciate a look and any suggestions... thanks.

                    Comment


                    • #11
                      Re: Mp3 player in grid

                      Sheesh... no one wants to weight in on this... so I'll keep plugging away.

                      Changing thoughts again, I'm putting this code into the Events section of the grid, in the OnExistingRowRender event, setting the e.javascript property.

                      The first part of the code works... I can get the HTML audio tag into the field. But I can't get the syntax right for calling the jQuery function. Here's the full code I'd like to load into e.javascript. I've tried stringing it all together but I get an object required error.

                      Would sure appreciate a nudge on this. Thanks.

                      Code:
                      e.javascript = "$('playmp3"+e.rowNumber+"').innerHTML = '[audio=http://pfgate-pc/colors/sound/"+firstname+".mp3&titles="+firstname+"]';"
                      
                      $j(function(){
                      $j.mb_videoEmbedder.defaults.width=500;
                      $j('#playmp31').mb_embedAudio();
                      });

                      Comment


                      • #12
                        Re: Mp3 player in grid

                        Finally got this... a jQuery mp3 player displayed and running on each row of a grid. I'll put together a video of the steps if anyone is interested... not sure if anyone is.

                        Comment


                        • #13
                          Re: Mp3 player in grid

                          I am interested!!! I am using the audio in html5 now, but a proper player would be much better. Thanks!!!

                          Robert

                          Comment


                          • #14
                            Re: Mp3 player in grid

                            Here's a link to a two part video showing how to implement an mp3 player into an Alpha 5 grid, for each row, using a jQuery plugin. I think I've covered everything needed, but if not please let me know and I'll re-do the video.

                            Part 1 http://www.screencast.com/t/v5ZXUh9v
                            Part 2 http://www.screencast.com/t/aPWdeKcIZB

                            Comment


                            • #15
                              Re: Mp3 player in grid

                              Fantastic, thanks!!!

                              I will probably have time to look at it later this week (not full time developer).

                              Robert

                              Comment

                              Working...
                              X