Skip to content

Commit df445d7

Browse files
committed
* [maixcam2] optimize doc
1 parent 564fc3e commit df445d7

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

docs/doc/en/video/play.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ while not app.need_exit():
3939
img = ctx.image()
4040
disp.show(img)
4141
print(f'need wait : {ctx.duration_us()} us')
42+
time.sleep_us(ctx.duration_us())
4243
```
4344

4445
Steps:

docs/doc/zh/video/play.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ffmpeg -i input_video.mp4 -c:v libx264 -x264opts "bframes=0" -c:a aac -strict ex
2525
一个播放`mp4`视频的示例,视频文件路径为`/root/output.mp4`
2626

2727
```python
28-
from maix import video, display, app
28+
from maix import video, display, app, time
2929

3030
disp = display.Display()
3131
d = video.Decoder('/root/output.mp4')
@@ -40,6 +40,7 @@ while not app.need_exit():
4040
img = ctx.image()
4141
disp.show(img)
4242
print(f'need wait : {ctx.duration_us()} us')
43+
time.sleep_us(ctx.duration_us())
4344
```
4445

4546
步骤:

projects/app_vlm/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,5 +266,4 @@ def run(self):
266266

267267
if __name__ == '__main__':
268268
appication = App()
269-
appication.run()
270-
print('===========')
269+
appication.run()

0 commit comments

Comments
 (0)