Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for video (0.17 sec)

  1. tests/test_tutorial/test_custom_response/test_tutorial007.py

    from fastapi.testclient import TestClient
    
    from docs_src.custom_response.tutorial007 import app
    
    client = TestClient(app)
    
    
    def test_get():
        fake_content = b"some fake video bytes"
        response = client.get("/")
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Jul 09 18:06:12 GMT 2020
    - 264 bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/util/mime.map

    text/x-sgml                    sgml sgm         # SGML Document
    video/mpeg                     mpeg mpg mpe     # MPEG Movie File
    video/quicktime                qt mov           # Quicktime Movie File
    video/x-ms-asf                 asf asx          # Windows Media  File
    video/x-msvideo                avi              # AVI Movie File
    Plain Text
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 5.9K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_custom_response/test_tutorial008.py

    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 21 07:19:11 GMT 2024
    - Last Modified: Thu Jul 09 18:06:12 GMT 2020
    - 487 bytes
    - Viewed (0)
  4. docs_src/custom_response/tutorial007.py

    from fastapi import FastAPI
    from fastapi.responses import StreamingResponse
    
    app = FastAPI()
    
    
    async def fake_video_streamer():
        for i in range(10):
            yield b"some fake video bytes"
    
    
    @app.get("/")
    async def main():
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 277 bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/net/MediaType.java

      /* video types */
      public static final MediaType MP4_VIDEO = createConstant(VIDEO_TYPE, "mp4");
      public static final MediaType MPEG_VIDEO = createConstant(VIDEO_TYPE, "mpeg");
      public static final MediaType OGG_VIDEO = createConstant(VIDEO_TYPE, "ogg");
      public static final MediaType QUICKTIME = createConstant(VIDEO_TYPE, "quicktime");
    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)
  6. tests/test_tutorial/test_custom_response/test_tutorial009.py

    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 21 07:19:11 GMT 2024
    - Last Modified: Sat Jul 03 19:51:28 GMT 2021
    - 487 bytes
    - Viewed (0)
  7. tests/test_tutorial/test_custom_response/test_tutorial009b.py

    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 21 07:19:11 GMT 2024
    - Last Modified: Sat Jul 03 19:51:28 GMT 2021
    - 490 bytes
    - Viewed (0)
  8. docs_src/custom_response/tutorial008.py

    from fastapi import FastAPI
    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 21 07:19:11 GMT 2024
    - Last Modified: Mon Jul 19 19:14:58 GMT 2021
    - 360 bytes
    - Viewed (0)
  9. docs/contribute/concurrency.md

    Consider an application streaming a video over http/2. Perhaps the user pauses the video and the application stops reading bytes from this stream. The buffer will fill up, and flow control prevents the server from sending more data on this stream. When the user unpauses her video the buffer drains, the read is acknowledged, and the server proceeds to stream data.
    
    #### Shared reader thread
    
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Sun Feb 06 16:35:36 GMT 2022
    - 7K bytes
    - Viewed (0)
  10. 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 21 07:19:11 GMT 2024
    - Last Modified: Sat Jul 03 19:51:28 GMT 2021
    - 217 bytes
    - Viewed (0)
Back to top