photoserge
Aspiring developer
Profile
Posts: 146
Reg: Jan 01, 2012
paris
5,410
01/14/13 11:06 AM (13 years ago)

Android, Buzztouch 2.0 cannot stream a video from Dropbox

Hello, I'm trying to convert all my IOS apps to Android. For IOS I was embedding all my videos (around 300 mg). But that is too much for Android. I do not want to stream from youtube. So I would like to stream from Dropbox, but when I try to do that I get this error : 01-14 19:02:12.192: W/ZZ(311): At53_video_player:playVideo loading from: https://dl.dropbox.com/u/1613495/Training/Photoshopcs6Quickstart/Intro.mp4 01-14 19:02:12.312: D/MediaPlayer(311): Couldn't open file on client side, trying server side 01-14 19:02:12.332: E/MediaPlayer(311): error (1, -2147483648) 01-14 19:02:12.432: E/MediaPlayer(311): Error (1,-2147483648) any ideas ? the video link seems to work. Tks
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/14/13 11:20 AM (13 years ago)
Hi Serge, I unfortunately don't have an answer for your problem yet, but I did want to make sure you were aware of the bandwidth limitations on DropBox? https://www.dropbox.com/help/45/en Would hate for you to hit up against a limit without knowing it existed! Mark
 
buzzbt
Android Fan
Profile
Posts: 233
Reg: Nov 14, 2011
las vegas
6,530
like
01/14/13 11:56 AM (13 years ago)
Hi Serge! if you have large mp3 file I suggested using storage on your website. If you use drop box for large file a Mark say your free public links will suspended for generating excessive traffic. If it is must for you to use drop box don’t get your link from drop box folder launch drop box website and get your link from their don’t know way but that works for me. To play mp3 URL in V 2.0 you have two options use Launch Native App or AT53 Video Player Plugins. Her is what I did to solve the problem I use the free open source FTP solution filezilla to upload my web content even large files http://filezilla-project.org/download.php?type=client upload your mp3 folder to your website put it in your public folder make sure permissions are set to 755 for the mp3 folder ( by right click you can set the Numeric value permissions ) and open the mp3 folder you will see your mp3 lists make sure permissions are set to 644 for mp3 . Now right click the mp3 copy URL to clipboard. Paste to text editing like note pad her is the tricky part your links looks like smutting like this you need to modify the link little bit ftp://[email protected]/public/mp3/your.mp3 This need to be change to this removes and adds same make sure there is no gap between the edited links http://yourwebsit.com/mp3/your.mp3 now you are good to go I hope it helps.
 
photoserge
Aspiring developer
Profile
Posts: 146
Reg: Jan 01, 2012
paris
5,410
like
01/14/13 12:35 PM (13 years ago)
Hello Mark and Buzzbt, tks but I thought about hosting them on my website. I dont like the idea because I already have tons of traffic and my server is not too fast. But in any case I gave it a try and I get the same error : 01-14 20:31:10.016: W/ZZ(311): At53_video_player:playVideo 01-14 20:31:10.052: W/ZZ(311): At53_video_player:playVideo loading from: http://www.photoserge.com/v/pscs6quickstart/Intro.mp4 01-14 20:31:10.152: D/MediaPlayer(311): Couldn't open file on client side, trying server side 01-14 20:31:13.652: D/MediaPlayer(311): getMetadata 01-14 20:31:13.662: W/ZZ(311): At53_video_player:videoViewPreparedListener 01-14 20:31:13.712: E/MediaPlayer(311): error (1, -2147483648) 01-14 20:31:13.772: E/MediaPlayer(311): Attempt to call getDuration without a valid mediaplayer 01-14 20:31:13.792: E/MediaPlayer(311): error (-38, 0) The link is good you can check it. any ideas ? Serge
 
