Coder Social home page Coder Social logo

signbank-video's People

Contributors

dependabot[bot] avatar josh-signbank avatar stevecassidy avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

henrinie r-tae

signbank-video's Issues

Can TaggedVideo be attached to Dataset?

@henrinie said:
We need a way to connect uploaded videos that don't have a Gloss set (yet) to a Dataset.
I wonder if TaggedVideo could be used like this to solve this issue?

category="dataset"
tag=dataset.pk

TaggedVideo: Use generic relations?

Would it make sense to make use of the contenttypes framework to handle relations? It would allow us have generic relations based on the contenttypes, like explained in https://docs.djangoproject.com/en/1.10/ref/contrib/contenttypes/#generic-relations
Is there a requirement to have categories that are not models?

I guess this:

class TaggedVideo(models.Model):
    """A video that can be tagged with a category (eg. gloss, definintion, feedback)
    and a tag (eg. the gloss id) """

    objects = TaggedVideoManager()

    category = models.CharField(max_length=50)
    tag = models.CharField(max_length=50)

Could be changed to this:

class TaggedVideo(models.Model):
    """A video that can be tagged with a category (eg. gloss, definintion, feedback)
    and a tag (eg. the gloss id) """

    objects = TaggedVideoManager()

    content_type = models.ForeignKey(ContentType, on_delete=models.CASCADE)
    object_id = models.PositiveIntegerField() # The pk/id of the object
    content_object = GenericForeignKey('content_type', 'object_id')
    tag = models.CharField(max_length=50)
  • 'category' would be replaced with 'content_type'.
  • 'object_id' would refer to the pk/id of the object of the selected 'content_type'.
  • 'content_object' would have a relation to the object that is currently referred with 'category' and 'tag'.
  • 'category' and 'tag' would be removed.

Would this kind of change be of any use?

Also if we implement #3 , don't we have to remove the 'unique_together' part?

class Meta:
    unique_together = (("category", "tag"),)

Add support for webm

It seems that currently the filename of all uploaded files is changed to end with .mp4

Add support for uploading poster images

@henrinie said:
We don't generate these on the server, instead our users pick a frame and upload it.
I think we would need a FileField for poster images.
The extract_frame part would need to be made optional (add a boolean to settings?)

Multiple videos for one Gloss

@henrinie said:
We need to be able to upload multiple videos for one Gloss. We use GlossVideo.version to store the defined order of videos to show on gloss page. Users can arrange the videos to a desired order on the gloss page.
It seems that TaggedVideoManager would "mess" the version numbers for us if a new video is uploaded. On the other hand, it might not, the uploaded video would just show first and then it could be moved to where the user wants. Does TaggedVideoManager only update the version when a new video is added (it seems so)?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.