Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for mp4 (0.32 sec)

  1. docs_src/custom_response/tutorial008.py

    from fastapi.responses import StreamingResponse
    
    some_file_path = "large-video-file.mp4"
    app = FastAPI()
    
    
    @app.get("/")
    def main():
        def iterfile():  # (1)
            with open(some_file_path, mode="rb") as file_like:  # (2)
                yield from file_like  # (3)
    
    Python
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Mon Jul 19 19:14:58 GMT 2021
    - 360 bytes
    - Viewed (0)
  2. docs_src/custom_response/tutorial009b.py

    from fastapi import FastAPI
    from fastapi.responses import FileResponse
    
    some_file_path = "large-video-file.mp4"
    app = FastAPI()
    
    
    @app.get("/", response_class=FileResponse)
    async def main():
    Python
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Sat Jul 03 19:51:28 GMT 2021
    - 217 bytes
    - Viewed (0)
  3. tests/test_tutorial/test_custom_response/test_tutorial008.py

    from docs_src.custom_response import tutorial008
    from docs_src.custom_response.tutorial008 import app
    
    client = TestClient(app)
    
    
    def test_get(tmp_path: Path):
        file_path: Path = tmp_path / "large-video-file.mp4"
        tutorial008.some_file_path = str(file_path)
        test_content = b"Fake video bytes"
        file_path.write_bytes(test_content)
        response = client.get("/")
    Python
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Thu Jul 09 18:06:12 GMT 2020
    - 487 bytes
    - Viewed (0)
  4. .gitattributes

    *.a             binary
    *.lib           binary
    *.icns          binary
    *.png           binary
    *.jpg           binary
    *.jpeg          binary
    *.gif           binary
    *.ico           binary
    *.mov           binary
    *.mp4           binary
    *.mp3           binary
    *.flv           binary
    *.fla           binary
    *.swf           binary
    *.gz            binary
    *.zip           binary
    *.jar           binary
    *.tar           binary
    Plain Text
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Wed Sep 02 12:15:16 GMT 2020
    - 1.1K bytes
    - Viewed (0)
  5. docs_src/custom_response/tutorial009.py

    from fastapi import FastAPI
    from fastapi.responses import FileResponse
    
    some_file_path = "large-video-file.mp4"
    app = FastAPI()
    
    
    @app.get("/")
    async def main():
    Python
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 202 bytes
    - Viewed (0)
  6. tests/test_tutorial/test_custom_response/test_tutorial009b.py

    from docs_src.custom_response import tutorial009b
    from docs_src.custom_response.tutorial009b import app
    
    client = TestClient(app)
    
    
    def test_get(tmp_path: Path):
        file_path: Path = tmp_path / "large-video-file.mp4"
        tutorial009b.some_file_path = str(file_path)
        test_content = b"Fake video bytes"
        file_path.write_bytes(test_content)
        response = client.get("/")
    Python
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Sat Jul 03 19:51:28 GMT 2021
    - 490 bytes
    - Viewed (0)
  7. tests/test_tutorial/test_custom_response/test_tutorial009.py

    from docs_src.custom_response import tutorial009
    from docs_src.custom_response.tutorial009 import app
    
    client = TestClient(app)
    
    
    def test_get(tmp_path: Path):
        file_path: Path = tmp_path / "large-video-file.mp4"
        tutorial009.some_file_path = str(file_path)
        test_content = b"Fake video bytes"
        file_path.write_bytes(test_content)
        response = client.get("/")
    Python
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Sat Jul 03 19:51:28 GMT 2021
    - 487 bytes
    - Viewed (0)
  8. docs/compression/README.md

    - Extensions
    
     | `gz`  | (GZIP)      |
     | `bz2` | (BZIP2)     |
     | `rar` | (WinRAR)    |
     | `zip` | (ZIP)       |
     | `7z`  | (7-Zip)     |
     | `xz`  | (LZMA)      |
     | `mp4` | (MP4)       |
     | `mkv` | (MKV media) |
     | `mov` | (MOV)       |
    
    - Content-Types
    
     | `video/*`                |
     | `audio/*`                |
     | `application/zip`        |
     | `application/x-gzip`     |
    Plain Text
    - Registered: Sun Apr 14 19:28:10 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/MediaType.kt

       * Returns the high-level media type, such as "text", "image", "audio", "video", or "application".
       */
      @get:JvmName("type") val type: String,
      /**
       * Returns a specific media subtype, such as "plain" or "png", "mpeg", "mp4" or "xml".
       */
      @get:JvmName("subtype") val subtype: String,
      /** Alternating parameter names with their values, like `["charset", "utf-8"]`. */
      internal val parameterNamesAndValues: Array<String>,
    ) {
      /**
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/net/MediaType.java

       *
       * @since 28.1
       */
      public static final MediaType JP2K = createConstant(IMAGE_TYPE, "jp2");
    
      /* audio types */
      public static final MediaType MP4_AUDIO = createConstant(AUDIO_TYPE, "mp4");
      public static final MediaType MPEG_AUDIO = createConstant(AUDIO_TYPE, "mpeg");
      public static final MediaType OGG_AUDIO = createConstant(AUDIO_TYPE, "ogg");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Aug 07 16:17:10 GMT 2023
    - 46.2K bytes
    - Viewed (0)
Back to top