buzzbt
Android Fan
Profile
Posts: 233
Reg: Nov 14, 2011
las vegas
6,530
like
01/14/13 12:52 PM (13 years ago)
if it is not problem ma bey re-download your source code?
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/14/13 01:10 PM (13 years ago)
Hi @photoserge, I know for Android, you want lowercase file names. LA
 
0z2000tv
Aspiring developer
Profile
Posts: 315
Reg: Sep 10, 2011
Nashville
11,950
like
01/15/13 10:37 AM (13 years ago)
Hello Serge, I recommend you consider Videopress to host your Video. You will need to create a WordPress account and may have to us it to upload your video. I used Videopress for a Video Blog once and they delivered high quality video without bandwidth issues. Once videos are uploaded you may use any player you want including a simple HTML5 player. They don't brand anything or try to sell advertising on your property. You always own all of your rights. The basic package is about $60 per year. No additional charge for bandwidth. At the time they were the least expensive option that allowed me to keep all of my rights and there were no surprises if a video became popular. If you want to take a look videopress.com is the address. Love your teaching style. You should consider a video podcast to drive sales of your APP and online training program. Good luck, Mike
 
0z2000tv
Aspiring developer
Profile
Posts: 315
Reg: Sep 10, 2011
Nashville
11,950
like
01/15/13 10:44 AM (13 years ago)
Serge, I had another thought. Have you tried linking to Dropbox or any other video hosting site using a HTML5 screen in your APP? I had some issues with the AT53 Video Player on some iOS devices running 5.1. Changed to HTML5 Screens and the videos appear to be working fine down to 4.3. I don't have any experience with Android. Mike
 
photoserge
Aspiring developer
Profile
Posts: 146
Reg: Jan 01, 2012
paris
5,410
like
01/15/13 03:28 PM (13 years ago)
Hello Oz2000tv, This look like a great idea, could you explain me how to create a html player using a custom HTML, where do i Get the code from, any tutorials that you know ? I have no idea how to do that is why I used the AT53 video player, but the creater of the play seem to think that his plug in is more for local videos then streaming video. So this custom HTML play could a good solution. Also I check videopress and it seems to be a great solution indeed, but it seems to be really oriente toward wordpress, do you think it can work also with buzztouch apps ? tks for all the help; Serge
 
0z2000tv
Aspiring developer
Profile
Posts: 315
Reg: Sep 10, 2011
Nashville
11,950
like
01/15/13 03:59 PM (13 years ago)
Serge, Google HTML 5 Video and you can learn more than you want to know but it is good information. I used the following in the BT Screen (HTML5 Custom HTML / Text). <video controls="controls" height="180" poster="RUN._HIDE._FIGHT._freeze.jpeg" preload="auto" width="305"> <source src="RUN._HIDE._FIGHT._iphone_1229.mp4" type="video/mp4"> </source></video></p> You would change the height and width and source src="http://www.photoserge.com/v/pscs6quickstart/Intro.mp4" would replace my "RUN._HI ...." I added additional code to introduce the video. </style> RUN - HIDE - FIGHT ... If you were ever to find yourself in the middle of an active shooter event, your survival may depend on whether or not you have a plan, the narrator intones. The plan doesn't have to be complicated ...</p> I added a background image and below is the result. This is what it produced. http://dl.dropbox.com/u/6143303/Screen_RHF.JPG You only use WordPress site you create to upload and manage your video library. Hope the above helps. FYI I just bought you CS6 APP. Looking forward to viewing it tonight. Mike
 
photoserge
Aspiring developer
Profile
Posts: 146
Reg: Jan 01, 2012
paris
5,410
like
01/15/13 05:19 PM (13 years ago)
Hello Mike, Great I will give this a try easier than I thought. Hope you will like my training apps on Photoshop cs6 ! I didnt understand your answer about hosting videos with videopress, does it work with buzztouch apps for streaming videos ? Tks serge
 
0z2000tv
Aspiring developer
Profile
Posts: 315
Reg: Sep 10, 2011
Nashville
11,950
like
01/15/13 06:00 PM (13 years ago)
Hello Serge Regarding VideoPress and BT. I have not used VP in a couple of years, all I did in the past was copy the embed code (HTML) in the Media Manager and paste it in to code of the website page. I will let you know for sure if VP will work in an app in a couple of weeks since I plan on testing VideoPress to host a couple of GB of videos for my next APP project. Good luck. Let me know if you find another option to host your videos without hosting service running advertising or me giving up any rights. Mike
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/15/13 06:44 PM (13 years ago)
Great resource and tips @0z2000tv! LA
 
photoserge
Aspiring developer
Profile
Posts: 146
Reg: Jan 01, 2012
paris
5,410
like
01/18/13 06:13 AM (13 years ago)
Hello OZ2000tv, I created the html screen with your code, but this time I get my poster image, but no videos is playing in the eclispe simulator and I dont have a play button, here is the debug code if that tells you anything. Tks for your help !! Im lost 01-18 14:09:57.402: W/ZZ(365): BT_screen_customHTML: loading from URL: https://www.buzztouch.com/applications072212/JA7C90B57E0F4A2F19F28B0F5/documents/customHTML_0D065824145CE5B5023CFD0.html 01-18 14:09:57.422: W/ZZ(365): BT_screen_customHTML:onStart (BASE CLASS) 01-18 14:09:57.422: W/ZZ(365): BT_screen_customHTML: start GPS is set to NO in the applications configuration data, not starting GPS 01-18 14:09:57.422: W/ZZ(365): BT_screen_customHTML:onResume (BASE CLASS) 01-18 14:09:57.432: W/ZZ(365): BT_screen_customHTML:downloading HTML (plain / text) data from https://www.buzztouch.com/applications072212/JA7C90B57E0F4A2F19F28B0F5/documents/customHTML_0D065824145CE5B5023CFD0.html Saving As: 0D065824145CE5B5023CFD0_screenData.html 01-18 14:09:57.432: W/ZZ(365): BT_downloader:downloadTextData from URL: https://www.buzztouch.com/applications072212/JA7C90B57E0F4A2F19F28B0F5/documents/customHTML_0D065824145CE5B5023CFD0.html 01-18 14:09:57.532: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:58.102: I/global(365): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required. 01-18 14:09:58.102: W/ZZ(365): BT_fileManager: saveTextFileToCache: 0D065824145CE5B5023CFD0_screenData.html 01-18 14:09:58.102: W/ZZ(365): BT_screen_customHTML: loading from cache: 0D065824145CE5B5023CFD0_screenData.html 01-18 14:09:58.102: W/ZZ(365): BT_fileManager: readTextFileFromCache: "0D065824145CE5B5023CFD0_screenData.html" 01-18 14:09:58.112: W/ZZ(365): BT_screen_customHTML: loadDataString 01-18 14:09:58.372: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:58.472: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:58.492: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:58.502: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:58.522: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:58.532: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:58.552: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:58.572: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:58.582: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:58.602: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:58.612: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:58.622: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:58.642: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:58.652: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:58.693: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:58.693: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:58.732: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:58.752: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:58.773: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:58.773: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:58.792: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:58.792: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:58.803: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:58.843: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:58.903: D/dalvikvm(365): GC_FOR_MALLOC freed 5692 objects / 415072 bytes in 61ms 01-18 14:09:58.923: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:58.933: D/webviewglue(365): nativeDestroy view: 0x32d218 01-18 14:09:58.953: D/NativeCrypto(365): Freeing OpenSSL session 01-18 14:09:58.973: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:58.973: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:58.973: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:58.973: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:59.016: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:59.016: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture 01-18 14:09:59.122: W/ZZ(365): BT_screen_customHTML:onPageFinished finished Loading: about:blank 01-18 14:09:59.132: W/ZZ(365): BT_screen_customHTML:MyPictureListener: onNewPicture
 

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.