Django Jquery plugin to play audio files - django

I am developing new website in Django 1.3 where after a customer has purchased , he can stream the audio files within the website.
I looked online and found
http://pyjax.net/blog/1/2007/06/27/django-flash-audioplayer/
or using the following jquery plugins mentioned in
http://jquery.malsup.com/media/video.html
The audio files are large and I want to go for a secure way to stream these audio files. Please suggest the best way to handle this using Django with Apache2.2

Related

Download a file and post-process it on Heroku - Flask

I am planning to download a youtube video with the youtube-dl python library, convert it to mp3, do some extra stuff with ffmpeg and display it to the user in an html page.
All of this through Flask.
I've been reading Heroku has a Ephemeral filesystem, so is my idea above possible at all?
This is for a school project, so I don't have any budget for it.
I am not interested in keeping the generated file. Just the client is.

Django - Google Drive API how to store and retrieve file using Django

I have a requirement of uploading and downloading image files in google drive via web application built using Django. I have explored using Django Google Drive Storage API, it seems to be working while saving files. But I have no clue where the files are getting saved and how to read the files. if anyone has experience using Django google drive API or have a recommendation for storing files in google drive would highly be helpful at this moment.
Thank you.
If you are using models to upload the image files, something like this:
class Imageupload(models.Model):
imagefile= models.ImageField(upload_to='img',blank=True,storage=gd_storage)
views.py file looks like:
lst=Imageupload.objects.all()
url_for_first_imagefile=lst[0].imagefile.url #used to display or download the image in template
Then you can directly access them using imagefile.url attribute.

Implementing a video call interface in Django

Hey there im trying to implement a video call interface in my django application but unable to find docs .I found twilio but the support was for javascript and webrtc for nodejs.
Are there any third party libs that i can integrate in django app
You can use a third party service for this. Or you can use WebRTC. There are some nodejs packages which can help you do this. I like "EasyRTC" for that.
Or if you want to use Python, you can use Twisted. Here's a tutorial (found on Google, not tested by myself - https://ferretfarmer.net/2013/09/05/tutorial-real-time-chat-with-django-twisted-and-websockets-part-1/)
In essence, Django doesn't handle the video streaming/chat part. You can use Django for authentication and serving the required html and other stuff. But the video chat needs to depend on other services
Do like it and accept the answer if you are satisfied Thanks!

2018 way of creating an upload file progress bar

The research I've done sofar led me to techologies that seem out of date. I wonder if there is a right/common way to upload files and get progress info in 2018.
I've read that RFC1867 is obsolete
I'm trying to setup NGINX Upload Progress Bar but it uses jsonp in its response and I've also read that I should not use jsonp.
My stack is NGINX, Gunicorn, Ubuntu, Django 2.1, React
I'm trying to avoid jquery
I only need last version of Firefox and Chrome to be supported
Note : I'm only intersted in the client/server communication part, for UI I use react semantic ui progress
I now use HTML5 file API Thanks to #xyres comment.

File Upload / Download

I have a requirement where I need to upload a file onto server using Ember.JS and similar download a file from server.
Please guide me on the necessary code for this.
I am a newbie with this Framework.
Thanks
Ember doesn't upload/download files, it's a client side mvc framework. You'll need to use ajax calls for these.
I would suggest using Jquery's ajax library.