CN103347026B - Self-adaptive rotation device and method of streaming media during playback - Google Patents

Self-adaptive rotation device and method of streaming media during playback Download PDF

Info

Publication number
CN103347026B
CN103347026B CN201310291712.9A CN201310291712A CN103347026B CN 103347026 B CN103347026 B CN 103347026B CN 201310291712 A CN201310291712 A CN 201310291712A CN 103347026 B CN103347026 B CN 103347026B
Authority
CN
China
Prior art keywords
degree
angle
module
streaming media
player
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.)
Expired - Fee Related
Application number
CN201310291712.9A
Other languages
Chinese (zh)
Other versions
CN103347026A (en
Inventor
李松
姚键
潘柏宇
卢述奇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Youku Network Technology Beijing Co Ltd
Original Assignee
1Verge Internet Technology Beijing Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 1Verge Internet Technology Beijing Co Ltd filed Critical 1Verge Internet Technology Beijing Co Ltd
Priority to CN201310291712.9A priority Critical patent/CN103347026B/en
Publication of CN103347026A publication Critical patent/CN103347026A/en
Application granted granted Critical
Publication of CN103347026B publication Critical patent/CN103347026B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to a self-adaptive rotation device and method of streaming media during playback. The device comprises a streaming medium recording module and a player. An angle change collecting and analyzing module collects reported angles and judges whether the angles are in an angle range, and if the answer is positive, an angle recoding module is informed. The angle recoding module records time points and the angles. The streaming medium playing module finishes playing of the steaming media and sounds. An angle reading module reads time and the angles. A playing control module controls the streaming medium playing module to adjust the playing angle according to the time and the angles. The method includes the steps of collecting angle data reported by a gyroscope, judging whether the angles are in the angle range and last for certain time, if the answer is positive, informing the angle recoding module, recording the time points and the angle information through the angle recoding module, reading the time and the angle information, controlling and adjusting the playing angle of the streaming media according to the time and the angles, and finishing playing of the stream media and sound data.

Description

A kind of device and method of Streaming Media self adaptation rotation in playback
Technical field
The present invention relates to Streaming Media shoots field, especially relate to a kind of device of Streaming Media self adaptation rotation in playback And method.
Background technology
Using handheld device(Such as mobile phone, panel computer)During shooting Streaming Media, user in shake-hands grip and may erect Have a mind between bat or unintentionally switch over, lead to the Streaming Media shooting appearance when playback sometimes positive sometimes It is 90 degree of rotations.At present, prior art not can solve the problem that such problem.
Content of the invention
For solving current technical problem and realizing technical purpose, the invention provides a kind of Streaming Media is adaptive in playback The device that should rotate, this device includes Streaming Media and shoots with video-corder module and player, and described Streaming Media is shot with video-corder module and included Streaming Media note Record module, angle change are collected and analysis module, angle recordings module;Described player includes streaming media playing module, angle Read module and play control module;Wherein angle change is collected and is used for collecting the angle number that gyroscope reports with analysis module According to, and analyze and judge to upload whether angle is within a certain angular range and continues regular hour threshold value, if it is, logical Know that angle recordings module is recorded;Angle recordings module, for Streaming Media shoot with video-corder module start shoot after establishment file simultaneously Notice according to angle change collection and analysis module is come with logarithm value mode record time point and angle information;Wherein Streaming Media Playing module is used for completing the broadcasting of Streaming Media and voice data;Angle read module is used for the time of storage and angle information Read out and be transferred to play control module;Play control module is used for going to control Streaming Media to broadcast according to time and angle information Amplification module adjusts the angle of streaming media playing.
Further, described angular range be 45 degree to 135 degree between or 135 degree to 225 degree between or 225 degree extremely Between 315 degree or between 0 degree to 45 degree and 315 degree and 360 degree between, when being judged as between 45 degree to 135 degree and continue one Threshold value of fixing time then is recorded as 90 degree, when being judged as between 135 degree to 225 degree and certain time threshold value is then recorded as 180 Degree, when being judged as between 225 degree to 315 degree and certain time threshold value is then recorded as 270 degree, when being judged as 0 degree to 45 degree Between and 315 degree and 360 degree between and certain time threshold value be then recorded as 360 degree.
Further, described play control module includes timer, starts timing for Streaming Media in playback.
Further, described streaming media playing module also has regulation sound, adjusts progress, the interface of self-defined player with And the function that the angle of streaming media picture is adjusted.
Present invention also offers a kind of method of Streaming Media self adaptation rotation in playback, the method includes:
Step(1)The angle change that Streaming Media is shot with video-corder in module is collected and is used for collecting what gyroscope reported with analysis module Angle-data, and analyze judge upload angle whether be within a certain angular range and continue regular hour threshold value, if It is then to notify angle recordings module to be recorded;
Step(2)The angle recordings module that Streaming Media is shot with video-corder in module is shot with video-corder after module starts to shoot in Streaming Media and is created literary composition Part is simultaneously collected with the notice of analysis module come with logarithm value mode record time point and angle information according to angle change;
Step(3)Angle read module in player is used for reading out the time of storage and angle information and transmitting To play control module;
Step(4)Play control module in player goes controlling stream media player module to adjust according to time and angle information The angle of rectification media play;
Step(5)Streaming media playing module in player completes the broadcasting of Streaming Media and voice data.
Further, step(1)Described in angular range be 45 degree to 135 degree between or 135 degree to 225 degree between or Between 225 degree to 315 degree or between 0 degree to 45 degree and 315 degree and 360 degree between, when being judged as between 45 degree to 135 degree simultaneously Certain time threshold value is then recorded as 90 degree, when being judged as between 135 degree to 225 degree and certain time threshold value then records For 180 degree, when being judged as between 225 degree to 315 degree and certain time threshold value is then recorded as 270 degree, when being judged as that 0 degree is arrived Between 45 degree, simultaneously certain time threshold value is then recorded as 360 degree and 315 degree and 360 degree between.
Further, step(4)Described in be Streaming Media start in playback time timing time.
Further, in execution step(5)When can also adjust sound, adjust progress, the interface of self-defined player.
Brief description
Fig. 1 is the structural representation shooting with video-corder module according to the Streaming Media of the present invention;
Fig. 2 is the structural representation of the player according to the present invention.
Specific embodiment
Below in conjunction with the drawings and specific embodiments, the utility model is described in further detail.The present invention is just for internal system Divide and be described in detail, other belong to as camera hardware and driving, gyroscope hardware and drivings, gyro data reporting module The technology of handheld device itself, unrelated to the invention, do not elaborate.
Existing Streaming Media encapsulation format is not intervened, former Streaming Media can be avi, flv, mpeg or any one Plant form, all it doesn't matter.Technical scheme is extra to be produced a file to record the angle information of Streaming Media, this document Only need to record time point when angle change.When playing, player passes through to read the angle in this file Degree information, more accordingly, the dynamic angle adjusting Streaming Media.
Concrete scheme is as follows:As shown in figure 1, in the recording process of Streaming Media, handheld device(Mobile phone, panel computer etc.) Streaming Media shoot with video-corder module while recording Streaming Media, interface is sensed by the built-in gyroscope of handheld device and obtains hand-held setting Standby angle.Module is shot with video-corder according to the Streaming Media of the present invention and includes three modules:Streaming Media logging modle, angle change collect with Analysis module, angle recordings module.
Angle change is collected and analysis module:For collecting the data that gyroscope reports.When user allows screen vertical in ground During face(I.e. user's normal sitting position, by screen to oneself, with general liquid crystal display be placed on similar), gyroscope Current angle information can be recorded, referred to as initial or default angle, this angle information obtains when system starts.When User is motionless with the one side on screen vertical ground, when rotating mobile,(Be equivalent to the angle of rotation liquid crystal display, but screen Also aim at oneself)Gyro module will record and report angle information.Angle change is collected and can be collected first with analysis module All reporting informations.When handheld device top half is located at left-hand side, and the latter half is located at dexter, we term it 0 angle, after mobile phone top half is turned to above by user, we term it 90 angles, when the mobile phone top of user rotates To after right-hand side, we term it 180 angles, turn to following after, referred to as 270 angles, return to 0 angle after rotating a circle. Because the rotation of user is not to complete moment, and just right angle will not be accurate to, angle change is collected and analysis mould Block needs the angle information collected is analyzed.For example, when user rotates to 90 angles from 0 angle, only Have when angle is more than 45 angle, we just think user using 90 angle shots, and positive and negative 45 jiaos in 90 angles In degree, we think user using 90 angle shots.That is, collect when angle change to judge to upload with analysis module Angle be between 45 degree to 135 degree and continue regular hour threshold value(Can manually set), angle change collect with point Analysis module is regarded as user and is being shot using 90 degree, then notify angle recordings module to be recorded as 90 degree and recording time information Turn to time when 45 degree for handheld device, in the same manner, be applied to other angles.
Angle recordings module:The camera head that this module is responsible in the handheld device creates a literary composition after starting to shoot at once Part, angle change is collected and is responsible for notifying what angle information when angle recordings module recording with analysis module, this mould Block is responsible for being written in file these information with fixing form, the following is citing:
{ 0,0 } { 13012,90 } { 29805,180 } { 45609,270 } { 90876,360 }
Explanation:It is a logarithm value in brace, represent time point respectively(Millisecond unit)With stream matchmaker after this time point Angle residing for handheld device when body shoots.
This file needs and traditional files in stream media exists in a file jointly, and state is similar to as follows:
Streaming Media 001(File)Including:Streaming Media 001.avi(Can be arbitrary format, not limited by stream media format System)And Streaming Media 001.rot(Logarithm value information recited above is stored in this file).
More than it has been basically completed the work needing during Streaming Media is shot with video-corder to do, next needed to do in explanation replayed section Work.
As shown in Fig. 2 needing to increase a processing module in player, specially read file " Streaming Media 001.rot ", To obtain Streaming Media in different time sections state in which, and adjust the angle of broadcasting.
Player includes:Streaming media playing module, angle read module and play control module.
Streaming media playing module:Complete the displaying on screen of most basic Streaming Media and voice data, simultaneously this module Can be play according to the requirement streaming media of caller and carry out certain process, such as:Adjust sound, adjust progress, self-defined Interface of player etc., also includes the ability of the angle adjustment of streaming media picture among these.
Angle read module:The responsible time storing before and angle information are read out and are transferred to broadcasting control Module.
Play control module:For going controlling stream media player module to adjust the angle of Streaming Media according to time and angle information Degree.For example, when " Streaming Media 001 " is when commencing play out, play control module reads information { 0,0 }, and he is notified that Streaming media playing module, use level angle carrys out playing stream media, and he internally comprises timer simultaneously, for recording the time Run off, when Streaming Media will be played to 13012 milliseconds,(According to the time reckoning of eye recognition, need at least to shift to an earlier date 100 Millisecond)He can call the interface of streaming media playing module, and the angle of adjustment streaming media playing is 90.By that analogy.It is finally reached In replayed section, the angle of streaming media playing is all to meet the experience of user's viewing.
Having the technical effect that acquired by the present invention:Make handheld device(Mobile phone, panel computer etc.)Streaming Media is in playback The self-reacting rotation that horizontal/vertical screen shooting Streaming Media is carried out with suitable angle.
The foregoing is only presently preferred embodiments of the present invention, be not limited to the present invention, all spiritual and former in the present invention Any modification, equivalent and improvement of being made within then etc., are both contained within protection scope of the present invention.

Claims (6)

1. the device of a kind of Streaming Media self adaptation rotation in playback, this device includes Streaming Media and shoots with video-corder module and player, its It is characterised by:
Described Streaming Media is shot with video-corder module and is included Streaming Media logging modle, angle change collection and analysis module, angle recordings module;
Described player includes streaming media playing module, angle read module and play control module;
Wherein angle change is collected and is used for collecting the angle-data that gyroscope reports with analysis module, and analyzes judgement upload angle Whether it is within a certain angular range and continues regular hour threshold value, if it is, notifying angle recordings module to be remembered Record;
Angle recordings module, for Streaming Media shoot with video-corder module start shoot after establishment file and according to angle change collect with point The notice of analysis module is come with logarithm value mode record time point and angle information, and generates logarithm value file;
Wherein streaming media playing module is used for completing the broadcasting of Streaming Media and voice data;
Angle read module is used for reading out the time of storage and angle information and being transferred to play control module;
Play control module is used for going controlling stream media player module to adjust the angle of streaming media playing according to time and angle information Degree,
Wherein, described angular range be 45 degree to 135 degree between or 135 degree to 225 degree between or 225 degree to 315 degree it Between or 0 degree to 45 degree between and 315 degree and 360 degree between, when being judged as between 45 degree to 135 degree and certain time threshold Value is then recorded as 90 degree, when being judged as between 135 degree to 225 degree and certain time threshold value is then recorded as 180 degree, works as judgement For between 225 degree to 315 degree and certain time threshold value is then recorded as 270 degree, when being judged as between 0 degree to 45 degree with 315 Between degree and 360 degree, simultaneously certain time threshold value is then recorded as 360 degree.
2. device according to claim 1 it is characterised in that:Described play control module includes timer, in stream Media start timing in playback.
3. device according to claim 1 it is characterised in that:
Described streaming media playing module also has regulation sound, adjusts progress, the interface of self-defined player and streaming media The function that the angle of picture is adjusted.
4. a kind of method of Streaming Media self adaptation rotation in playback is it is characterised in that the method includes:
The angle change that step (1) Streaming Media is shot with video-corder in module is collected and is used for collecting the angle number that gyroscope reports with analysis module According to, and analyze and judge to upload whether angle is within a certain angular range and continues regular hour threshold value, if it is, logical Know that angle recordings module is recorded;
Step (2) Streaming Media is shot with video-corder angle recordings module in module and is shot with video-corder after module starts to shoot establishment file simultaneously in Streaming Media Collected with the notice of analysis module come with logarithm value mode record time point and angle information according to angle change, and generate logarithm Value file;
Angle read module in step (3) player is read out and is transferred to for the time of storage and angle information and broadcast Put control module;
Play control module in step (4) player removes controlling stream media player module adjustment stream according to time and angle information The angle of media play;
Streaming media playing module in step (5) player completes the broadcasting of Streaming Media and voice data,
Wherein, angular range described in step (1) be 45 degree to 135 degree between or 135 degree to 225 degree between or 225 degree To between 315 degree or between 0 degree to 45 degree and 315 degree and 360 degree between, when be judged as between 45 degree to 135 degree and continue Certain time threshold value is then recorded as 90 degree, when being judged as between 135 degree to 225 degree and certain time threshold value is then recorded as 180 degree, when being judged as between 225 degree to 315 degree and certain time threshold value is then recorded as 270 degree, when being judged as 0 degree to 45 Between degree, simultaneously certain time threshold value is then recorded as 360 degree and 315 degree and 360 degree between.
5. method according to claim 4 it is characterised in that:Described in step (4), the time is to open in stream media playback The time of beginning timing.
6. method according to claim 4 it is characterised in that:
Sound can also be adjusted when execution step (5), adjust progress, the interface of self-defined player.
CN201310291712.9A 2013-07-11 2013-07-11 Self-adaptive rotation device and method of streaming media during playback Expired - Fee Related CN103347026B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310291712.9A CN103347026B (en) 2013-07-11 2013-07-11 Self-adaptive rotation device and method of streaming media during playback

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310291712.9A CN103347026B (en) 2013-07-11 2013-07-11 Self-adaptive rotation device and method of streaming media during playback

Publications (2)

Publication Number Publication Date
CN103347026A CN103347026A (en) 2013-10-09
CN103347026B true CN103347026B (en) 2017-02-08

Family

ID=49281800

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310291712.9A Expired - Fee Related CN103347026B (en) 2013-07-11 2013-07-11 Self-adaptive rotation device and method of streaming media during playback

Country Status (1)

Country Link
CN (1) CN103347026B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105025243B (en) * 2015-06-30 2018-09-28 上海众源网络有限公司 A kind of video call method and device
CN105227963B (en) * 2015-08-31 2018-05-01 暴风集团股份有限公司 Streaming Media collection automatic identification direction and the method and system adjusted are carried out to terminal
CN106686368A (en) * 2016-12-26 2017-05-17 华为软件技术有限公司 Device of virtual reality VR video playing and method for playing VR video

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101068309A (en) * 2007-05-24 2007-11-07 中兴通讯股份有限公司 Method and device for automatic rotating mobile terminal camera head shooting results
CN101196777A (en) * 2006-12-05 2008-06-11 联想(新加坡)私人有限公司 Method and apparatus for changing a display direction of a screen of a portable electronic device
CN102843496A (en) * 2011-06-21 2012-12-26 联想(北京)有限公司 Video collecting processing method and portable electronic device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9124804B2 (en) * 2010-03-22 2015-09-01 Microsoft Technology Licensing, Llc Using accelerometer information for determining orientation of pictures and video images

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101196777A (en) * 2006-12-05 2008-06-11 联想(新加坡)私人有限公司 Method and apparatus for changing a display direction of a screen of a portable electronic device
CN101068309A (en) * 2007-05-24 2007-11-07 中兴通讯股份有限公司 Method and device for automatic rotating mobile terminal camera head shooting results
CN102843496A (en) * 2011-06-21 2012-12-26 联想(北京)有限公司 Video collecting processing method and portable electronic device

Also Published As

Publication number Publication date
CN103347026A (en) 2013-10-09

Similar Documents

Publication Publication Date Title
CN105721939A (en) Video playing method and device
CN102984449B (en) Video playback device capable of controlling playback speed
US10403327B2 (en) Content identification and playback
WO2015059874A1 (en) Information processing device, recording medium, and information processing method
CN103347026B (en) Self-adaptive rotation device and method of streaming media during playback
WO2016077262A1 (en) Method and system for programmable loop recording
CN104063157A (en) Notification Control Apparatus And Notification Control Method
US11696045B2 (en) Generating time-lapse videos with audio
WO2020033612A1 (en) Event recording system and method
JP2008098719A5 (en)
JP2007166501A5 (en)
US20180369678A1 (en) System and Apparatus for Sports Training
JP2011250103A (en) Reproducing apparatus
CN111027793B (en) Method and system for determining word mastering degree and electronic equipment
US10946242B2 (en) Swing analysis device, swing analysis method, and swing analysis system
JP2010074296A5 (en)
KR20140135415A (en) Apparatus for picturing swing motion of golf, method and system for providing advertisement using the same
JP2016096479A (en) Image processing device, image processing method, and program
EP1772866A3 (en) Information recording apparatus, imaging device, information-recording controlling method, and computer program
JP6222148B2 (en) Imaging apparatus, image reproduction method, and program
CN201585055U (en) Digital television receiving terminal
JP2007172680A5 (en)
CN106237603A (en) Running method, device and the terminal of a kind of virtual reality
JP2005259251A5 (en)
KR20140136569A (en) Apparatus for picturing swing motion of golf, method and system for providing advertisement using the same

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CI01 Publication of corrected invention patent application

Correction item: Applicant name

Correct: Heyi Network Technology (Beijing) Co., Ltd.

False: 1Verge Internet Technology (Beijing) Co., Ltd.

Number: 41

Volume: 29

CI02 Correction of invention patent application

Correction item: Applicant name

Correct: Heyi Network Technology (Beijing) Co., Ltd.

False: 1Verge Internet Technology (Beijing) Co., Ltd.

Number: 41

Page: The title page

Volume: 29

ERR Gazette correction
RECT Rectification
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 100080 Beijing Haidian District city Haidian street A Sinosteel International Plaza No. 8 block 5 layer A, C

Patentee after: Youku network technology (Beijing) Co.,Ltd.

Address before: 100080 Beijing Haidian District city Haidian street A Sinosteel International Plaza No. 8 block 5 layer A, C

Patentee before: 1VERGE INTERNET TECHNOLOGY (BEIJING) Co.,Ltd.

CP01 Change in the name or title of a patent holder
TR01 Transfer of patent right

Effective date of registration: 20200619

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Alibaba (China) Co.,Ltd.

Address before: 100080 Beijing Haidian District city Haidian street A Sinosteel International Plaza No. 8 block 5 layer A, C

Patentee before: Youku network technology (Beijing) Co.,Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170208

Termination date: 20200711

CF01 Termination of patent right due to non-payment of annual fee