Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opt 影片暫停時抓出暫停時間 #31

Open
2 tasks
ghost opened this issue Oct 5, 2018 · 3 comments
Open
2 tasks

opt 影片暫停時抓出暫停時間 #31

ghost opened this issue Oct 5, 2018 · 3 comments

Comments

@ghost
Copy link

ghost commented Oct 5, 2018

  • 調查 YouTube player 或 API 是否提供暫停時間資訊
  • 開發提取該資訊功能
@ghost ghost changed the title 影片暫停時抓出暫停時間 opt 影片暫停時抓出暫停時間 Oct 26, 2018
@kevin61225
Copy link
Contributor

kevin61225 commented Nov 5, 2018

請參考此範例
https://github.com/TaiBIF/camera-trap/blob/master/youtube-iframe-api/youtube_player_sample.html

功能說明

  1. 點選暫停時會跳出 alert 告知當前時間(單位為秒)
  2. 影片左上角會有播放清單的 icon,點選後就可以開啟當前播放清單
  3. 影片會自動播放清單內的項目
  4. 程式碼中已示範如何呼叫自定義的函式 - getPlayerCurrentTime

備註:
目前影片設為不公開,知道連結的人員才看得到

@ghost
Copy link
Author

ghost commented Nov 12, 2018

@kevin61225 上面 youtube-iframe-api 專案是這個工作的程式碼位置嗎?想應該請你直接 commit 到 camera-trap 的程式碼中?

@kevin61225
Copy link
Contributor

@cjk-halodule 已將程式碼放入專案中,連結的部分也調整過囉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant