JP2021197671A - Viewing terminal and program - Google Patents
Viewing terminal and program Download PDFInfo
- Publication number
- JP2021197671A JP2021197671A JP2020104209A JP2020104209A JP2021197671A JP 2021197671 A JP2021197671 A JP 2021197671A JP 2020104209 A JP2020104209 A JP 2020104209A JP 2020104209 A JP2020104209 A JP 2020104209A JP 2021197671 A JP2021197671 A JP 2021197671A
- Authority
- JP
- Japan
- Prior art keywords
- time
- reproduction rate
- current time
- unit
- reproduction
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000003111 delayed effect Effects 0.000 claims abstract description 23
- 230000001360 synchronised effect Effects 0.000 description 12
- 238000000034 method Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 8
- 238000013459 approach Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 4
- 230000007547 defect Effects 0.000 description 1
- 238000010304 firing Methods 0.000 description 1
- 230000037433 frameshift Effects 0.000 description 1
- 230000015654 memory Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
Description
本発明は、ユーザが視聴する複数の動画を再生する視聴端末及びプログラムに関する。 The present invention relates to a viewing terminal and a program for playing a plurality of moving images to be viewed by a user.
従来、視聴端末において動画(映像及び音声)を再生するためのプログラムの要素として、例えば、ウェブページを構成する部品である「HTMLMediaElement」が使用される(例えば、非特許文献1〜4を参照)。
Conventionally, for example, "HTML Media Element" which is a component constituting a web page is used as an element of a program for playing a moving image (video and audio) on a viewing terminal (see, for example, Non-Patent
このHTMLMediaElementは、動画を再生するための要素であり、ウェブブラウザー上で動作させるために、HTML(HyperText Markup Language:ハイパーテキストマークアップランゲージ)にて記述される。 This HTMLMediaElement is an element for playing a moving image, and is described in HTML (HyperText Markup Language) in order to operate on a web browser.
視聴端末は、HTMLMediaElementが記述されたHTMLファイルを実行することにより、画面上の所定位置に、所定の動画を再生することができる(例えば、非特許文献5を参照)。 The viewing terminal can play a predetermined moving image at a predetermined position on the screen by executing the HTML file in which the HTMLMediaElement is described (see, for example, Non-Patent Document 5).
しかしながら、視聴端末が複数のHTMLMediaElementを同時に用いて複数の動画を再生する場合、ウェブブラウザーには、現在のところ複数の動画を同期させる仕組みが実装されていない。 However, when a viewing terminal uses a plurality of HTMLMediaElements at the same time to play a plurality of videos, the web browser does not currently implement a mechanism for synchronizing the plurality of videos.
従来、HTML5で定義されたmediaGroup属性により、複数のHTMLMediaElementをグループ化し、1つのHTMLMediaElementに対して再生開始または再生停止を行うと、グループ化した他のHTMLMediaElementも同期して再生開始または再生停止を行うことができる。つまり、mediaGroup属性により、HTMLMediaElementをグループ化することを前提として、再生開始及び再生停止の同期を実現することができる。 Conventionally, when a plurality of HTMLMediaElements are grouped by the mediaGroup attribute defined in HTML5 and playback is started or stopped for one HTMLMediaElement, the other grouped HTMLMediaElements are also synchronized to start or stop playback. be able to. That is, it is possible to realize synchronization of playback start and playback stop on the premise that the HTMLMediaElement is grouped by the mediaGroup attribute.
しかしながら、例えば1つのHTMLMediaElementにて再生中の動画があり、それを停止することなく他のHTMLMediaElementにて動画を再生する場合には、これらの動画を同期させることができない。尚、mediaGroup属性によるこのような機能は、HTML5が改訂された後のHTML5.1において削除された。 However, for example, if there is a moving image being played on one HTMLMediaElement and the moving image is played on another HTMLMediaElement without stopping it, these moving images cannot be synchronized. It should be noted that such a function by the mediaGroup attribute was deleted in HTML5.1 after HTML5 was revised.
また、例えばネットワークが混雑したり、視聴端末の処理に負荷変動が発生したりする外部要因に起因して、1つのHTMLMediaElementにおいて一時的なフリーズが発生することある。この場合、1つのHTMLMediaElementと他のHTMLMediaElementとの間で再生時刻にずれが生じるため、異なるHTMLMediaElement間の動画を同期した状態で再生することができない。 Further, for example, a temporary freeze may occur in one HTMLMediaElement due to an external factor such as a network congestion or a load fluctuation in the processing of a viewing terminal. In this case, since the playback time is different between one HTMLMediaElement and another HTMLMediaElement, it is not possible to play the moving images between different HTMLMediaElements in a synchronized state.
前述の外部要因により異なるHTMLMediaElement間で再生時刻にずれが生じる。その際、再生時刻のずれの時間がディスプレイのリフレッシュ周期の時間未満であれば、動画の視覚的な不具合は目立たない。しかし、再生時刻のずれの時間がディスプレイのリフレッシュ周期の時間以上であると、動画フレームの表示タイミングがずれるため、再生時刻のずれが視覚的に目立ってしまうという問題があった。 Due to the above-mentioned external factors, the playback time shifts between different HTML Media Elements. At that time, if the time difference of the playback time is less than the time of the refresh cycle of the display, the visual defect of the moving image is not noticeable. However, if the time shift of the playback time is longer than the time of the refresh cycle of the display, the display timing of the moving image frame shifts, so that the shift of the playback time becomes visually noticeable.
さらに、異なるブラウザー上で動作するHTMLMediaElementの動画再生、または異なる視聴端末上で動作するブラウザー上のHTMLMediaElementの動画再生においても、それぞれの動画をディスプレイのリフレッシュ周期の時間精度で同期させて再生することができない。 Furthermore, even when playing a video of HTMLMediaElement running on a different browser or playing a video of HTMLMediaElement on a browser running on a different viewing terminal, each video can be played in synchronization with the time accuracy of the refresh cycle of the display. Can not.
そこで、本発明は前記課題を解決するためになされたものであり、その目的は、複数の動画再生要素によりそれぞれの動画を再生しているときに再生時刻がずれたとしても、その再生時刻のずれを訂正し、動画再生の同期を実現可能な視聴端末及びプログラムを提供することにある。 Therefore, the present invention has been made to solve the above-mentioned problems, and an object of the present invention is to set the playback time even if the playback time shifts when each video is being played by a plurality of video playback elements. It is an object of the present invention to provide a viewing terminal and a program capable of correcting deviations and realizing synchronization of video reproduction.
前記課題を解決するために、請求項1の視聴端末は、ユーザが視聴する複数の動画を再生する視聴端末において、所定の基準時刻を取得する基準時刻取得部と、前記複数の動画のそれぞれに対応する複数の同期処理部と、前記複数の動画のそれぞれに対応する複数の動画再生部と、を備え、前記複数の同期処理部のそれぞれと前記複数の動画再生部のそれぞれとが対応している場合に、前記複数の同期処理部のそれぞれが、対応する前記動画再生部により再生されている前記動画の再生時刻を示す現在時刻を入力すると共に、前記基準時刻取得部により取得された前記基準時刻を入力し、前記基準時刻に所定のしきい値を加算して加算時刻を求めると共に、前記基準時刻から前記しきい値を減算して減算時刻を求め、前記現在時刻と前記加算時刻及び前記減算時刻とを比較し、前記現在時刻が進んでいる、遅れている、または進んでおらずかつ遅れていないことを判定する現在時刻比較部と、前記現在時刻比較部により前記現在時刻が進んでいると判定された場合、所定の基準再生レートよりも低いレートを再生レートとして求め、前記現在時刻が遅れていると判定された場合、前記基準再生レートよりも高いレートを前記再生レートとして求め、前記現在時刻が進んでおらずかつ遅れていないと判定された場合、前記基準再生レートを前記再生レートとして求める再生レート補正部と、を備え、前記複数の動画再生部のそれぞれが、対応する前記同期処理部から前記再生レートを入力し、前記再生レートに基づいて、対応する前記動画を再生する、ことを特徴とする。
In order to solve the above-mentioned problem, the viewing terminal according to
また、請求項2の視聴端末は、請求項1に記載の視聴端末において、前記複数の同期処理部のそれぞれが、さらに補正値算出部を備え、前記補正値算出部が、対応する前記動画再生部により再生されている前記動画の前記現在時刻を入力すると共に、前記基準時刻取得部により取得された前記基準時刻を入力し、前記現在時刻と前記基準時刻との間の差を時刻ずれ量として算出し、前記時刻ずれ量を予め設定された補正時間で除算することで、再生レート補正値を求め、前記再生レート補正部が、前記補正値算出部により求めた前記再生レート補正値を入力し、前記現在時刻比較部により前記現在時刻が進んでいると判定された場合、前記基準再生レートから前記再生レート補正値を減算することで、前記再生レートを求め、前記現在時刻が遅れていると判定された場合、前記基準再生レートに前記再生レート補正値を加算することで、前記再生レートを求め、前記現在時刻が進んでおらずかつ遅れていないと判定された場合、前記基準再生レートを前記再生レートとして求める、ことを特徴とする。
Further, the viewing terminal according to claim 2 is the viewing terminal according to
また、請求項3の視聴端末は、請求項1または2に記載の視聴端末において、前記しきい値を、前記動画が表示される表示部におけるリフレッシュ周期の時間に対して1/2以下の所定値とする、ことを特徴とする。
Further, the viewing terminal according to claim 3 has a predetermined threshold value of 1/2 or less with respect to the time of the refresh cycle in the display unit on which the moving image is displayed in the viewing terminal according to
また、請求項4の視聴端末は、請求項1から3までのいずれか一項に記載の視聴端末において、前記複数の動画再生部のそれぞれがHTMLMediaElementにより前記動画を再生する場合に、前記HTMLMediaElementにより前記現在時刻が更新されたときに発火するtimeupdateイベントのタイミングにて、対応する前記同期処理部の前記現在時刻比較部が、前記現在時刻及び前記基準時刻を入力して前記加算時刻及び前記減算時刻を求め、前記現在時刻と前記加算時刻及び前記減算時刻とを比較して判定し、前記再生レート補正部は、前記再生レートを求める、ことを特徴とする。
Further, the viewing terminal according to claim 4 is the viewing terminal according to any one of
さらに、請求項5のプログラムは、コンピュータを、請求項1から4までのいずれか一項に記載の視聴端末として機能させることを特徴とする。
Further, the program of claim 5 is characterized in that the computer functions as the viewing terminal according to any one of
以上のように、本発明によれば、複数の動画再生要素によりそれぞれの動画を再生しているときに再生時刻がずれたとしても、その再生時刻のずれを訂正し、動画再生の同期を実現することができる。 As described above, according to the present invention, even if the playback time shifts when each video is being played by a plurality of video playback elements, the shift in the playback time is corrected and synchronization of video playback is realized. can do.
以下、本発明を実施するための形態について図面を用いて詳細に説明する。本発明は、複数の動画を再生する際のそれぞれの動画について、再生時刻を示す現在時刻と、基準時刻に所定のしきい値を加減算して求めた加算時刻及び減算時刻とを比較し、比較結果に応じて再生レートを求め、当該再生レートにて動画を再生することを特徴とする。 Hereinafter, embodiments for carrying out the present invention will be described in detail with reference to the drawings. The present invention compares and compares the current time indicating the playback time with the addition time and the subtraction time obtained by adding or subtracting a predetermined threshold value to the reference time for each moving image when playing back a plurality of moving images. A reproduction rate is obtained according to the result, and the moving image is reproduced at the reproduction rate.
具体的には、本発明は、現在時刻が進んでいる場合、所定の基準再生レートよりも低いレートを再生レートとして求め、現在時刻が遅れている場合、基準再生レートよりも高いレートを再生レートとして求め、現在時刻が進んでおらず、かつ遅れていない場合、基準再生レートを再生レートとして求める。 Specifically, in the present invention, when the current time is advanced, a rate lower than a predetermined reference reproduction rate is obtained as a reproduction rate, and when the current time is delayed, a rate higher than the reference reproduction rate is obtained as a reproduction rate. If the current time is not advanced and is not delayed, the reference reproduction rate is calculated as the reproduction rate.
複数の動画を再生しているときに、いずれかの動画の再生時刻がずれたとしても、その再生時刻のずれを訂正し、動画再生の同期を実現することができる。 Even if the playback time of any of the videos shifts when a plurality of videos are being played, the shift in the playback time can be corrected and synchronization of the video playback can be realized.
〔動画視聴プログラム〕
まず、本発明の実施形態による視聴端末が実行する動作視聴プログラムの概略構成について説明する。図1は、動画視聴プログラムの概略構成例を説明する図であり、4つの動画を再生する場合の例を示している。図1には、本発明に直接関連する構成部のみを示しており、直接関連しない構成部は省略してある。
[Video viewing program]
First, a schematic configuration of an operation viewing program executed by a viewing terminal according to an embodiment of the present invention will be described. FIG. 1 is a diagram illustrating a schematic configuration example of a moving image viewing program, and shows an example in the case of playing back four moving images. FIG. 1 shows only the components directly related to the present invention, and the components not directly related to the present invention are omitted.
この動画視聴プログラムは、4つの動画を再生するプログラムであり、画面構成プログラム100及びデータ制御プログラム101により構成される。画面構成プログラム100は、それぞれの動画を再生するための要素であるHTMLMediaElementの動画再生部12−1〜12−4等がHTMLにて記述されたプログラムであり、画面に表示されるデータ及びその位置が定義される。
This moving image viewing program is a program for playing back four moving images, and is composed of a
データ制御プログラム101は、基準時刻取得部10、現在時刻比較部20及び再生レート補正部21等がJavaScript(登録商標)(ジャバスクリプト)にて記述されたプログラムであり、当該動画視聴プログラムにて扱うデータに関する処理が定義される。
The
画面構成プログラム100のHTMLファイルの実行に伴い、動画再生部12−1〜12−4によりそれぞれの動画が再生される(例えば、後述する図7に示す視聴端末1aの画面を参照)。そうすると、HTMLMediaElementにより所定のタイミングにて所定のイベントが発火し、データ制御プログラム101の現在時刻比較部20が呼び出されて動作する。
As the HTML file of the
現在時刻比較部20は、発火したイベントに対応する動画再生部12−1〜12−4のいずれかから、動画の再生時刻を示す現在時刻(currentTime)を入力すると共に、基準時刻取得部10から基準時刻を入力する。基準時刻は、当該動画視聴プログラムを実行する視聴端末が管理する時刻であり、4つの動画は、この基準時刻に従って同期することとなる。そして、現在時刻比較部20は、現在時刻と、基準時刻に所定のしきい値THを加減算して求めた加算時刻及び減算時刻とを比較する。
The current
再生レート補正部21は、その比較結果に基づいて再生レート(playbackRate)を求め、当該再生レートを、発火したイベントに対応する動画再生部12−1〜12−4へ出力する。発火したイベントに対応する動画再生部12−1〜12−4は、再生レート補正部21から再生レートを入力し、当該再生レートにて動画を再生する。
The reproduction
〔視聴端末〕
次に、本発明の実施形態による視聴端末について説明する。この視聴端末は、図1に示した動画視聴プログラムを実行する端末である。
[Viewing terminal]
Next, a viewing terminal according to an embodiment of the present invention will be described. This viewing terminal is a terminal that executes the moving image viewing program shown in FIG.
図2は、本発明の実施形態による視聴端末の構成例を示すブロック図である。この視聴端末1は、基準時刻取得部10、同期処理部11−1〜11−4(以下、総称して「同期処理部11」という。)、動画再生部12−1〜12−4(以下、総称して「動画再生部12」という。)及び表示部13を備えている。視聴端末1は、4つの動画を同期させた状態で再生する。
FIG. 2 is a block diagram showing a configuration example of a viewing terminal according to an embodiment of the present invention. The
同期処理部11−1及び動画再生部12−1は対応しており、第1の動画が再生される。同期処理部11−2〜11−4及び動画再生部12−2〜12−4のそれぞれも対応しており、第2〜4の動画がそれぞれ再生される。 The synchronization processing unit 11-1 and the moving image reproduction unit 12-1 correspond to each other, and the first moving image is reproduced. The synchronization processing units 11-2 to 11-4 and the moving image reproduction units 12-2 to 12-4 are also supported, and the second to fourth moving images are reproduced, respectively.
尚、視聴端末1は、スマートフォン等の携帯端末、パーソナルコンピュータ、テレビ等であり、ウェブブラウザー上で動画視聴プログラムが動作する端末であって、視聴端末1を操作するユーザにより動画の視聴が行われる端末であれば何でもよい。
The
基準時刻取得部10は、視聴端末1において4つの動画が同期する際の基準時刻を取得し、これを同期処理部11に出力する。ここで、基準時刻は、動画視聴プログラムが動作している視聴端末1の内部時刻であってもよい。この場合、基準時刻取得部10は、図示しない時計(視聴端末1に備えた時計)から時刻情報を取得し、これを基準時刻として用いる。
The reference
尚、基準時刻取得部10は、動画再生部12−1〜12−4のうちのいずれかから出力された現在時刻を、基準時刻として取得するようにしてもよい。
The reference
同期処理部11は、対応する動画再生部12においてHTMLMediaElementによるtimeupdateイベントの発火に伴い、動画再生部12から発火したことを示す信号を入力する。そうすると、同期処理部11は、動画再生部12から現在時刻を入力すると共に、基準時刻取得部10から基準時刻を入力する。
The synchronization processing unit 11 inputs a signal indicating that the time update event has been fired from the video playback unit 12 in the corresponding video playback unit 12 in accordance with the firing of the timeupdate event by the HTMLMediaElement. Then, the synchronization processing unit 11 inputs the current time from the moving image reproduction unit 12, and also inputs the reference time from the reference
同期処理部11は、現在時刻と、基準時刻に所定のしきい値THを加減算して求めた加算時刻及び減算時刻とを比較し、比較結果に応じて再生レートを求め、再生レートを動画再生部12に出力する。同期処理部11の詳細については後述する。 The synchronization processing unit 11 compares the current time with the addition time and the subtraction time obtained by adding / subtracting a predetermined threshold value TH to the reference time, obtains a reproduction rate according to the comparison result, and reproduces the reproduction rate as a moving image. Output to unit 12. The details of the synchronization processing unit 11 will be described later.
動画再生部12は、HTMLMediaElementにより動画を再生する。動画再生部12は、動画の再生時刻を示す現在時刻が更新されたときに、HTMLMediaElementによりtimeupdateイベントが発火し、発火したことを示す信号を対応する同期処理部11に出力する。 The moving image reproduction unit 12 reproduces a moving image by HTMLMediaElement. When the current time indicating the reproduction time of the moving image is updated, the moving image reproduction unit 12 fires a timeupdate event by HTMLMediaElement, and outputs a signal indicating that the fire has been fired to the corresponding synchronization processing unit 11.
timeupdateイベントは、現在時刻が更新されたときに、少なくとも250ms以内に発火する。現在時刻は、動画が再生されているときに逐次更新され、動画が停止しているときは更新されない。 The timeupdate event fires within at least 250ms when the current time is updated. The current time is updated sequentially when the video is playing and not when the video is stopped.
動画再生部12は、HTMLMediaElementにおける現在時刻を取得し、現在時刻を対応する同期処理部11に出力する。また、動画再生部12は、対応する同期処理部11から再生レートを入力し、HTMLMediaElementにより当該再生レートにて動画を表示部13に出力することで、動画を再生する。
The moving image reproduction unit 12 acquires the current time in the HTMLMediaElement and outputs the current time to the corresponding synchronization processing unit 11. Further, the moving image reproduction unit 12 inputs a reproduction rate from the corresponding synchronization processing unit 11 and outputs the moving image to the
表示部13は、動画再生部12−1〜12−4からそれぞれ動画を入力し、入力したそれぞれの動画を画面表示する。これにより、それぞれの動画は、動画再生部12−1〜12−4が対応する同期処理部11−1〜11−4から入力した再生レートにて再生される。
The
このように、4つの動画のそれぞれについて、timeupdateイベントが発火する毎に、基準時刻に対する動画の現在時刻に応じて、現在時刻が基準時刻に近づくように、厳密には基準時刻±しきい値THの範囲に近づくように、動画の再生レートが更新される。基準時刻±しきい値THの範囲とは、(基準時刻−しきい値TH)の時刻から(基準時刻+しきい値TH)の時刻までの間の範囲をいう。 In this way, for each of the four videos, strictly speaking, the reference time ± threshold value TH so that the current time approaches the reference time according to the current time of the video with respect to the reference time each time the timeupdate event fires. The playback rate of the video is updated so that it approaches the range of. The range of the reference time ± the threshold value TH means the range from the time of (reference time-threshold value TH) to the time of (reference time + threshold value TH).
次に、図2に示した同期処理部11について詳細に説明する。以下に説明する第一例の同期処理部11は、現在時刻と、基準時刻に所定のしきい値を加減算して求めた加算時刻及び減算時刻とを比較し、比較結果に応じて、基準再生レートに所定の再生レート補正値を加減算等することで、再生レートを求める例である。また、第二例の同期処理部11は、第一例の同期処理部11において、現在時刻と基準時刻との間の差である時刻ずれ量dに応じて、再生レート補正値を求める例である。 Next, the synchronization processing unit 11 shown in FIG. 2 will be described in detail. The synchronization processing unit 11 of the first example described below compares the current time with the addition time and the subtraction time obtained by adding / subtracting a predetermined threshold value to the reference time, and performs reference reproduction according to the comparison result. This is an example of obtaining the reproduction rate by adding or subtracting a predetermined reproduction rate correction value to the rate. Further, the synchronization processing unit 11 of the second example is an example in which the synchronization processing unit 11 of the first example obtains a reproduction rate correction value according to a time shift amount d which is a difference between the current time and the reference time. be.
(同期処理部11/第一例)
まず、第一例の同期処理部11について説明する。図3は、第一例の同期処理部11の構成例を示すブロック図であり、図4は、第一例の同期処理部11の処理例を示すフローチャートである。この同期処理部11aは、現在時刻比較部20及び再生レート補正部21を備えている。
(Synchronization processing unit 11 / First example)
First, the synchronization processing unit 11 of the first example will be described. FIG. 3 is a block diagram showing a configuration example of the synchronization processing unit 11 of the first example, and FIG. 4 is a flowchart showing a processing example of the synchronization processing unit 11 of the first example. The synchronization processing unit 11a includes a current
現在時刻比較部20は、timeupdateイベントが発火したことを示す信号を入力したか否かを判定する(ステップS401)。現在時刻比較部20は、ステップS401において、timeupdateイベントが発火したことを示す信号を入力していないと判定した場合(ステップS401:N)、当該信号を入力するまで待つ。
The current
現在時刻比較部20は、ステップS401において、timeupdateイベントが発火したことを示す信号を入力したと判定した場合(ステップS401:Y)、後述するステップS402〜S409の処理を行い、ステップS401へ戻る。つまり、現在時刻比較部20は、timeupdateイベントが発火する毎に、ステップS402〜S409の処理を繰り返す。
When the current
現在時刻比較部20は、ステップS401(Y)から移行して、対応する動画再生部12から現在時刻を入力すると共に(ステップS402)、基準時刻取得部10から基準時刻を入力する(ステップS403)。また、現在時刻比較部20は、予め設定されたしきい値THを入力する。
The current
現在時刻比較部20は、基準時刻にしきい値THを加算して加算結果の時刻(加算時刻)を求め、現在時刻と加算時刻とを比較し、現在時刻が加算時刻よりも進んでいるか否かを判定する(ステップS404)。
The current
現在時刻比較部20は、ステップS404において、現在時刻が加算時刻よりも進んでいると判定した場合(ステップS404:Y)、現在時刻が進んでいることを示す比較結果を再生レート補正部21に出力し、ステップS406へ移行する。
When the current
一方、現在時刻比較部20は、ステップS404において、現在時刻が加算時刻よりも進んでいないと判定した場合(ステップS404:N)、ステップS405へ移行する。
On the other hand, when the current
現在時刻比較部20は、ステップS404(N)から移行して、基準時刻からしきい値THを減算して減算結果の時刻(減算時刻)を求め、現在時刻と減算時刻とを比較し、現在時刻が減算時刻よりも遅れているか否かを判定する(ステップS405)。
The current
現在時刻比較部20は、ステップS405において、現在時刻が減算時刻よりも遅れていると判定した場合(ステップS405:Y)、現在時刻が遅れていることを示す比較結果を再生レート補正部21に出力し、ステップS407へ移行する。
When the current
一方、現在時刻比較部20は、ステップS405において、現在時刻が減算時刻よりも遅れていないと判定した場合(ステップS405:N)、現在時刻が進んでおらず、かつ遅れていないことを示す比較結果を生成する。そして、現在時刻比較部20は、比較結果を再生レート補正部21に出力し、ステップS408へ移行する。この場合の現在時刻は、基準時刻±しきい値THの範囲にあることとなる。
On the other hand, when the current
ステップS404,S405のしきい値THとしては、R/2以下の値が用いられる。Rは、視聴端末1の動画視聴プレーヤーが動作する表示部13のディスプレイのリフレッシュ周期の時間である。
As the threshold value TH in steps S404 and S405, a value of R / 2 or less is used. R is the time of the refresh cycle of the display of the
これは、動画再生部12−1〜12−4における全てのHTMLMediaElementを同期させるには、それぞれの現在時刻のずれ(すなわち基準時刻に対する±しきい値THの範囲(2×TH))を、最大及び最小を含めてリフレッシュ周期の時間R以下に収める必要があるからである。この場合の基準時刻に対する現在時刻のずれは、リフレッシュ周期の時間Rにおいて−1/2〜1/2の範囲となる。 This means that in order to synchronize all HTMLMediaElements in the video playback units 12-1 to 12-4, the deviation of each current time (that is, the range of ± threshold TH with respect to the reference time (2 × TH)) is maximized. This is because it is necessary to keep the time R or less of the refresh cycle including the minimum. In this case, the deviation of the current time from the reference time is in the range of −1 / 2 to 1/2 in the time R of the refresh cycle.
つまり、しきい値THとしてR/2の値を用いることにより、リフレッシュ周期の時間R以内で動画フレームの表示タイミングのずれを補正することができる。 That is, by using the value of R / 2 as the threshold value TH, it is possible to correct the deviation of the display timing of the moving image frame within the time R of the refresh cycle.
例えばしきい値THは、リフレッシュ周期の時間Rの1/4程度の値、すなわちR/4が望ましい。これにより、現在時刻のずれが最大及び最小を含めてリフレッシュ周期の時間Rの1/2程度に収めることができる。この場合の基準時刻に対する現在時刻のずれは、リフレッシュ周期の時間Rにおいて−1/4〜1/4の範囲となる。 For example, the threshold value TH is preferably a value of about 1/4 of the time R of the refresh cycle, that is, R / 4. As a result, the deviation of the current time can be kept within about 1/2 of the time R of the refresh cycle including the maximum and minimum. In this case, the deviation of the current time from the reference time is in the range of -1/4 to 1/4 in the time R of the refresh cycle.
再生レート補正部21は、現在時刻比較部20から比較結果を入力すると共に、予め設定された再生レート補正値を入力する。再生レート補正部21は、ステップS404(Y)から移行して、比較結果が現在時刻が進んでいることを示している場合、基準再生レートである1から再生レート補正値を減算し、減算結果を再生レートに設定する(ステップS406)。基準再生レートは、動画が通常速度で再生されているときのレートを示す。
The reproduction
これにより、現在時刻が基準時刻に対してしきい値THを超えるずれがあり、かつ進んでいる場合には、現在時刻が基準時刻に近づくように、基準再生レートよりも低いレートが再生レートとして設定される。 As a result, if the current time deviates from the reference time by more than the threshold value TH and is advanced, a rate lower than the reference playback rate is set as the playback rate so that the current time approaches the reference time. Set.
ここで、再生レート補正値としては、動画が再生されているときに視覚的に再生レートの変化が目立たない範囲の値を用いることが望ましい。再生レート補正値は、例えば、リフレッシュ周期の時間であるRが用いられる。このとき、現在時刻が基準時刻に対してR秒ずれている場合、1秒かけて補正が行われ、現在時刻が基準時刻に近づくこととなる。 Here, as the reproduction rate correction value, it is desirable to use a value in a range in which the change in the reproduction rate is not visually noticeable when the moving image is being reproduced. As the reproduction rate correction value, for example, R, which is the time of the refresh cycle, is used. At this time, if the current time deviates from the reference time by R seconds, the correction is performed over 1 second, and the current time approaches the reference time.
また、再生レート補正部21は、ステップS405(Y)から移行して、比較結果が現在時刻が遅れていることを示している場合、基準再生レートである1に再生レート補正値を加算し、加算結果を再生レートに設定する(ステップS407)。
Further, when the reproduction
これにより、現在時刻が基準時刻に対してしきい値THを超えるずれがあり、かつ遅れている場合には、現在時刻が基準時刻に近づくように、基準再生レートよりも高いレートが再生レートとして設定される。 As a result, if the current time deviates from the reference time by exceeding the threshold value TH and is delayed, a rate higher than the reference playback rate is set as the playback rate so that the current time approaches the reference time. Set.
また、再生レート補正部21は、ステップS405(N)から移行して、比較結果が現在時刻が進んでおらず、かつ遅れていないことを示している場合、基準再生レートである1を再生レートに設定する(ステップS408)。
Further, when the reproduction
これにより、現在時刻が基準時刻に対してしきい値THを超えるずれがない場合、すなわち現在時刻が進んでおらず、かつ遅れていない場合には、現在時刻が基準時刻に対してずれていない状態を継続するように、基準再生レートが再生レートとして設定される。つまり、再生レートは、通常速度である基準再生レートに戻る。 As a result, if the current time does not deviate from the reference time by more than the threshold value TH, that is, if the current time does not advance and is not delayed, the current time does not deviate from the reference time. The reference playback rate is set as the playback rate so that the state continues. That is, the reproduction rate returns to the reference reproduction rate, which is the normal speed.
再生レート補正部21は、ステップS406〜S408から移行して、再生レートを対応する動画再生部12に出力する(ステップS409)。
The reproduction
これにより、動画再生部12により再生中の動画の現在時刻が進んでいる場合、基準再生レートよりも低い再生レートにて動画が再生されることで、現在時刻は通常よりも遅くカウントされ、現在時刻が基準時刻に近づくようになる。 As a result, when the current time of the video being played by the video playback unit 12 is advanced, the video is played at a playback rate lower than the reference playback rate, so that the current time is counted later than usual and is currently. The time approaches the reference time.
また、動画再生部12により再生中の動画の現在時刻が遅れている場合、基準再生レートよりも高い再生レートにて動画が再生されることで、現在時刻は通常よりも速くカウントされ、現在時刻が基準時刻に近づくようになる。 Further, when the current time of the video being played is delayed by the video playback unit 12, the video is played at a playback rate higher than the reference playback rate, so that the current time is counted faster than usual and the current time. Comes closer to the reference time.
また、動画再生部12により再生中の動画の現在時刻が進んでおらず、かつ遅れていない場合、基準再生レートと同じ再生レートにて動画が再生されることで、現在時刻は通常速度でカウントされ、現在時刻が基準時刻に近い状態で再生が継続する。 If the current time of the video being played by the video playback unit 12 is not advanced and is not delayed, the video is played at the same playback rate as the reference playback rate, and the current time is counted at the normal speed. Then, playback continues with the current time close to the reference time.
(同期処理部11/第二例)
次に、第二例の同期処理部11について説明する。図5は、第二例の同期処理部11の構成例を示すブロック図である。この同期処理部11bは、現在時刻比較部20、再生レート補正部21及び補正値算出部22を備えている。
(Synchronization processing unit 11 / Second example)
Next, the synchronization processing unit 11 of the second example will be described. FIG. 5 is a block diagram showing a configuration example of the synchronization processing unit 11 of the second example. The synchronization processing unit 11b includes a current
図3に示した第一例の同期処理部11aとこの第二例の同期処理部11bとを比較すると、両同期処理部11a,11bは、現在時刻比較部20及び再生レート補正部21を備えている点で共通する。一方、同期処理部11bは、補正値算出部22を備えている点で、補正値算出部22を備えていない同期処理部11aと相違する。図5において、図3と共通する部分には図3と同一の符号を付し、その詳しい説明は省略する。
Comparing the synchronization processing unit 11a of the first example and the synchronization processing unit 11b of the second example shown in FIG. 3, both the synchronization processing units 11a and 11b include the current
補正値算出部22は、動画再生部12から現在時刻を入力すると共に、基準時刻取得部10から基準時刻を入力し、現在時刻と基準時刻との間の差である時刻ずれ量dに応じて、再生レート補正値を求める。そして、補正値算出部22は、再生レート補正値を再生レート補正部21に出力する。補正値算出部22の詳細については後述する。
The correction
再生レート補正部21は、現在時刻比較部20から比較結果を入力すると共に、補正値算出部22から再生レート補正値を入力する。そして、再生レート補正部21は、ステップS406,S407において、補正値算出部22から入力した再生レート補正値を用いて再生レートを求める。または、再生レート補正部21は、ステップS408において再生レートを求める。再生レート補正部21は、再生レートを対応する動画再生部12に出力する。
The reproduction
図6は、補正値算出部22の処理例を示すフローチャートである。補正値算出部22は、対応する動画再生部12から現在時刻を入力すると共に(ステップS601)、基準時刻取得部10から基準時刻を入力する(ステップS602)。
FIG. 6 is a flowchart showing a processing example of the correction
補正値算出部22は、現在時刻と基準時刻との間の差(の絶対値)である時刻ずれ量dを算出し(ステップS603)、時刻ずれ量dを予め設定された補正時間aで除算し(d/a)、再生レート補正値を求める(ステップS604)。補正時間aは、動画の時刻ずれ量dを補正するための時間を示す。つまり、再生レート補正値としてd/aを用いることで、動画の時刻ずれ量dは、補正時間aが経過すると0となる。
The correction
補正値算出部22は、再生レート補正値が予め設定された上限値よりも大きいか否かを判定する(ステップS605)。補正値算出部22は、ステップS605において、再生レート補正値が上限値よりも大きいと判定した場合(ステップS605:Y)、再生レート補正値に上限値(例えば1/4)を設定し(ステップS606)、ステップS609へ移行する。
The correction
一方、補正値算出部22は、ステップS605において、再生レート補正値が上限値よりも大きくないと判定した場合(ステップS605:N)、ステップS607へ移行する。
On the other hand, when the correction
補正値算出部22は、ステップS605(N)から移行して、再生レート補正値が予め設定された下限値よりも小さいか否かを判定する(ステップS607)。
The correction
補正値算出部22は、ステップS607において、再生レート補正値が下限値よりも小さいと判定した場合(ステップS607:Y)、再生レート補正値に下限値(例えば1/60)を設定し(ステップS608)、ステップS609へ移行する。
When the correction
一方、補正値算出部22は、ステップS607において、再生レート補正値が下限値よりも小さくないと判定した場合(ステップS607:N)、ステップS609へ移行する。
On the other hand, when the correction
補正値算出部22は、ステップS606、ステップS607(N)またはステップS608から移行して、再生レート補正値を再生レート補正部21に出力する(ステップS609)。
The correction
これにより、再生レート補正値として、時刻ずれ量dを補正時間aで除算した値(d/a)を用いるようにしたから、時刻ずれ量dが小さいほど、再生レートは基準再生レートである1に近い値となる。また、時刻ずれ量dが大きいほど、再生レートは1から離れた値となる。さらに、補正時間aが小さいほど、時刻ずれ量dが0となるまでの時間が短くなり、補正時間aが大きいほど、時刻ずれ量dが0となるまでの時間が長くなる。 As a result, the value (d / a) obtained by dividing the time lag amount d by the correction time a is used as the reproduction rate correction value. Therefore, the smaller the time lag amount d, the more the reproduction rate is the reference reproduction rate. It becomes a value close to. Further, the larger the time shift amount d, the farther the reproduction rate is from 1. Further, the smaller the correction time a, the shorter the time until the time lag amount d becomes 0, and the larger the correction time a, the longer the time until the time lag amount d becomes 0.
ここで、動画の現在時刻にずれがあるときに、再生レートを即座に0に変更したり、大きい値に変更したりする手法が想定される。しかし、本発明の実施形態の手法を用いることにより、再生レートの変化を抑えることができるから、再生レートの変化を視覚的に目立たないようにすることができる。 Here, when there is a deviation in the current time of the moving image, a method of immediately changing the playback rate to 0 or changing it to a large value is assumed. However, by using the method of the embodiment of the present invention, the change in the reproduction rate can be suppressed, so that the change in the reproduction rate can be made visually inconspicuous.
また、再生レート補正部21に出力される再生レート補正値は、予め設定された下限値から上限値までの間の値となる。再生レート補正値であるd/aが上限値よりも大きい場合、上限値に抑えるようにしたから、再生レートの変化を一層視覚的に目立たないようにすることができる。
Further, the reproduction rate correction value output to the reproduction
また、再生レート補正値であるd/aが下限値よりも小さい場合、下限値に抑えるようにしたから、再生レート補正値に基づいて求めた再生レートは、動画再生を制御可能なレートとすることができる。 Further, when d / a, which is a reproduction rate correction value, is smaller than the lower limit value, the lower limit value is suppressed. Therefore, the reproduction rate obtained based on the reproduction rate correction value is a rate at which video reproduction can be controlled. be able to.
以上のように、本発明の実施形態の視聴端末1によれば、第一例の同期処理部11aにおいて、現在時刻比較部20は、対応する動画再生部12のHTMLMediaElementのtimeupdateイベントが発火したときに、基準時刻に予め設定されたしきい値THを加減算して加算時刻及び減算時刻を求める。そして、現在時刻比較部20は、現在時刻と加算時刻及び減算時刻とを比較する。
As described above, according to the
再生レート補正部21は、比較処理により現在時刻が進んでいると判定された場合、基準再生レートから予め設定された再生レート補正値を減算して、再生レートを求める。また、再生レート補正部21は、現在時刻が遅れていると判定された場合、基準再生レートに再生レート補正値を加算して、再生レートを求める。また、再生レート補正部21は、現在時刻が進んでおらず、かつ遅れていないと判定された場合、基準再生レートを再生レートとして求める。
When it is determined by the comparison process that the current time is advanced, the reproduction
同期処理部11aに対応する動画再生部12は、再生レート補正部21により求めた再生レートにて動画を再生する。
The moving image reproduction unit 12 corresponding to the synchronization processing unit 11a reproduces the moving image at the reproduction rate obtained by the reproduction
これにより、再生中の動画の現在時刻が進んでいると判定された場合、基準再生レートよりも低速の再生レートにて動画が再生され、現在時刻が遅れていると判定された場合、基準再生レートよりも高速の再生レートにて動画が再生され、現在時刻が進んでおらず、かつ遅れていないと判定された場合、基準再生レートにて動画が再生される。 As a result, if it is determined that the current time of the video being played is advanced, the video is played at a playback rate slower than the reference playback rate, and if it is determined that the current time is behind, the reference playback is performed. If it is determined that the moving image is played at a playback rate faster than the rate and the current time is not advanced and is not delayed, the moving image is played at the reference playback rate.
このような処理が、同時に再生されている全ての動画に対してtimeupdateイベントが発火する毎に行われることで、全ての動画の現在時刻を、基準時刻±しきい値THの範囲に収めることができる。つまり、全ての動画の現在時刻は、基準時刻を中心としたしきい値TH前の時刻からしきい値TH後の時刻までの時間範囲内、すなわちTH×2の時間範囲内に収めることができる。 By performing such processing every time the timeupdate event is fired for all the videos being played at the same time, the current time of all the videos can be kept within the range of the reference time ± the threshold value TH. can. That is, the current time of all moving images can be contained within the time range from the time before the threshold value TH to the time after the threshold value TH centered on the reference time, that is, within the time range of TH × 2. ..
したがって、複数のHTMLMediaElementである動画再生要素によりそれぞれの動画を再生しているときに再生時刻がずれたとしても、その再生時刻のずれを訂正し、動画再生の同期を実現することができる。 Therefore, even if the playback time shifts when each video is being played by the video playback elements that are a plurality of HTMLMediaElements, the shift in the playback time can be corrected and synchronization of the video playback can be realized.
特に、しきい値THを、表示部13のディスプレイのリフレッシュ周期の時間Rに対して1/2の値(R/2)とすることにより、全ての動画の現在時刻のずれを、リフレッシュ周期の時間R以内に収めることができる。
In particular, by setting the threshold value TH to a value (R / 2) of 1/2 with respect to the time R of the refresh cycle of the display of the
また、本発明の実施形態の視聴端末1によれば、第二例の同期処理部11bにおいて、補正値算出部22は、動画の現在時刻と基準時刻との間の差である時刻ずれ量dを算出し、時刻ずれ量dを予め設定された補正時間aで除算し(d/a)、除算結果を再生レート補正値とする。
Further, according to the
再生レート補正部21は、現在時刻比較部20の比較処理の結果に応じて、補正値算出部22により算出された再生レート補正値を用いて、再生レートを求め、動画再生部12は、再生レート補正部21により求めた再生レートにて動画を再生する。
The reproduction
これにより、時刻ずれ量d及び補正時間aに応じて再生レート補正値を求め、再生レート補正値を再生レートに反映するようにしたから、再生レートの変化を、視覚的に目立たないようにすることができる。 As a result, the reproduction rate correction value is obtained according to the time shift amount d and the correction time a, and the reproduction rate correction value is reflected in the reproduction rate, so that the change in the reproduction rate is not visually noticeable. be able to.
また、本発明の実施形態の視聴端末1によれば、複数の動画を同期させることができ、さらに、複数の視聴端末1を用いることにより、複数の視聴端末1にて再生される全ての動画を同期させることができる。
Further, according to the
図7は、2台の視聴端末1で再生されている複数の動画の同期を説明する図である。図2に示した視聴端末1が2台存在する場合において、1台目の視聴端末1を視聴端末1aとし、2台目の視聴端末1を視聴端末1bとする。視聴端末1aは、ウェブブラウザー110上に、動画再生部12−1〜12−4により合計4つの動画111〜114を再生するものとする。また、視聴端末1bは、ウェブブラウザー120上に、動画再生部12−1〜12−4により合計4つの動画121〜124を再生するものとする。
FIG. 7 is a diagram illustrating synchronization of a plurality of moving images played on the two
ここで、視聴端末1a,1bの基準時刻取得部10は、当該視聴端末1a,1bの時計から時刻を取得し、これを基準時刻とし、視聴端末1a,1bの時計は、世界標準時等に同期しているものとする。
Here, the reference
これにより、視聴端末1a,1bにおける合計8つのHTMLMediaElementを同期させることができる。つまり、視聴端末1a,1bにて再生される合計8つの動画を同期させることができる。
As a result, a total of eight HTML Media Elements in the
以上、実施形態を挙げて本発明を説明したが、本発明は前記実施形態に限定されるものではなく、その技術思想を逸脱しない範囲で種々変形可能である。 Although the present invention has been described above with reference to embodiments, the present invention is not limited to the above-described embodiment and can be variously modified without departing from the technical idea.
例えば図2に示した視聴端末1は、動画再生部12においてHTMLMediaElementによりtimeupdateイベントが発火する毎に、同期処理部11が同期処理を行って再生レートを求めるようにした。本発明は、同期処理部11による同期処理のタイミングを、timeupdateイベントが発火する250ms以内のタイミングに限定するものではなく、他のイベントが発火するタイミングであってよく、他の時間間隔のタイミングであってもよい。要するに、同期処理部11による同期処理のタイミングは、所定周期のタイミングであれば何でもよい。
For example, in the
また、図2に示した視聴端末1は、動画再生部12において、HTMLMediaElementである動画再生要素を用いて動画を再生するようにしたが、他の動画再生要素を用いるようにしてもよい。
Further, in the
また、図1、図2及び図7に示した視聴端末1,1a,1bは、4つの動画を再生するようにしたが、4つ以外の複数の動画を再生するようにしてもよい。この場合、視聴端末1,1a,1bは、再生する動画と同じ数の同期処理部11及び動画再生部12を備える。
Further, although the
尚、本発明の実施形態による視聴端末1のハードウェア構成としては、通常のコンピュータを使用することができる。視聴端末1は、CPU、RAM等の揮発性の記憶媒体、ROM等の不揮発性の記憶媒体、及びインターフェース等を備えたコンピュータによって構成される。
As the hardware configuration of the
視聴端末1に備えた基準時刻取得部10、同期処理部11−1〜11−4、動画再生部12−1〜12−4及び表示部13の各機能は、これらの機能を記述したプログラムをCPUに実行させることによりそれぞれ実現される。
Each function of the reference
これらのプログラムは、前記記憶媒体に格納されており、CPUに読み出されて実行される。また、これらのプログラムは、磁気ディスク(フロッピー(登録商標)ディスク、ハードディスク等)、光ディスク(CD−ROM、DVD等)、半導体メモリ等の記憶媒体に格納して頒布することもでき、ネットワークを介して送受信することもできる。 These programs are stored in the storage medium, read by the CPU, and executed. In addition, these programs can be stored and distributed in storage media such as magnetic disks (floppy (registered trademark) disks, hard disks, etc.), optical disks (CD-ROM, DVD, etc.), semiconductor memories, etc., and can be distributed via a network. You can also send and receive.
1 視聴端末
10 基準時刻取得部
11,11a,11b,11−1,11−2,11−3,11−4 同期処理部
12,12−1,12−2,12−3,12−4 動画再生部
13 表示部
20 現在時刻比較部
21 再生レート補正部
22 補正値算出部
100 画面構成プログラム
101 データ制御プログラム
110,120 ウェブブラウザー
111,112,113,114,121,122,123,124 動画
TH しきい値
d 時刻ずれ量
a 補正時間
1 Viewing
Claims (5)
所定の基準時刻を取得する基準時刻取得部と、前記複数の動画のそれぞれに対応する複数の同期処理部と、前記複数の動画のそれぞれに対応する複数の動画再生部と、を備え、前記複数の同期処理部のそれぞれと前記複数の動画再生部のそれぞれとが対応している場合に、
前記複数の同期処理部のそれぞれは、
対応する前記動画再生部により再生されている前記動画の再生時刻を示す現在時刻を入力すると共に、前記基準時刻取得部により取得された前記基準時刻を入力し、前記基準時刻に所定のしきい値を加算して加算時刻を求めると共に、前記基準時刻から前記しきい値を減算して減算時刻を求め、前記現在時刻と前記加算時刻及び前記減算時刻とを比較し、前記現在時刻が進んでいる、遅れている、または進んでおらずかつ遅れていないことを判定する現在時刻比較部と、
前記現在時刻比較部により前記現在時刻が進んでいると判定された場合、所定の基準再生レートよりも低いレートを再生レートとして求め、前記現在時刻が遅れていると判定された場合、前記基準再生レートよりも高いレートを前記再生レートとして求め、前記現在時刻が進んでおらずかつ遅れていないと判定された場合、前記基準再生レートを前記再生レートとして求める再生レート補正部と、を備え、
前記複数の動画再生部のそれぞれは、
対応する前記同期処理部から前記再生レートを入力し、前記再生レートに基づいて、対応する前記動画を再生する、ことを特徴とする視聴端末。 In a viewing terminal that plays multiple videos viewed by the user
The plurality of units include a reference time acquisition unit for acquiring a predetermined reference time, a plurality of synchronization processing units corresponding to each of the plurality of moving images, and a plurality of moving image playback units corresponding to each of the plurality of moving images. When each of the synchronization processing units of the above and each of the plurality of video playback units correspond to each other,
Each of the plurality of synchronization processing units
The current time indicating the playback time of the moving image being played by the corresponding moving image reproduction unit is input, and the reference time acquired by the reference time acquisition unit is input, and a predetermined threshold value is set for the reference time. Is added to obtain the addition time, and the threshold value is subtracted from the reference time to obtain the subtraction time. The current time is compared with the addition time and the subtraction time, and the current time is advanced. , The current time comparison unit that determines whether it is late, or not advanced and not late,
When the current time comparison unit determines that the current time is advanced, a rate lower than the predetermined reference reproduction rate is obtained as the reproduction rate, and when it is determined that the current time is delayed, the reference reproduction is performed. A reproduction rate correction unit for obtaining a reference reproduction rate as the reproduction rate when a rate higher than the rate is obtained as the reproduction rate and it is determined that the current time is not advanced and is not delayed is provided.
Each of the plurality of video playback units
A viewing terminal characterized in that the reproduction rate is input from the corresponding synchronization processing unit, and the corresponding moving image is reproduced based on the reproduction rate.
前記複数の同期処理部のそれぞれは、さらに補正値算出部を備え、
前記補正値算出部は、
対応する前記動画再生部により再生されている前記動画の前記現在時刻を入力すると共に、前記基準時刻取得部により取得された前記基準時刻を入力し、前記現在時刻と前記基準時刻との間の差を時刻ずれ量として算出し、
前記時刻ずれ量を予め設定された補正時間で除算することで、再生レート補正値を求め、
前記再生レート補正部は、
前記補正値算出部により求めた前記再生レート補正値を入力し、前記現在時刻比較部により前記現在時刻が進んでいると判定された場合、前記基準再生レートから前記再生レート補正値を減算することで、前記再生レートを求め、前記現在時刻が遅れていると判定された場合、前記基準再生レートに前記再生レート補正値を加算することで、前記再生レートを求め、前記現在時刻が進んでおらずかつ遅れていないと判定された場合、前記基準再生レートを前記再生レートとして求める、ことを特徴とする視聴端末。 In the viewing terminal according to claim 1,
Each of the plurality of synchronization processing units further includes a correction value calculation unit.
The correction value calculation unit is
The current time of the moving image being played by the corresponding moving image reproduction unit is input, and the reference time acquired by the reference time acquisition unit is input, and the difference between the current time and the reference time. Is calculated as the amount of time lag,
By dividing the time lag amount by a preset correction time, the reproduction rate correction value is obtained.
The reproduction rate correction unit is
When the reproduction rate correction value obtained by the correction value calculation unit is input and the current time comparison unit determines that the current time is advanced, the reproduction rate correction value is subtracted from the reference reproduction rate. Then, when the reproduction rate is obtained and it is determined that the current time is delayed, the reproduction rate is obtained by adding the reproduction rate correction value to the reference reproduction rate, and the current time is advanced. A viewing terminal characterized in that, when it is determined that there is no delay and the reference reproduction rate is obtained as the reproduction rate.
前記しきい値を、前記動画が表示される表示部におけるリフレッシュ周期の時間に対して1/2以下の所定値とする、ことを特徴とする視聴端末。 In the viewing terminal according to claim 1 or 2.
A viewing terminal characterized in that the threshold value is set to a predetermined value of 1/2 or less with respect to the time of the refresh cycle in the display unit on which the moving image is displayed.
前記複数の動画再生部のそれぞれがHTMLMediaElementにより前記動画を再生する場合に、前記HTMLMediaElementにより前記現在時刻が更新されたときに発火するtimeupdateイベントのタイミングにて、
対応する前記同期処理部の前記現在時刻比較部は、前記現在時刻及び前記基準時刻を入力して前記加算時刻及び前記減算時刻を求め、前記現在時刻と前記加算時刻及び前記減算時刻とを比較して判定し、前記再生レート補正部は、前記再生レートを求める、ことを特徴とする視聴端末。 In the viewing terminal according to any one of claims 1 to 3,
At the timing of the timeupdate event that fires when the current time is updated by the HTMLMediaElement when each of the plurality of video playback units plays the video by the HTMLMediaElement.
The current time comparison unit of the corresponding synchronization processing unit inputs the current time and the reference time to obtain the addition time and the subtraction time, and compares the current time with the addition time and the subtraction time. The viewing terminal is characterized in that the reproduction rate correction unit obtains the reproduction rate.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2020104209A JP2021197671A (en) | 2020-06-17 | 2020-06-17 | Viewing terminal and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2020104209A JP2021197671A (en) | 2020-06-17 | 2020-06-17 | Viewing terminal and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2021197671A true JP2021197671A (en) | 2021-12-27 |
Family
ID=79196178
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2020104209A Pending JP2021197671A (en) | 2020-06-17 | 2020-06-17 | Viewing terminal and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2021197671A (en) |
-
2020
- 2020-06-17 JP JP2020104209A patent/JP2021197671A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU2022204875B2 (en) | Multi-view audio and video interactive playback | |
EP3598761B1 (en) | Method and device for synthesizing audio and video data stream | |
CN107277594B (en) | Method and device for synchronizing video and audio with bullet screen | |
US20160261930A1 (en) | Video-providing method and video-providing system | |
JP2017103542A (en) | Synchronization device, synchronization method and synchronization program | |
US20150128040A1 (en) | Generating custom sequences of video streams | |
JP2021197671A (en) | Viewing terminal and program | |
JP6217221B2 (en) | Content reproduction method, apparatus and program | |
WO2020197898A1 (en) | Audio synchronization of correlated video feeds | |
US8279921B2 (en) | Moving image reproducing apparatus | |
WO2018173312A1 (en) | Virtual reality viewing system, reproduction synchronizing method, and virtual reality viewing program | |
US20150189127A1 (en) | Video processing apparatus | |
KR102408477B1 (en) | multi-screen display system by use of video synchronization of in multimedia devices | |
JP7287188B2 (en) | Processing device, program and processing method | |
JP6149588B2 (en) | Content reproduction method, apparatus and program | |
Potetsianakis et al. | SWAPUGC: software for adaptive playback of geotagged UGC | |
US20230059670A1 (en) | Image processing apparatus, control method, and storage medium | |
JP2022185640A (en) | Viewing terminal and program | |
JP6519042B2 (en) | Reproducing apparatus, reproducing system, and reproducing method | |
JP6506084B2 (en) | Movie playback device and program | |
JP6347204B2 (en) | REPRODUCTION CONTROL DEVICE, REPRODUCTION CONTROL METHOD, AND PROGRAM | |
JP2019106732A (en) | Motion picture reproduction device and program | |
JP2008211718A (en) | Temporal change information reproducing apparatus and program | |
KR20200029149A (en) | Synchronization method for image of multiple digital signages | |
KR20170079876A (en) | Media player's playing method increasing play start time precision method and apparatus using the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20230501 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20240426 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20240510 |