Skip to content

Streaming API? #19958

Closed
Closed

Description

@tobiasKaminsky

As wished in owncloud/android#592, is there a streaming API that can be used from within the android app?
My idea would be to pass the generated url to an app that can stream, e.g. vlc?

I have searched, but could not find a valid issue or answer to my question.

Thank you!

Activity

  1. DeepDiver1975 commented on Oct 21, 2015

    @DeepDiver1975
    Contributor

    Isn't video streaming to be implemented using http range requests?
    In this case getting a file via webdav should work since webdav supports range requests.

    Or what would the required protocol to support? THX

  2. tobiasKaminsky commented on Oct 21, 2015

    @tobiasKaminsky
    ContributorAuthor

    :)
    I think this question is a result of an old owncloud version, wrong understanding of streaming and a wrong android app.
    I have now tried https://test:[email protected]/remote.php/webdav/Demo Movie OGG - Big Buck Bunny Trailer.ogg to open it in vlc on android and it works.
    So this would be the way to go in the android app:

    • Generate the url from its path on server and file name
    • Send url via intent to (known) network streaming capable apps (like vlc)
    • (maybe with a warning that it only depends on the app and not on the server if it fails)

    Since when is the streaming working in oc server?

    Thank you!

  3. DeepDiver1975 commented on Oct 21, 2015

    @DeepDiver1975
    Contributor

    Since when is the streaming working in oc server?

    Since forever - because it relies obviously on http range request which are implemented in sabredav (the server side webdav library we use) 😉

    Just send all your 🍻 and 🍕 to @evert for building SabreDAV

  4. evert commented on Oct 21, 2015

    @evert

    👯

  5. LukasReschke commented on Oct 21, 2015

    @LukasReschke
    Contributor

    So I suppose we can erm close this?

  6. tobiasKaminsky commented on Oct 21, 2015

    @tobiasKaminsky
    ContributorAuthor

    Yes, thank you all for helping and clarifying this.
    Then I can built it sooner or later into the android app. :)
    And special thanks to @evert ;)

  7. tobiasKaminsky commented on Oct 22, 2015

    @tobiasKaminsky
    ContributorAuthor

    A consecutive question, if you do not mind:
    I am sending the webdav url to e.g. VLC like this: https://192.168.0.100/owncloud/remote.php/webdav/2/1.ogg
    But this does not work as a basic authentication is missing. So I could use "https://tobi:[email protected]". But this would expose the password to potential other viewing user. (At least VLC shows the complete url while buffering).
    So, as I do not know the internal: Is it possible to use a session key or something similar instead to prevent exposing the password?

    Thank you!

  8. locked as resolved and limited conversation to collaborators on Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions