Discussion Forums  >  Audio, Video, Playing, Recording

Replies: 21    Views: 138

Nibblets
Aspiring developer
Profile
Posts: 25
Reg: Jun 25, 2013
New York
3,000
07/12/13 09:05 PM (10 years ago)

CP Stream Pugin Error

Hi, I purchased the plugin it doesn't seem to work for me. In the filepath of the plugin I entered http://stereo.wavestreamer.com:7140/; which is my stream url. I get an error that says error loading screen? The application had trouble understanding what to display. Can you tell me if I'm doing something wrong? The example on the plugin is: http://www.mymediaapps.com/mp3/Martyrs/Martyrs2/3.mp3 Does this mean the file path must end with .mp3? If so then I would have purchased this plugin in vain since this is a radio stream?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/12/13 10:41 PM (10 years ago)
You'd have to ask Cookup for the details... But the first line in the description says: This plugin allows your Android users to stream mp3 files from the internet (NO downloading Required). I don't think it's what you're looking for. Android only? Maybe you can work this into a plugin... https://github.com/Dawnthorn/nagare Cheers! -- Smug
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
07/12/13 11:38 PM (10 years ago)
"error loading screen" usually means your plugin isn't copied into your project correctly. Are you on iOS or Android? If Android, can you post your logcat?
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/13/13 02:40 AM (10 years ago)
Have you added the code to your manifest file? Look at the read me text for the plugin, I made the same mistake. And it will only play MP3, no other file.
 
COOKUP
Aspiring developer
Profile
Posts: 259
Reg: Aug 02, 2011
Coral Sprigs, F...
7,140
like
07/13/13 05:38 AM (10 years ago)
hey nibblets, the plugin only works with some internet radio streams at the momment, i tried yours and it worked for me, But only on wireless connection. I am working on some updates to see why it only works with some stations and not others.
 
Nibblets
Aspiring developer
Profile
Posts: 25
Reg: Jun 25, 2013
New York
3,000
like
07/13/13 07:04 AM (10 years ago)
HI, I can now see a blank radio player on my android, but no picture or sound. where can I find the read me text for the plugin? What code do I need to add to the manifest file?
 
COOKUP
Aspiring developer
Profile
Posts: 259
Reg: Aug 02, 2011
Coral Sprigs, F...
7,140
like
07/13/13 07:53 AM (10 years ago)
In the plugin folder there is a readme file with instructions.
 
Nibblets
Aspiring developer
Profile
Posts: 25
Reg: Jun 25, 2013
New York
3,000
like
07/13/13 08:07 AM (10 years ago)
First let me say thanks for your patience. I am a complete Rookie :) I found the readme and have a question what does the following mean? What's the "package name" and where do I find it? /////remember to replace "Your Package name" with your Application package name////
 
Nibblets
Aspiring developer
Profile
Posts: 25
Reg: Jun 25, 2013
New York
3,000
like
07/13/13 08:10 AM (10 years ago)
Sorry got it :) you meant package name in eclipse, right?
 
COOKUP
Aspiring developer
Profile
Posts: 259
Reg: Aug 02, 2011
Coral Sprigs, F...
7,140
like
07/13/13 08:12 AM (10 years ago)
open up your android manifest file and look at the top lines. Your package name will be listed here. <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.plugintest" android:versionCode="1" android:versionName="1.0"> <uses-sdk android:minSdkVersion="8"/>
 
COOKUP
Aspiring developer
Profile
Posts: 259
Reg: Aug 02, 2011
Coral Sprigs, F...
7,140
like
07/13/13 08:13 AM (10 years ago)
yes! the one in eclipse.
 
Nibblets
Aspiring developer
Profile
Posts: 25
Reg: Jun 25, 2013
New York
3,000
like
07/13/13 08:26 AM (10 years ago)
Awesome, the audio now works!!!! Thank you guys so very much, But I still need just a little more help. Instead of the android icon in the app, how can I get it to show track info, like album art, now playing etc.
 
COOKUP
Aspiring developer
Profile
Posts: 259
Reg: Aug 02, 2011
Coral Sprigs, F...
7,140
like
07/13/13 08:43 AM (10 years ago)
You mean m3u data. So far thats not possible but Suvinay pawa does custom work for the image to be be changed from the control panel and description text.
 
COOKUP
Aspiring developer
Profile
Posts: 259
Reg: Aug 02, 2011
Coral Sprigs, F...
7,140
like
07/13/13 08:45 AM (10 years ago)
By the way, thanks for your support and welcome to the buzztouch family!
 
Nibblets
Aspiring developer
Profile
Posts: 25
Reg: Jun 25, 2013
New York
3,000
like
07/13/13 09:23 AM (10 years ago)
Thanks! What I meant was: in the screenshots for the plugin it shows the various images on the plugin screen. That's what I want to set
 
COOKUP
Aspiring developer
Profile
Posts: 259
Reg: Aug 02, 2011
Coral Sprigs, F...
7,140
like
07/13/13 10:07 AM (10 years ago)
That picture is located in the res--> drawable folder as cp_streamadele.png. if you edit that file it should change it. Just open that image in your favorite editor and change it. I use photoshop. quick and easy.Other than that Suvinay pawa has implemented the code to work with your control panel. Meaning you can change the picture from the control panel.
 
Nibblets
Aspiring developer
Profile
Posts: 25
Reg: Jun 25, 2013
New York
3,000
like
07/13/13 10:14 AM (10 years ago)
thanks
 
COOKUP
Aspiring developer
Profile
Posts: 259
Reg: Aug 02, 2011
Coral Sprigs, F...
7,140
like
07/13/13 10:43 AM (10 years ago)
No problem Nibblets! Glad to here your moving along and learning. If you have any questions dont be afraid to hit me up. ps. like the station. God bless!
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
07/13/13 10:49 AM (10 years ago)
@ Nibblets- It seems that you have got your answer and now your station is streaming. :) @COOKUP - I recently had a chance to have a look at your plugin when i was testing the app of my friend @Akshay. First of all i really liked your plugin and believe me, it has got a lot of potential. As i said while testing your plugin i found that your plugin worked great on android phone and tablet. I found that the app abruptly crashed when i tested the app on either phone or tablet when the devices were using the wifi connection. But the app worked (streamed) when i switched them on 3g connection. So i took a look at the coding of your plugin and then figured out that the coding was wrongly set to first check mobile gprs/3g connection and then in later case to check wifi connection if gprs/3g connection was not available. so the app crashed when either mobile was on wifi or tablet on wifi. it worked well on gprs / edge / 3g connections on mobile. I fixed this issue by simply switching the values at line number 349 and 351. Instead of TYPE_MOBILE , i first put TYPE_WIFI. The code is below- private void checkConnectivity() { ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); if (cm.getNetworkInfo(ConnectivityManager.TYPE_WIFI) .isConnectedOrConnecting() || cm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE) .isConnectedOrConnecting()) isOnline = true; else isOnline = false; } The plugin now works fine after fixing the code in above fashion. Hope this helps you in the next plugin update.
 
COOKUP
Aspiring developer
Profile
Posts: 259
Reg: Aug 02, 2011
Coral Sprigs, F...
7,140
like
07/13/13 10:57 AM (10 years ago)
It helps alot! Been atumped on that for a while now! Thanks
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
10/03/13 08:30 PM (10 years ago)
That fixed the issue I was just about to raise. Thanks Sandeep! Cheers! -- Smug
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
10/03/13 08:33 PM (10 years ago)
@Smug- Nice to know that it worked for you. :)
 

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.