Video not found

ToniTurek's Avatar

ToniTurek

30 Aug, 2019 09:21 AM

Dear support team,

In my app, I want to embed a video. I'm tried this in the following ways:
<video controls="controls">
  <source src="~/Content/Video/video.mp4" type="video/mp4">
  <source src="~/Content/Video/video.ogg" type="video/ogg">
  Your browser does not support the video tag.
</video>

and:
<iframe src="Content/Video/video.mp4" frameborder="0" allow="accelerometer; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

It always gives the error that the file cannot be found. I checked the appharbor file system and the video file is present. I also checked the visual studio setting and they are marked as Content. Also, they are committed to the repository.
I tried also with a test video I downloaded from the internet but this also failes with the same error.

Since I am able to show pictures, I wounder if there is a special trick for videos?
Can you please help?

Thanks,
Jan

  1. Support Staff 1 Posted by rune on 02 Sep, 2019 03:58 AM

    rune's Avatar

    Hi Jan,

    I can see that the file is indeed being copied to the output directory correctly, so you probably just need to configure the mp4 mime type. Take a look at my answer in this discussion for information on how to configure that.

    Best,
    Rune

  2. 2 Posted by ToniTurek on 03 Sep, 2019 05:40 AM

    ToniTurek's Avatar

    Rune,
    that has fixed the problem, thank you!
    Jan

  3. Support Staff 3 Posted by rune on 04 Sep, 2019 02:40 AM

    rune's Avatar

    Hi Jan,

    Good to hear that fixed it, let me know if there's anything else I can help with!

    Best,
    Rune

  4. rune closed this discussion on 04 Sep, 2019 02:40 AM.

  5. ToniTurek re-opened this discussion on 04 Sep, 2019 10:13 AM

  6. 4 Posted by ToniTurek on 04 Sep, 2019 10:13 AM

    ToniTurek's Avatar

    Rune,
    Furthermore, I'm only wondering if I can read the output of the "git describe" command similar to the commit id which I'm reading with: System.Web.Configuration.WebConfigurationManager.AppSettings["appharbor.commit_id"]

    Cheers,
    Jan

  7. Support Staff 5 Posted by rune on 07 Sep, 2019 05:55 PM

    rune's Avatar

    Hi Jan,

    We only write the commit ID stored as part of the branch and commit information on the build entry available, and that's independent of the version control system used -- we could potentially expand the API to allow for more descriptive commit information (which could then in turn be integrated with AppHarbor's git repository hosting/deployments). Would be curious to hear you use case for including this information so we can take that into consideration?

    Best,
    Rune

Discussions are closed to public comments.
If you need help with AppHarbor please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac