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

Adding VR Features to player #399

Merged
merged 39 commits into from Dec 19, 2019
Merged

Adding VR Features to player #399

merged 39 commits into from Dec 19, 2019

Conversation

@golikov
Copy link
Collaborator

golikov commented Nov 18, 2019

No description provided.

bharath-exads and others added 2 commits Sep 10, 2019
Adding VR Features to player
@golikov

This comment has been minimized.

Copy link
Collaborator Author

golikov commented Nov 18, 2019

VR Video: https://pchen66.github.io/Panolens/examples/asset/textures/video/ClashofClans.mp4

VR Advertisement Video: https://player.omnivirt.com/2015/12/18/12/51/14/435bc71d-2a24-4b51-a696-edbb46804273/infiniti-720p-medium.mp4

Sample vast for 360 degree ad serving
VAST with attribute mediaType="360" in MediaFile tag

<?xml version="1.0" encoding="UTF-8"?> <VAST version="3.0"> <Ad id="1"> <InLine> <AdSystem>example1</AdSystem> <AdTitle /> <Impression id="example1"><![CDATA[http://example1.com/view?tracking_event=impression&idzone=9999999]]></Impression> <Impression id="example12"><![CDATA[http://example1.com/view2?tracking_event=impression&idzone=9999999]]></Impression> <Creatives> <Creative sequence="1" id="1"> <Linear skipoffset="00:00:03"> <TrackingEvents> <Tracking event="progress" offset="00:00:01.000"><![CDATA[http://example1.com/view?tracking_event=progress&progress=00:00:01.000&idzone=9999999]]></Tracking> <Tracking event="progress" offset="00:00:02.000"><![CDATA[http://example1.com/view?tracking_event=progress&progress=00:00:02.000&idzone=9999999]]></Tracking> <Tracking event="progress" offset="00:00:05.000"><![CDATA[http://example1.com/view?tracking_event=progress&progress=00:00:05.000&idzone=9999999]]></Tracking> <Tracking event="progress" offset="00:00:05.000"><![CDATA[http://example1.com/view2?tracking_event=progress&progress=00:00:05.000&idzone=9999999]]></Tracking> <Tracking event="progress" offset="00:00:09.000"><![CDATA[http://example1.com/view?tracking_event=progress&progress=00:00:09.000&idzone=9999999]]></Tracking> <Tracking event="start"><![CDATA[http://example1.com/view?tracking_event=start&idzone=9999999]]></Tracking> <Tracking event="firstQuartile"><![CDATA[http://example1.com/view?tracking_event=firstQuartile&idzone=9999999]]></Tracking> <Tracking event="midpoint"><![CDATA[http://example1.com/view?tracking_event=midpoint&idzone=9999999]]></Tracking> <Tracking event="midpoint"><![CDATA[http://example1.com/view2?tracking_event=midpoint&idzone=9999999]]></Tracking> <Tracking event="midpoint"><![CDATA[http://example1.com/view3?tracking_event=midpoint&idzone=9999999]]></Tracking> <Tracking event="thirdQuartile"><![CDATA[http://example1.com/view?tracking_event=thirdQuartile&idzone=9999999]]></Tracking> <Tracking event="complete"><![CDATA[http://example1.com/view?tracking_event=complete&idzone=9999999]]></Tracking> </TrackingEvents> <VideoClicks> <ClickThrough><![CDATA[http://example1.com/]]></ClickThrough> <ClickTracking><![CDATA[http://example1.com/view?tracking_event=click&idzone=9999999]]></ClickTracking> <ClickTracking><![CDATA[http://example1.com/view2?tracking_event=click&idzone=9999999]]></ClickTracking> </VideoClicks> <MediaFiles> <MediaFile delivery="progressive" type="video/mp4" mediaType="360"><![CDATA[https://player.omnivirt.com/2015/12/18/12/51/14/435bc71d-2a24-4b51-a696-edbb46804273/infiniti-720p-medium.mp4]]></MediaFile> </MediaFiles> </Linear> </Creative> </Creatives> </InLine> </Ad> </VAST>

Sample JS to invoke 360 and vr mode in player
<script type="text/javascript"> var myPlayer = fluidPlayer( 'myVideo' , { layoutControls: { showCardBoardView: true, showCardBoardJoystick: true } }); </script>

**NOTE:
Currently player is supporting only 360-degree Videos (only monoscopic ) in cardboard mode
Currently player is NOT supporting 2D videos during the cardboard
Currently player is NOT supporting Banner or Non-Linear ads during the cardboard
**

@golikov golikov merged commit c9deb41 into master Dec 19, 2019
@golikov golikov deleted the vrplayer branch Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.