I have a big 3d game that lets players build and create interesting and huge worlds and save them to disk on windows phone 7.
The game uses XNA and does many things that are not supported in silverlight or SLXNA hybrid apps.
I want to let the players backup there save files to their skydrive (preferable) or dropbox but after more than a week trying to get some kind of implimentation working I have came up with nothing...
It seems that every single sample for eather is built in (and requires) siverlight and a web browser to work.
Does anyone know of a way to overcome these limitations? I have almost 100,000 people with my game and the most requested feature is cloudbackups...
Thanks!
mmmm i think it wouldnt be difficult.
I worked in a web app project where the server do all the authentication stuff. Of course you always need to open a browser windows to let the user enters its credentials.
When the user enters its credentials, skydrive, dropbox or whatever gives you a TOKEN a then you use that TOKEN to do operations in the name of the user (eg: upload file to dropbox) doing REST (webrequest) and JSON
do you have any experience with REST, JSON, etc?
I think, you will need to use Oauth for desktop (here's google explanation https://developers.google.com/accounts/docs/OAuth2?hl=es)
Did you see un / official sdk?
skydrive: http://msdn.microsoft.com/en-us/library/live/hh826521
dropbox:
https://www.dropbox.com/developers
http://sharpbox.codeplex.com/
Greetings from Argentina
HERNAN
PS: sorry about my awful english :)
Related
I am new in mobile app development and I am developing an application in React Native, which will contains the lyrics of songs. Now, I am in a situation where I am thinking about the best way to make database for it.
I would like the basic lyrics to be downloaded to the device with the app, but also that the user can add other songs that would only be visible to him. Which way is the best? I think, that all songs could be saved into some database (for example in device storage or SD-card). I think about SQLite or Firebase, but is this the right way?
Thank you for all your advice ;)
Whole solution seems like a good use case for Firebase/Firestore.
Firestore seems to integrate well with mobile apps. It's also managed so it's a simple way to run a database for a mobile app given you can provide the customer with direct access to the database without the need for a backend.
I am trying to upload a video that I take locally using react native camera and then send it to youtube for processing and then want to display that video on a react.js web dashboard.
We have tried using fetch-blob to upload the video and cloud firestore to store the video. We are not sure at a high level on how to go about the uploading to youtube. I know there is upload docs, however can we physically go about uploading straight from our react-native project to youtube, or would we have to upload to a database such as firebase and then use a cloud function to send it to youtube? Has anyone attempted this? The other alternative is that we can upload to S3 and then use AWS cloudstream to play back but that seems like overkill if there is a simple youtube upload that we can use. Do we have to authenticate a user to youtube before it would work? We do not want anyone having to log into a google account. We are hoping just to have an application created with youtube that we can upload to our channel.
Thank you!
Answer
You can absolutely upload a video to YouTube in many different ways. You mentioned a few options and I will line out how those could work for you.
Do we have to authenticate a user to youtube before it would work?
You will have to authenticate to YouTube in order to upload to a YouTube account. You could very well have one account for your app to use and when your users make videos the app could upload them directly to that account. I do highly advise against that though. Google is not very forgiving and the second someone uploads something to violate Google Policies I suspect you will be banned.
That leaves me to believe the best way here would be to use Auth0 to authenticate users and upload to their accounts. Otherwise maybe look into other options.
Possible Options
Option 1
It might be possible to upload all the videos to one YouTube account and make them all private. Then retrieve those videos and play them on your own site. Possibly something like that could work but it is probably a long shot. That could at least keep you from getting banned because of a user violating Google Policies.
Option 2
Another option would be to make one YouTube account. Save the videos to your server when the users creates them from your mobile application. Then have a waiting period for the video to post to YouTube in order for you and your team to have time to approve them.
At least this way you can use YouTube and have one account, but not take the chance of any repercussions from the videos people are posting.
Problem
How to upload a video from your mobile app using React Native to youtube.com
Solution 1
Upload straight from React Native. You can Use the Google APIs to upload directly to youtube. Google has an extensive API. You will have to create a Google API account and make sure to activate the APIs you want to use. Here is some information I found using the Google Javascript API to work with Youtube.
If you go to this link you can see some information on the scopes of this API.
Here is one scope mentioned on that page.
https://www.googleapis.com/auth/youtube.upload
Using Gogoles APIs you can upload videos directly to the youtube account.
Solution 2
The second solution is to post the video to your server, then once it hits the server use some other server side language to interact with Google's API. This could come in handy for other reasons. Like if you are better with a language other than JavaScript. For example Python might be your favorite language. In that case here is a Python Github repo that does just what your trying to do.
You could very well implement the repo mentioned above to your server and post the video you create from your phone to the server. Allowing the Python script to handle posting the video to YouTube.
Side Note
I do not think Firebase or really any database is necessary for the task you are trying to accomplish. Unless there are other requirements to your problem you have not mentioned.
Ive developed an app which needs to upload a small .xml file to a web server, there will be around 15 devices running this app uploading around 15 .xml files each per day. The files need to be uploaded to the same directory.
What would be the best way to achieve this? Im assuming i cant use the same login details for the server on every device, is there any hosting out there that allows multiple different logins?
Thanks.
Paul.
Take a look at Parse.com's data solution. You can set up a free account and have your devices post the data a database using their API. Pretty easy to set up with iOS and for basic services it's free.
I am sort of new to app development, so this may sound like a stupid question. The company I am working with is trying to get ride of most of there IT infrastructure, so that they don't need any more servers. I have been asked to develop a program that takes information from a google spreadsheet and then with this information puts it into a web browser. I am Planning on using Phyton and selenium web driver. Will I be able to install selenium if i host the application as a Google app engine?
The Reason I want/need to use selenium web driver is because I need to put the information from google into a legacy system. The only way to put information in the system is to mimic a user putting the information in manual in a web browser.
Thank you,
Kai
I don't understand what you think Selenium will be doing here. It seems a very strange way to want to get information from one Google property into another.
Google spreadsheets have a perfectly good API that allows you to read the data from your app and display it to users.
Edit after question update Well, now I don't see what you need GAE for. That is for hosting and running websites, and you only seem to want to enter data into an existing website. That's not what it does at all.
Suppose I have a video hosting site, like youtube. When user clicks on a link on the site, I want to open a WinRT application for a better viewing experience, how would I do that?
How do I pass parameters into the WinRT application, to let it know what video it should stream? I need to be able to go back and forth, so I assume I can introduce a hyperlink to go back to the site from the app.
The other possibility is to embed the application on the site itself. How would that work? Can you still inline an applet style application on the site itself (eg. flash/silverlight)?
It is possible to launch a Windows Store app, given that you know the URI scheme associated with that application. For example, the Games app has the xboxgames: associated with it. If you insert a link with that URI scheme, the shell will pick it up as an internal reference. Read more details here.
You might also be interested in reading more on how to connect your website to a Windows Store app here.
Edit: It is possible to have an associated url: see accepted answer from Den Delimarsky.
Alternatively, a Windows Store app can declare file type associations. So you could make the user download a file (for example "video.customExtension"), which could contain informations, such as the video the app should play. In the same way as it works for Office Live Meeting when you download a meeting file to start a meeting.
If the user download that kind of file from your website, and that he doesn't have the corresponding app installed, he will be prompted to look for an app that can open that file in the store, and he will find your app.
And finally, no you can't embbed an Windows 8 Store app in a webpage.