Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 8    Views: 63

Akshay
I hate code!
Profile
Posts: 193
Reg: Mar 07, 2013
Pune ,India
1,930
04/13/13 02:22 AM (12 years ago)

android mp3 steamer plugin help

glad there is mp3 streamer for android now 2 questions 1)using this player can user/anyone trace mp3 urls(location of server) 2)screenshots suggest that whole screen is idle when a particular mp3 is played ..can i show full page advertisments when a track is being played) if yes how?? i have messaged this to COOKUP(PLUGIN OWNER)also... thanks for looking into it!
 
COOKUP
Aspiring developer
Profile
Posts: 259
Reg: Aug 02, 2011
Coral Sprigs, F...
7,140
like
04/13/13 12:47 PM (12 years ago)
Hi Akshay! Thanks for your support. The answer is no, they cant trace your mp3 url. Yes you can edit the xml file so that only the seek bar and play button appear and you can choose a full screen backround picture from your control panel. heres some sample code for the screen_cp_stream.xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" > <SeekBar android:id="@+id/SeekBar01" android:layout_width="260dp" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" android:layout_marginBottom="146dp" /> <Button android:id="@+id/buttonPlayStop1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_above="@+id/SeekBar01" android:layout_centerHorizontal="true" android:layout_marginBottom="72dp" android:background="@null" android:src="@drawable/cp_streammixgo" /> </RelativeLayout> you will have to delete: screen_cp_streamplayer_footer screen_cp_streamplayer_header screen_cp_streamrounded_corner in your control panel add a backround image (results below) http://mymediaapps.com/photos/var/resizes/screen-7.png?m=1365882180 hope this helps!
 
COOKUP
Aspiring developer
Profile
Posts: 259
Reg: Aug 02, 2011
Coral Sprigs, F...
7,140
like
04/13/13 12:49 PM (12 years ago)
ps. the files to delete are xml's in the layout folder screen_cp_streamplayer_footer screen_cp_streamplayer_header screen_cp_streamrounded_corner
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/13/13 09:06 PM (12 years ago)
Haven't looked at the plugin yet, but it's pretty hard to lock down things in mobile development. For instance, on any Android app, all you have to do is rename the .apk file to a .zip file and then uncompress it on your harddrive. Take a look in the assets folder and presto - there's the BT_config.txt file with all the links you've added to your online control panel. If you're paranoid about people stealing your links, your best bet is to hard-code them into the project.
 
Akshay
I hate code!
Profile
Posts: 193
Reg: Mar 07, 2013
Pune ,India
1,930
like
04/14/13 07:05 AM (12 years ago)
HEY COOKUP THANKS FOR THE DETAILS I WANT TO USE ADSENSE OR SOME OTHER AD NETWORK ON THE PLAYER SCREEN:) I DONT EXPECT HELP FROM YOU FOR THIS ISSUE..I WILL SEARCH THE WEB ON HOW TO INTEGERATE ADS IN XML FILE IF ITS EASY FOR YOU THINK OF ADDING ADVERTISMENTS ON PLAYER XML FROM CONTROL PANEL.. @CHRIS:I DONT KNOW HOW TO HARD CODE??DOES THAT MEAN I WILL BE REQUIRED TO DO CODING?? IF ITS A LONG WAY TO GO ...LEAVE AT THAT...AND THANKS!! AKSHAY
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/14/13 07:30 AM (12 years ago)
Akshay - yeah, it would take some coding. If its not critical, I wouldn't worry much about it. Most users won't bother snooping. As a side note, it would be possible to lock down security in a plugin like this by the developer if an encryption method was used. Developer could apply an encryption password via php on the control panel, so that only the encrypted string is passed via JSON, and hard code the password for decryption in the plugin. Of course, it would prevent power users from using manually created JSON files, so not ideal for all plugins.
 
COOKUP
Aspiring developer
Profile
Posts: 259
Reg: Aug 02, 2011
Coral Sprigs, F...
7,140
like
04/14/13 07:59 AM (12 years ago)
@chris1 thanks for clearing up the issue of security as far as the mp3 is concerned. Im still learning java and im learning daily about php. Thanks for pointing me in the right direction. I am working on a list of things to put in my first update, and this may be one.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/14/13 08:25 AM (12 years ago)
No problem. If you decide to go in the direction of encryption, may I suggest you add an option on the control panel to use it or not? The easiest way probably would be to have a JSON property with possible values of "on"/"off" that is not connected to the control panel. The default value would be "on", and would be used any time someone uses the control panel to create the screen. If that value is set to "off", it must be because the user has used some method other than the online control panel to create their JSON. In which case, they won't be using your encryption method (more than likely). The code would then see that the setting is off, and bypass the attempt to decrypt the string. Hopefully that makes sense.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/14/13 08:26 AM (12 years ago)
Also, this is still not foolproof I should add. Anyone who has a Buzztouch account and has purchased your plugin will be able to see the encryption password and can easily decode any links added that way. But, it would be more secure than simply passing the text via the config.txt.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.