Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should use video file specified in video database instead of searching in file system #7

Open
petterreinholdtsen opened this issue Nov 12, 2018 · 1 comment

Comments

@petterreinholdtsen
Copy link
Member

At the moment, the player ignore the files associated with a given video ID in the database, and instead search its local file system for something that can be used. It should use the file listed in the database instead.

The code in locate_media_by_id() is currently used to figure out which video file to play. Instead the API output for videofiles should be used. Here is an example:

curl --silent https://frikanalen.no/api/videofiles/?video_id=626056|jq .
{
  "count": 2,
  "next": null,
  "previous": null,
  "results": [
    {
      "id": 21541,
      "video": 626056,
      "format": 6,
      "filename": "626056/original/tv_gs_261.mp4",
      "old_filename": "",
      "created_time": "2018-11-12T07:37:03.689680Z"
    },
    {
      "id": 21540,
      "video": 626056,
      "format": 1,
      "filename": "626056/large_thumb/tv_gs_261.jpg",
      "old_filename": "",
      "created_time": "2018-11-12T07:37:03.604847Z"
    }
  ]
}

Note, in this case the broadcast format file is missing, so the video can not be played.

@petterreinholdtsen
Copy link
Member Author

From today, the audio loudness measured for each video file is available. This should be used by the video player to adjust the playout volume.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant